Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0008958/0.0008958, allocations: 80.92 kB / 21.49 MB, free: 2.996 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.0009755/0.0009755, allocations: 170.1 kB / 24.91 MB, free: 8.723 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8768/0.8768, allocations: 177.1 MB / 205.3 MB, free: 4.496 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_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_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.163e-06/1.163e-06, allocations: 0 / 273.5 MB, free: 4.414 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.917e-06/1.008e-05, allocations: 3 kB / 273.5 MB, free: 4.41 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.008492/0.008502, allocations: 11.75 MB / 285.2 MB, free: 8.621 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004454/0.01296, allocations: 3.379 MB / 288.6 MB, free: 5.238 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004571/0.01341, allocations: 39.88 kB / 288.6 MB, free: 5.199 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001128/0.01454, allocations: 0.6555 MB / 289.3 MB, free: 4.539 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009962/0.01554, allocations: 0.8295 MB / 290.1 MB, free: 3.703 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004499/0.01599, allocations: 403.5 kB / 290.5 MB, free: 3.309 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001488/0.01748, allocations: 2.505 MB / 293 MB, free: 0.793 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006021/0.01808, allocations: 0.6343 MB / 293.7 MB, free: 92 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001129/0.01921, allocations: 1.422 MB / 295.1 MB, free: 14.66 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006553/0.01986, allocations: 0.779 MB / 295.9 MB, free: 13.88 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001867/0.02005, allocations: 224 kB / 296.1 MB, free: 13.66 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002624/0.02031, allocations: 264 kB / 296.3 MB, free: 13.41 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000221/0.02053, allocations: 458.2 kB / 296.8 MB, free: 12.96 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005029/0.02104, allocations: 0.7404 MB / 297.5 MB, free: 12.21 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001044/0.02208, allocations: 1.479 MB / 299 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.164e-06/0.02208, allocations: 0 / 299 MB, free: 10.73 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.02208, allocations: 0 / 299 MB, free: 10.73 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.52e-05/0.0221, allocations: 3.938 kB / 299 MB, free: 10.73 MB / 282.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.001766/0.02386, allocations: 2.069 MB / 301.1 MB, free: 8.621 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.71e-05/0.02389, allocations: 15.98 kB / 301.1 MB, free: 8.605 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004786/0.02437, allocations: 352.6 kB / 301.4 MB, free: 8.262 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008356/0.02521, allocations: 0.7891 MB / 302.2 MB, free: 7.426 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.485e-05/0.02526, allocations: 115.5 kB / 302.3 MB, free: 7.312 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001281/0.02539, allocations: 160.3 kB / 302.5 MB, free: 7.156 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009328/0.02632, allocations: 1.179 MB / 303.7 MB, free: 5.891 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.263e-05/0.02635, allocations: 11.95 kB / 303.7 MB, free: 5.879 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.282e-05/0.02642, allocations: 68 kB / 303.7 MB, free: 5.812 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.046e-05/0.02644, allocations: 36 kB / 303.8 MB, free: 5.777 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000477/0.02691, allocations: 398.8 kB / 304.2 MB, free: 5.379 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003672/0.03059, allocations: 4.707 MB / 308.9 MB, free: 400 kB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006242/0.03121, allocations: 359.7 kB / 309.2 MB, free: 32 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003057/0.03152, allocations: 262.6 kB / 309.5 MB, free: 15.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.113e-05/0.03155, allocations: 12.66 kB / 309.5 MB, free: 15.76 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.036e-05/0.03157, allocations: 39.22 kB / 309.5 MB, free: 15.71 MB / 298.7 MB Notification: Performance of pre-optimization done (n=66): time 1.653e-06/0.03157, allocations: 0 / 309.5 MB, free: 15.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.001582/0.03315, allocations: 1.227 MB / 310.8 MB, free: 14.45 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.781e-05/0.03319, allocations: 111.5 kB / 310.9 MB, free: 14.32 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006599/0.03385, allocations: 1.009 MB / 311.9 MB, free: 13.3 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.854e-05/0.03388, allocations: 41.7 kB / 311.9 MB, free: 13.25 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002785/0.03416, allocations: 0.7314 MB / 312.7 MB, free: 12.51 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.03427, allocations: 273.7 kB / 312.9 MB, free: 12.24 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001507/0.03442, allocations: 206.7 kB / 313.1 MB, free: 12.03 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.259e-05/0.0345, allocations: 353.8 kB / 313.5 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001105/0.03461, allocations: 98.56 kB / 313.6 MB, free: 11.59 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003248/0.03494, allocations: 0.6168 MB / 314.2 MB, free: 10.74 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005224/0.03546, allocations: 0.7835 MB / 315 MB, free: 9.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.03547, allocations: 4 kB / 315 MB, free: 9.746 MB / 298.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.0009967/0.03646, allocations: 0.7494 MB / 315.7 MB, free: 8.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/0.03649, allocations: 12 kB / 315.7 MB, free: 8.969 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/0.0365, allocations: 16.53 kB / 315.7 MB, free: 8.953 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004115/0.03691, allocations: 162.2 kB / 315.9 MB, free: 8.785 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004348/0.03735, allocations: 251.6 kB / 316.1 MB, free: 8.539 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001792/0.03914, allocations: 3.774 MB / 319.9 MB, free: 4.508 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006297/0.03977, allocations: 59.81 kB / 320 MB, free: 4.449 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.184e-05/0.03981, allocations: 56.02 kB / 320 MB, free: 4.395 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.00024/0.04005, allocations: 181.5 kB / 320.2 MB, free: 4.207 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.688e-05/0.04015, allocations: 95.89 kB / 320.3 MB, free: 4.113 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005308/0.04068, allocations: 480.2 kB / 320.8 MB, free: 3.621 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.04068, allocations: 8 kB / 320.8 MB, free: 3.613 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.04068, allocations: 3.938 kB / 320.8 MB, free: 3.609 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.04069, allocations: 3.984 kB / 320.8 MB, free: 3.605 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00134/0.04203, allocations: 1.207 MB / 322 MB, free: 2.316 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.528e-06/0.04203, allocations: 4 kB / 322 MB, free: 2.312 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000265/0.0423, allocations: 128.3 kB / 322.1 MB, free: 2.188 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003222/0.04262, allocations: 170.2 kB / 322.3 MB, free: 2.012 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.487e-05/0.04265, allocations: 24 kB / 322.3 MB, free: 1.988 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001615/0.04426, allocations: 3.834 MB / 326.2 MB, free: 13.9 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.04426, allocations: 4 kB / 326.2 MB, free: 13.89 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006448/0.04491, allocations: 0.7384 MB / 326.9 MB, free: 13.09 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001962/0.0451, allocations: 131.1 kB / 327 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.864e-05/0.04518, allocations: 27.98 kB / 327 MB, free: 12.93 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002436/0.04543, allocations: 27.98 kB / 327.1 MB, free: 12.9 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.031e-05/0.0455, allocations: 68.27 kB / 327.1 MB, free: 12.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.196e-05/0.04552, allocations: 20 kB / 327.2 MB, free: 12.82 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003447/0.04586, allocations: 469.9 kB / 327.6 MB, free: 12.35 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.04586, allocations: 0 / 327.6 MB, free: 12.35 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006711/0.04654, allocations: 324 kB / 327.9 MB, free: 12.04 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.0001631/0.0467, allocations: 127.8 kB / 328.1 MB, free: 11.9 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006701/0.04737, allocations: 0.8145 MB / 328.9 MB, free: 11.05 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.206e-05/0.04739, allocations: 17.81 kB / 328.9 MB, free: 11.04 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003691/0.04776, allocations: 0.5566 MB / 329.5 MB, free: 10.44 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007453/0.0485, allocations: 354.3 kB / 329.8 MB, free: 10.11 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006214/0.05472, allocations: 2.549 MB / 332.3 MB, free: 7.465 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002237/0.05494, allocations: 249 kB / 332.6 MB, free: 7.191 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004645/0.05541, allocations: 166.8 kB / 332.8 MB, free: 7.023 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006017/0.05601, allocations: 341.1 kB / 333.1 MB, free: 6.691 MB / 314.7 MB Notification: Performance of SimCode: time 1.423e-06/0.05601, allocations: 0 / 333.1 MB, free: 6.691 MB / 314.7 MB Notification: Performance of Templates: time 0.06591/0.1219, allocations: 18.71 MB / 351.8 MB, free: 4.312 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.238271117210388]