Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001341/0.001341, allocations: 103.9 kB / 19.75 MB, free: 2.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001449/0.001449, allocations: 194.4 kB / 22.93 MB, free: 5.484 MB / 14.72 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.444/1.444, allocations: 207.6 MB / 233.5 MB, free: 10.98 MB / 190.1 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.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_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") [Timeout 660] "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.002449/0.002449, allocations: 51.92 kB / 345.4 MB, free: 10.45 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.3052, allocations: 49.12 MB / 394.5 MB, free: 9.453 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.0165/0.3217, allocations: 11.77 MB / 406.3 MB, free: 1 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009329/0.331, allocations: 3.226 MB / 409.5 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002815/0.3339, allocations: 35.78 kB / 409.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003245/0.3371, allocations: 0.6833 MB / 410.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004486/0.3416, allocations: 0.7275 MB / 411 MB, free: 13.7 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001989/0.3436, allocations: 408.6 kB / 411.4 MB, free: 13.44 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.005474/0.3491, allocations: 2.241 MB / 413.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001619/0.3507, allocations: 0.6548 MB / 414.3 MB, free: 11.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001985/0.3527, allocations: 0.8494 MB / 415.1 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001761/0.3544, allocations: 0.9078 MB / 416 MB, free: 10.6 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003761/0.3548, allocations: 220.4 kB / 416.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007643/0.3556, allocations: 254.9 kB / 416.5 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005473/0.3561, allocations: 434.8 kB / 416.9 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001557/0.3577, allocations: 1.011 MB / 417.9 MB, free: 9.488 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005134/0.3628, allocations: 2.693 MB / 420.6 MB, free: 7.422 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.3628, allocations: 1.344 kB / 420.6 MB, free: 7.422 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.3628, allocations: 0 / 420.6 MB, free: 7.422 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.668e-05/0.3629, allocations: 0 / 420.6 MB, free: 7.422 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.006919/0.3698, allocations: 2.113 MB / 422.7 MB, free: 5.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.43e-05/0.3699, allocations: 13.11 kB / 422.7 MB, free: 5.816 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001811/0.3717, allocations: 269.9 kB / 423 MB, free: 5.688 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003292/0.375, allocations: 1.052 MB / 424.1 MB, free: 4.844 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001336/0.3751, allocations: 113.5 kB / 424.2 MB, free: 4.793 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003358/0.3755, allocations: 162 kB / 424.3 MB, free: 4.734 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004458/0.3799, allocations: 1.486 MB / 425.8 MB, free: 3.777 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-05/0.38, allocations: 11.64 kB / 425.8 MB, free: 3.77 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001915/0.3802, allocations: 66.39 kB / 425.9 MB, free: 3.719 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.032e-05/0.3803, allocations: 42.41 kB / 425.9 MB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003192/0.3835, allocations: 0.9777 MB / 426.9 MB, free: 3.191 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01382/0.3973, allocations: 6.533 MB / 433.4 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001225/0.3985, allocations: 380.1 kB / 433.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006437/0.3991, allocations: 202.1 kB / 434 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.569e-05/0.3992, allocations: 8.438 kB / 434 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000867/0.4001, allocations: 272.8 kB / 434.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 3.236e-06/0.4001, allocations: 0 / 434.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of matching and sorting (n=56): time 0.005422/0.4055, allocations: 1.784 MB / 436.1 MB, free: 9.562 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001511/0.4056, allocations: 166.8 kB / 436.2 MB, free: 9.359 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002869/0.4085, allocations: 1.273 MB / 437.5 MB, free: 8.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.241e-05/0.4086, allocations: 41.69 kB / 437.5 MB, free: 8.023 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001141/0.4097, allocations: 0.8934 MB / 438.4 MB, free: 7.121 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002742/0.41, allocations: 218.2 kB / 438.6 MB, free: 6.906 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004484/0.4104, allocations: 218.8 kB / 438.9 MB, free: 6.688 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002262/0.4107, allocations: 361.9 kB / 439.2 MB, free: 6.328 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007278/0.4114, allocations: 222.5 kB / 439.4 MB, free: 6.109 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00144/0.4128, allocations: 0.8034 MB / 440.2 MB, free: 5.035 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00222/0.4151, allocations: 1.118 MB / 441.4 MB, free: 3.645 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.256e-05/0.4151, allocations: 4 kB / 441.4 MB, free: 3.641 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.003468/0.4185, allocations: 1.182 MB / 442.5 MB, free: 2.441 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.991e-05/0.4186, allocations: 41.64 kB / 442.6 MB, free: 2.395 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.191e-05/0.4187, allocations: 20 kB / 442.6 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003582/0.419, allocations: 73.62 kB / 442.7 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/0.4203, allocations: 263.5 kB / 442.9 MB, free: 2.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003202/0.4235, allocations: 2.777 MB / 445.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001926/0.4254, allocations: 63.92 kB / 445.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00014/0.4256, allocations: 64 kB / 445.8 MB, free: 14.86 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009578/0.4265, allocations: 369.3 kB / 446.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003236/0.4268, allocations: 143.1 kB / 446.3 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001642/0.4285, allocations: 0.5528 MB / 446.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.177e-06/0.4285, allocations: 4 kB / 446.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.4285, allocations: 0 / 446.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.4285, allocations: 0 / 446.9 MB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004615/0.4331, allocations: 1.862 MB / 448.7 MB, free: 11.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.234e-05/0.4331, allocations: 7.984 kB / 448.8 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00069/0.4338, allocations: 108.3 kB / 448.9 MB, free: 11.67 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002353/0.4341, allocations: 49.69 kB / 448.9 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.095e-05/0.4341, allocations: 16 kB / 448.9 MB, free: 11.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002955/0.4371, allocations: 2.745 MB / 451.7 MB, free: 8.574 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/0.4371, allocations: 4 kB / 451.7 MB, free: 8.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002383/0.4395, allocations: 0.9285 MB / 452.6 MB, free: 7.57 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008833/0.4403, allocations: 260.2 kB / 452.9 MB, free: 7.297 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002047/0.4405, allocations: 19.98 kB / 452.9 MB, free: 7.277 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000808/0.4414, allocations: 28.11 kB / 452.9 MB, free: 7.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001514/0.4415, allocations: 67.59 kB / 453 MB, free: 7.184 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.247e-05/0.4415, allocations: 16 kB / 453 MB, free: 7.168 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001719/0.4433, allocations: 0.8461 MB / 453.8 MB, free: 6.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4433, allocations: 3.938 kB / 453.8 MB, free: 6.316 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001325/0.4446, allocations: 308 kB / 454.1 MB, free: 6.016 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002793/0.4449, allocations: 127.1 kB / 454.3 MB, free: 5.883 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00168/0.4466, allocations: 0.8984 MB / 455.2 MB, free: 4.953 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.749e-06/0.4466, allocations: 0 / 455.2 MB, free: 4.953 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000747/0.4473, allocations: 458.1 kB / 455.6 MB, free: 4.48 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001532/0.4488, allocations: 332.7 kB / 455.9 MB, free: 4.156 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004432/0.4533, allocations: 2.569 MB / 458.5 MB, free: 1.504 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008901/0.4542, allocations: 1.178 MB / 459.7 MB, free: 300 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006844/0.4548, allocations: 163.3 kB / 459.8 MB, free: 132 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001892/0.455, allocations: 87.44 kB / 459.9 MB, free: 44 kB / 366.1 MB Notification: Performance of SimCode: time 1.273e-06/0.455, allocations: 7.938 kB / 459.9 MB, free: 36 kB / 366.1 MB Notification: Performance of Templates: time 0.03272/0.4877, allocations: 15.69 MB / 475.6 MB, free: 320 kB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_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_QuasiStationary/DCPM_QuasiStationary.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.3286878960207105]