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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002384/0.002384, allocations: 99.53 kB / 21.73 MB, free: 2.688 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002637/0.002637, allocations: 159.8 kB / 25.03 MB, free: 8.422 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.35/1.35, allocations: 158.6 MB / 186.8 MB, free: 2.918 MB / 170.7 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,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=20000,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") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 3.196e-06/3.196e-06, allocations: 0 / 250.4 MB, free: 7.832 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.413e-05/4.733e-05, allocations: 6.25 kB / 250.4 MB, free: 7.824 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.02766/0.02771, allocations: 11.92 MB / 262.3 MB, free: 11.84 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.007461/0.03517, allocations: 3.254 MB / 265.6 MB, free: 8.57 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001645/0.03681, allocations: 43.81 kB / 265.6 MB, free: 8.527 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002087/0.0389, allocations: 0.6477 MB / 266.2 MB, free: 7.875 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002584/0.04148, allocations: 0.8179 MB / 267.1 MB, free: 7.051 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000926/0.04241, allocations: 407.4 kB / 267.5 MB, free: 6.652 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003663/0.04607, allocations: 2.509 MB / 270 MB, free: 4.129 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00126/0.04733, allocations: 0.5992 MB / 270.6 MB, free: 3.484 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003129/0.05046, allocations: 1.407 MB / 272 MB, free: 2.074 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001449/0.05191, allocations: 0.7751 MB / 272.8 MB, free: 1.297 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004047/0.05231, allocations: 232 kB / 273 MB, free: 1.07 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005907/0.0529, allocations: 267.9 kB / 273.2 MB, free: 0.8086 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004632/0.05337, allocations: 470.2 kB / 273.7 MB, free: 356 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001211/0.05458, allocations: 0.7482 MB / 274.5 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003902/0.05848, allocations: 2.854 MB / 277.3 MB, free: 12.73 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.05849, allocations: 0 / 277.3 MB, free: 12.73 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.05849, allocations: 0 / 277.3 MB, free: 12.73 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.705e-05/0.05854, allocations: 0 / 277.3 MB, free: 12.73 MB / 266.7 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.00509/0.06363, allocations: 2.403 MB / 279.7 MB, free: 10.28 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.06369, allocations: 8.031 kB / 279.7 MB, free: 10.27 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001266/0.06495, allocations: 419.5 kB / 280.1 MB, free: 9.863 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002512/0.06746, allocations: 1.1 MB / 281.2 MB, free: 8.719 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001168/0.06758, allocations: 119.5 kB / 281.3 MB, free: 8.602 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002615/0.06784, allocations: 160.3 kB / 281.5 MB, free: 8.445 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00326/0.0711, allocations: 1.726 MB / 283.2 MB, free: 6.617 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.669e-05/0.07117, allocations: 15.89 kB / 283.2 MB, free: 6.602 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001468/0.07132, allocations: 64 kB / 283.3 MB, free: 6.539 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.872e-05/0.07136, allocations: 36 kB / 283.3 MB, free: 6.504 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002415/0.07377, allocations: 1.002 MB / 284.3 MB, free: 5.496 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01246/0.08623, allocations: 7.427 MB / 291.8 MB, free: 13.67 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001754/0.08798, allocations: 0.5662 MB / 292.3 MB, free: 13.1 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001072/0.08906, allocations: 421.6 kB / 292.7 MB, free: 12.68 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.479e-05/0.08912, allocations: 12.66 kB / 292.8 MB, free: 12.67 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.201e-05/0.08917, allocations: 46.05 kB / 292.8 MB, free: 12.61 MB / 282.7 MB Notification: Performance of pre-optimization done (n=66): time 2.996e-06/0.08918, allocations: 4 kB / 292.8 MB, free: 12.61 MB / 282.7 MB Notification: Performance of matching and sorting (n=72): time 0.00598/0.09516, allocations: 2.12 MB / 294.9 MB, free: 10.45 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001023/0.09526, allocations: 115.4 kB / 295 MB, free: 10.31 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002535/0.09779, allocations: 1.497 MB / 296.5 MB, free: 8.801 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.805e-05/0.09786, allocations: 41.7 kB / 296.6 MB, free: 8.754 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001042/0.0989, allocations: 1.01 MB / 297.6 MB, free: 7.734 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003052/0.09921, allocations: 285.7 kB / 297.9 MB, free: 7.453 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004051/0.09961, allocations: 260.4 kB / 298.1 MB, free: 7.191 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0003777/0.09999, allocations: 0.5589 MB / 298.7 MB, free: 6.625 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006177/0.1006, allocations: 262.5 kB / 298.9 MB, free: 6.367 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001385/0.102, allocations: 1.009 MB / 299.9 MB, free: 5.051 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002061/0.1041, allocations: 1.296 MB / 301.2 MB, free: 3.473 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.978e-06/0.1041, allocations: 4 kB / 301.2 MB, free: 3.469 MB / 282.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.003086/0.1071, allocations: 1.288 MB / 302.5 MB, free: 2.16 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.019e-05/0.1072, allocations: 12 kB / 302.5 MB, free: 2.148 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.663e-05/0.1072, allocations: 16 kB / 302.6 MB, free: 2.133 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008217/0.108, allocations: 167.2 kB / 302.7 MB, free: 1.957 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000925/0.109, allocations: 255.5 kB / 303 MB, free: 1.707 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006021/0.115, allocations: 5.89 MB / 308.9 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001213/0.1162, allocations: 55.94 kB / 308.9 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001107/0.1163, allocations: 56.11 kB / 309 MB, free: 11.34 MB / 298.7 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.0008694/0.1172, allocations: 408.2 kB / 309.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002823/0.1174, allocations: 159.1 kB / 309.5 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001939/0.1194, allocations: 0.7936 MB / 310.3 MB, free: 9.953 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.213e-06/0.1194, allocations: 4 kB / 310.3 MB, free: 9.949 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.1194, allocations: 4 kB / 310.3 MB, free: 9.945 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.819e-06/0.1194, allocations: 3.984 kB / 310.3 MB, free: 9.941 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004825/0.1242, allocations: 2.432 MB / 312.8 MB, free: 7.391 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.1242, allocations: 8.031 kB / 312.8 MB, free: 7.383 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000623/0.1249, allocations: 123.8 kB / 312.9 MB, free: 7.262 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008398/0.1257, allocations: 194.9 kB / 313.1 MB, free: 7.059 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.87e-05/0.1258, allocations: 19.98 kB / 313.1 MB, free: 7.039 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006552/0.1323, allocations: 6.043 MB / 319.1 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.294e-06/0.1323, allocations: 4.188 kB / 319.1 MB, free: 0.625 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003079/0.1354, allocations: 1.363 MB / 320.5 MB, free: 15.17 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006341/0.136, allocations: 202.9 kB / 320.7 MB, free: 14.97 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001547/0.1362, allocations: 23.92 kB / 320.7 MB, free: 14.95 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005946/0.1368, allocations: 31.98 kB / 320.8 MB, free: 14.92 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001546/0.1369, allocations: 60.33 kB / 320.8 MB, free: 14.86 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.865e-05/0.137, allocations: 24 kB / 320.8 MB, free: 14.84 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001592/0.1386, allocations: 0.9011 MB / 321.7 MB, free: 13.93 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1386, allocations: 0 / 321.7 MB, free: 13.93 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001401/0.14, allocations: 324 kB / 322.1 MB, free: 13.61 MB / 314.7 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.0002954/0.1403, allocations: 135.1 kB / 322.2 MB, free: 13.47 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002667/0.1429, allocations: 1.314 MB / 323.5 MB, free: 12.11 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.922e-06/0.143, allocations: 0 / 323.5 MB, free: 12.11 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001289/0.1442, allocations: 0.8819 MB / 324.4 MB, free: 11.17 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001737/0.146, allocations: 348.7 kB / 324.7 MB, free: 10.84 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006007/0.152, allocations: 2.854 MB / 327.6 MB, free: 7.867 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009457/0.1529, allocations: 0.6298 MB / 328.2 MB, free: 7.199 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007256/0.1537, allocations: 162.8 kB / 328.4 MB, free: 7.035 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00024/0.1539, allocations: 88.48 kB / 328.5 MB, free: 6.949 MB / 314.7 MB Notification: Performance of SimCode: time 1.523e-06/0.1539, allocations: 0 / 328.5 MB, free: 6.949 MB / 314.7 MB Notification: Performance of Templates: time 0.03737/0.1913, allocations: 17.34 MB / 345.8 MB, free: 5.609 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/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/jenkins/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.459481005906127]