Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001078/0.001079, allocations: 107.5 kB / 18.4 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001107/0.001107, allocations: 187.1 kB / 19.33 MB, free: 3.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.271/1.271, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 55.86 kB / 329.2 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07425/0.07538, allocations: 46.62 MB / 375.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.1608/0.2363, allocations: 12.1 MB / 387.9 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004836/0.2411, allocations: 3.312 MB / 391.2 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009221/0.2421, allocations: 40.44 kB / 391.3 MB, free: 4.676 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001406/0.2435, allocations: 0.6603 MB / 391.9 MB, free: 4.336 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001372/0.2449, allocations: 0.7227 MB / 392.7 MB, free: 3.809 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006754/0.2456, allocations: 405.2 kB / 393.1 MB, free: 3.551 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00208/0.2477, allocations: 2.41 MB / 395.5 MB, free: 2.254 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001091/0.2488, allocations: 1.004 MB / 396.5 MB, free: 1.738 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001053/0.2498, allocations: 0.907 MB / 397.4 MB, free: 1.262 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009195/0.2508, allocations: 0.985 MB / 398.4 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002614/0.251, allocations: 230.3 kB / 398.6 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004636/0.2515, allocations: 265.5 kB / 398.8 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002527/0.2518, allocations: 455.6 kB / 399.3 MB, free: 396 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008438/0.2526, allocations: 1.081 MB / 400.4 MB, free: 15.69 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002731/0.2554, allocations: 2.835 MB / 403.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.2554, allocations: 1.469 kB / 403.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.2554, allocations: 0 / 403.2 MB, free: 14.61 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.942e-05/0.2554, allocations: 0 / 403.2 MB, free: 14.61 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003369/0.2588, allocations: 2.152 MB / 405.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.2588, allocations: 9.5 kB / 405.4 MB, free: 13.05 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008312/0.2597, allocations: 282.2 kB / 405.6 MB, free: 12.92 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001578/0.2613, allocations: 1.122 MB / 406.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.125e-05/0.2614, allocations: 118.8 kB / 406.9 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002/0.2616, allocations: 164.8 kB / 407 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00236/0.2639, allocations: 1.507 MB / 408.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.42e-05/0.264, allocations: 12.58 kB / 408.6 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001139/0.2641, allocations: 61.78 kB / 408.6 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.903e-05/0.2642, allocations: 38.12 kB / 408.7 MB, free: 10.9 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001884/0.266, allocations: 1.049 MB / 409.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006977/0.273, allocations: 6.237 MB / 415.9 MB, free: 5.168 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00139/0.2744, allocations: 0.6183 MB / 416.6 MB, free: 4.844 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007972/0.2752, allocations: 468.2 kB / 417 MB, free: 4.617 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.532e-05/0.2753, allocations: 7.906 kB / 417 MB, free: 4.617 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.899e-05/0.2753, allocations: 42 kB / 417.1 MB, free: 4.566 MB / 334.1 MB Notification: Performance of pre-optimization done (n=66): time 2.104e-06/0.2753, allocations: 1.125 kB / 417.1 MB, free: 4.566 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.004392/0.2797, allocations: 2.362 MB / 419.4 MB, free: 3.035 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.738e-05/0.2798, allocations: 115.2 kB / 419.5 MB, free: 2.906 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001606/0.2814, allocations: 1.309 MB / 420.9 MB, free: 2.176 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.67e-05/0.2815, allocations: 35.89 kB / 420.9 MB, free: 2.137 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005146/0.282, allocations: 0.8466 MB / 421.7 MB, free: 1.285 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001628/0.2822, allocations: 272.2 kB / 422 MB, free: 1.016 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002513/0.2824, allocations: 202.7 kB / 422.2 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.2825, allocations: 349.9 kB / 422.5 MB, free: 476 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005302/0.2831, allocations: 286.5 kB / 422.8 MB, free: 188 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007799/0.2839, allocations: 0.7342 MB / 423.6 MB, free: 15.24 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00135/0.2852, allocations: 1.092 MB / 424.6 MB, free: 13.94 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.2852, allocations: 4 kB / 424.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002166/0.2874, allocations: 1.264 MB / 425.9 MB, free: 12.65 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.206e-05/0.2874, allocations: 8 kB / 425.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.221e-05/0.2875, allocations: 16 kB / 425.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004596/0.2879, allocations: 134.5 kB / 426.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007589/0.2887, allocations: 255.5 kB / 426.3 MB, free: 12.24 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003418/0.2921, allocations: 4.638 MB / 431 MB, free: 7.176 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009574/0.2931, allocations: 55.91 kB / 431 MB, free: 7.121 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.739e-05/0.2932, allocations: 56 kB / 431.1 MB, free: 7.066 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0005403/0.2938, allocations: 353.3 kB / 431.4 MB, free: 6.711 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002062/0.294, allocations: 142.2 kB / 431.6 MB, free: 6.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001648/0.2956, allocations: 0.8335 MB / 432.4 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.674e-06/0.2956, allocations: 15.88 kB / 432.4 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.2956, allocations: 0 / 432.4 MB, free: 5.699 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.2957, allocations: 3.984 kB / 432.4 MB, free: 5.695 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003626/0.2993, allocations: 2.323 MB / 434.7 MB, free: 3.262 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.2993, allocations: 4 kB / 434.7 MB, free: 3.258 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005225/0.2998, allocations: 127.8 kB / 434.9 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004005/0.3003, allocations: 142.6 kB / 435 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.349e-05/0.3003, allocations: 19.98 kB / 435 MB, free: 2.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003898/0.3042, allocations: 4.791 MB / 439.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.3042, allocations: 7.938 kB / 439.8 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002173/0.3064, allocations: 1.292 MB / 441.1 MB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005076/0.3069, allocations: 283.3 kB / 441.4 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000208/0.3071, allocations: 20 kB / 441.4 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000625/0.3078, allocations: 40.16 kB / 441.4 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.3079, allocations: 64.36 kB / 441.5 MB, free: 11.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.033e-05/0.3079, allocations: 27.98 kB / 441.5 MB, free: 11.93 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001168/0.3091, allocations: 0.8781 MB / 442.4 MB, free: 11.05 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.1e-07/0.3091, allocations: 8 kB / 442.4 MB, free: 11.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001208/0.3103, allocations: 328 kB / 442.7 MB, free: 10.72 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002314/0.3106, allocations: 131.1 kB / 442.9 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001749/0.3123, allocations: 1.129 MB / 444 MB, free: 9.418 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.3124, allocations: 0.875 kB / 444 MB, free: 9.418 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009288/0.3133, allocations: 0.7062 MB / 444.7 MB, free: 8.676 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001525/0.3148, allocations: 362 kB / 445.1 MB, free: 8.328 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004724/0.3196, allocations: 2.935 MB / 448 MB, free: 5.309 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007357/0.3203, allocations: 1.214 MB / 449.2 MB, free: 4.062 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002454/0.3206, allocations: 103.4 kB / 449.3 MB, free: 3.961 MB / 366.1 MB Notification: Performance of SimCode: time 2.31e-07/0.3206, allocations: 0 / 449.3 MB, free: 3.961 MB / 366.1 MB Notification: Performance of Templates: time 0.04011/0.3607, allocations: 41.06 MB / 490.4 MB, free: 10.82 MB / 414.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches