Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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.001858/0.001858, allocations: 107 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.002273/0.002273, allocations: 213.3 kB / 24.48 MB, free: 3.941 MB / 14.72 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 1.783/1.783, allocations: 230.6 MB / 258.2 MB, free: 7.742 MB / 206.1 MB " [Timeout remaining time 178] 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_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 55.92 kB / 379 MB, free: 2.453 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.423/0.4246, allocations: 53.36 MB / 432.3 MB, free: 6.734 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01491/0.4395, allocations: 10.24 MB / 442.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007928/0.4474, allocations: 3.089 MB / 445.7 MB, free: 9.355 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002177/0.4496, allocations: 43.81 kB / 445.7 MB, free: 9.312 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002304/0.4519, allocations: 0.6169 MB / 446.3 MB, free: 8.691 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003293/0.4552, allocations: 0.7251 MB / 447.1 MB, free: 7.961 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00128/0.4564, allocations: 407.4 kB / 447.5 MB, free: 7.562 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003507/0.4599, allocations: 2.244 MB / 449.7 MB, free: 5.312 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00113/0.4611, allocations: 0.6572 MB / 450.4 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001469/0.4625, allocations: 0.8795 MB / 451.2 MB, free: 3.723 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001223/0.4638, allocations: 0.9139 MB / 452.1 MB, free: 2.805 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002978/0.4641, allocations: 216 kB / 452.4 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005021/0.4646, allocations: 252 kB / 452.6 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003662/0.4649, allocations: 430.5 kB / 453 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009005/0.4658, allocations: 0.8206 MB / 453.8 MB, free: 1.102 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003085/0.4689, allocations: 2.708 MB / 456.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.4689, allocations: 4 kB / 456.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.4689, allocations: 0 / 456.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.042e-05/0.469, allocations: 0 / 456.6 MB, free: 14.38 MB / 366.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.003891/0.4729, allocations: 2.037 MB / 458.6 MB, free: 12.29 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.4729, allocations: 12.03 kB / 458.6 MB, free: 12.28 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008311/0.4737, allocations: 263.6 kB / 458.9 MB, free: 12.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001866/0.4756, allocations: 0.9687 MB / 459.8 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001014/0.4757, allocations: 111.5 kB / 459.9 MB, free: 10.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002287/0.4759, allocations: 167.8 kB / 460.1 MB, free: 10.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002778/0.4787, allocations: 1.588 MB / 461.7 MB, free: 9.062 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.24e-05/0.4788, allocations: 7.922 kB / 461.7 MB, free: 9.055 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001304/0.4789, allocations: 72 kB / 461.8 MB, free: 8.984 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.733e-05/0.4789, allocations: 40 kB / 461.8 MB, free: 8.945 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001904/0.4808, allocations: 0.9629 MB / 462.8 MB, free: 7.977 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008562/0.4894, allocations: 5.714 MB / 468.5 MB, free: 1.93 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008782/0.4903, allocations: 377.3 kB / 468.9 MB, free: 1.551 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004426/0.4907, allocations: 202.1 kB / 469.1 MB, free: 1.352 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.732e-05/0.4908, allocations: 8.422 kB / 469.1 MB, free: 1.344 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005891/0.4913, allocations: 328.2 kB / 469.4 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 3.126e-06/0.4913, allocations: 0 / 469.4 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of matching and sorting (n=56): time 0.003559/0.4949, allocations: 1.537 MB / 470.9 MB, free: 15.42 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001279/0.495, allocations: 162.7 kB / 471.1 MB, free: 15.22 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001581/0.4966, allocations: 1.114 MB / 472.2 MB, free: 14.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.132e-05/0.4967, allocations: 41.64 kB / 472.2 MB, free: 14.05 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008079/0.4975, allocations: 0.9044 MB / 473.1 MB, free: 13.13 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001932/0.4977, allocations: 214.3 kB / 473.3 MB, free: 12.92 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003246/0.498, allocations: 222.8 kB / 473.6 MB, free: 12.7 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000215/0.4982, allocations: 353.9 kB / 473.9 MB, free: 12.35 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004959/0.4987, allocations: 252.2 kB / 474.2 MB, free: 12.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001065/0.4998, allocations: 0.9367 MB / 475.1 MB, free: 10.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001592/0.5014, allocations: 1.113 MB / 476.2 MB, free: 9.473 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.918e-06/0.5014, allocations: 4 kB / 476.2 MB, free: 9.469 MB / 382.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002277/0.5036, allocations: 1.194 MB / 477.4 MB, free: 8.25 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.367e-05/0.5037, allocations: 41.7 kB / 477.4 MB, free: 8.203 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.016e-05/0.5038, allocations: 23.94 kB / 477.5 MB, free: 8.18 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002596/0.504, allocations: 61.7 kB / 477.5 MB, free: 8.113 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008308/0.5049, allocations: 267.5 kB / 477.8 MB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002304/0.5072, allocations: 2.528 MB / 480.3 MB, free: 5.121 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001144/0.5083, allocations: 72.16 kB / 480.4 MB, free: 5.051 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.896e-05/0.5084, allocations: 63.98 kB / 480.5 MB, free: 4.988 MB / 382.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.0006597/0.509, allocations: 357.3 kB / 480.8 MB, free: 4.629 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001772/0.5092, allocations: 123.2 kB / 480.9 MB, free: 4.508 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001184/0.5104, allocations: 0.5302 MB / 481.5 MB, free: 3.953 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.824e-06/0.5104, allocations: 12 kB / 481.5 MB, free: 3.941 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.5104, allocations: 0 / 481.5 MB, free: 3.941 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.5104, allocations: 7.922 kB / 481.5 MB, free: 3.934 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002667/0.5131, allocations: 1.54 MB / 483 MB, free: 2.301 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.421e-06/0.5131, allocations: 4 kB / 483 MB, free: 2.297 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004591/0.5136, allocations: 107.8 kB / 483.1 MB, free: 2.191 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001788/0.5137, allocations: 53.62 kB / 483.2 MB, free: 2.133 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.703e-05/0.5138, allocations: 16 kB / 483.2 MB, free: 2.117 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002183/0.516, allocations: 2.497 MB / 485.7 MB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.516, allocations: 4 kB / 485.7 MB, free: 15.41 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001657/0.5176, allocations: 0.9142 MB / 486.6 MB, free: 14.43 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005177/0.5181, allocations: 155.2 kB / 486.8 MB, free: 14.28 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001378/0.5183, allocations: 19.98 kB / 486.8 MB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005203/0.5188, allocations: 27.98 kB / 486.8 MB, free: 14.23 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001293/0.5189, allocations: 59.78 kB / 486.9 MB, free: 14.17 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.545e-05/0.519, allocations: 24 kB / 486.9 MB, free: 14.15 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001154/0.5201, allocations: 0.7122 MB / 487.6 MB, free: 13.43 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5201, allocations: 0 / 487.6 MB, free: 13.43 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001274/0.5214, allocations: 303.9 kB / 487.9 MB, free: 13.13 MB / 398.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.0002528/0.5216, allocations: 127.2 kB / 488 MB, free: 13 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001789/0.5234, allocations: 0.9339 MB / 488.9 MB, free: 12.02 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/0.5234, allocations: 384 / 489 MB, free: 12.02 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007234/0.5242, allocations: 457 kB / 489.4 MB, free: 11.55 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001443/0.5256, allocations: 318.8 kB / 489.7 MB, free: 11.25 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004407/0.53, allocations: 2.532 MB / 492.2 MB, free: 8.637 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006947/0.5307, allocations: 0.6038 MB / 492.8 MB, free: 7.996 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000572/0.5313, allocations: 154.1 kB / 493 MB, free: 7.844 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001841/0.5315, allocations: 83.42 kB / 493.1 MB, free: 7.762 MB / 398.1 MB Notification: Performance of SimCode: time 1.192e-06/0.5315, allocations: 0 / 493.1 MB, free: 7.762 MB / 398.1 MB Notification: Performance of Templates: time 0.03093/0.5624, allocations: 16.89 MB / 0.498 GB, free: 7.199 MB / 414.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.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: 6.151394661996164]