Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001655/0.001655, allocations: 188.9 kB / 17.27 MB, free: 4.496 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 222.9 MB / 240.9 MB, free: 11.01 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009962/0.0009962, allocations: 104.8 kB / 291.2 MB, free: 10.97 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007937/0.0007937, allocations: 43.94 kB / 350 MB, free: 92 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2032/0.204, allocations: 49.43 MB / 399.5 MB, free: 33.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.008128/0.2122, allocations: 11.65 MB / 411.1 MB, free: 21.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003984/0.2162, allocations: 3.192 MB / 414.3 MB, free: 18.5 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007602/0.217, allocations: 39.88 kB / 414.4 MB, free: 18.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001164/0.2182, allocations: 0.5438 MB / 414.9 MB, free: 17.92 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001036/0.2192, allocations: 0.5896 MB / 415.5 MB, free: 17.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006639/0.2199, allocations: 347.8 kB / 415.8 MB, free: 16.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001558/0.2215, allocations: 2.159 MB / 418 MB, free: 14.82 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009033/0.2224, allocations: 0.8579 MB / 418.8 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005768/0.223, allocations: 0.7545 MB / 419.6 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006195/0.2236, allocations: 0.8592 MB / 420.5 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001491/0.2238, allocations: 136 kB / 420.6 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003097/0.2241, allocations: 176 kB / 420.8 MB, free: 11.99 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001734/0.2243, allocations: 346.5 kB / 421.1 MB, free: 11.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005738/0.2248, allocations: 0.9328 MB / 422 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001333/0.2262, allocations: 2.589 MB / 424.6 MB, free: 8.113 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2262, allocations: 4 kB / 424.6 MB, free: 8.109 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.2262, allocations: 0 / 424.6 MB, free: 8.109 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.186e-05/0.2262, allocations: 4 kB / 424.6 MB, free: 8.105 MB / 298.7 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.002603/0.2288, allocations: 2.054 MB / 426.7 MB, free: 5.988 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.2289, allocations: 8.031 kB / 426.7 MB, free: 5.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006042/0.2295, allocations: 262.5 kB / 427 MB, free: 5.723 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001112/0.2306, allocations: 1.028 MB / 428 MB, free: 4.652 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.104e-05/0.2307, allocations: 111.5 kB / 428.1 MB, free: 4.543 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001523/0.2308, allocations: 163.8 kB / 428.2 MB, free: 4.383 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001771/0.2326, allocations: 1.491 MB / 429.7 MB, free: 2.816 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.323e-05/0.2327, allocations: 15.83 kB / 429.8 MB, free: 2.801 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.343e-05/0.2328, allocations: 64 kB / 429.8 MB, free: 2.738 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.957e-05/0.2328, allocations: 36 kB / 429.9 MB, free: 2.703 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001407/0.2342, allocations: 0.9747 MB / 430.8 MB, free: 1.723 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006266/0.2405, allocations: 6.574 MB / 437.4 MB, free: 10.8 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007357/0.2412, allocations: 396.1 kB / 437.8 MB, free: 10.4 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004073/0.2416, allocations: 222.9 kB / 438 MB, free: 10.18 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.843e-05/0.2417, allocations: 12.44 kB / 438 MB, free: 10.17 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005061/0.2422, allocations: 268.8 kB / 438.3 MB, free: 9.883 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 2.014e-06/0.2422, allocations: 0 / 438.3 MB, free: 9.883 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.002986/0.2452, allocations: 1.75 MB / 440 MB, free: 8.043 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.827e-05/0.2453, allocations: 162.8 kB / 440.2 MB, free: 7.848 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001498/0.2468, allocations: 1.277 MB / 441.5 MB, free: 6.555 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.592e-05/0.2469, allocations: 37.7 kB / 441.5 MB, free: 6.512 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006013/0.2475, allocations: 0.879 MB / 442.4 MB, free: 5.621 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001378/0.2476, allocations: 205.2 kB / 442.6 MB, free: 5.418 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002476/0.2479, allocations: 214.6 kB / 442.8 MB, free: 5.203 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.248, allocations: 357.9 kB / 443.1 MB, free: 4.848 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004173/0.2484, allocations: 230.5 kB / 443.4 MB, free: 4.621 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007436/0.2492, allocations: 0.8112 MB / 444.2 MB, free: 3.535 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001227/0.2504, allocations: 1.11 MB / 445.3 MB, free: 2.152 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.164e-06/0.2504, allocations: 8 kB / 445.3 MB, free: 2.145 MB / 314.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0018/0.2523, allocations: 1.169 MB / 446.5 MB, free: 0.957 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.078e-05/0.2523, allocations: 37.7 kB / 446.5 MB, free: 0.9141 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.063e-05/0.2523, allocations: 20.83 kB / 446.5 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002268/0.2526, allocations: 73.58 kB / 446.6 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000724/0.2533, allocations: 271.5 kB / 446.9 MB, free: 0.5508 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001704/0.255, allocations: 2.575 MB / 449.4 MB, free: 13.71 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000859/0.2559, allocations: 63.89 kB / 449.5 MB, free: 13.64 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.517e-05/0.256, allocations: 56 kB / 449.6 MB, free: 13.59 MB / 330.7 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.0005336/0.2565, allocations: 377.2 kB / 449.9 MB, free: 13.21 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001373/0.2566, allocations: 130.4 kB / 450 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009381/0.2576, allocations: 0.5488 MB / 450.6 MB, free: 12.52 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.153e-06/0.2576, allocations: 11.94 kB / 450.6 MB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.2576, allocations: 0 / 450.6 MB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.2576, allocations: 4 kB / 450.6 MB, free: 12.5 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002414/0.2601, allocations: 1.874 MB / 452.5 MB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/0.2601, allocations: 4 kB / 452.5 MB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003901/0.2605, allocations: 99.89 kB / 452.6 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001267/0.2606, allocations: 45.69 kB / 452.6 MB, free: 10.36 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.75e-05/0.2606, allocations: 12 kB / 452.6 MB, free: 10.34 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00144/0.2621, allocations: 2.557 MB / 455.2 MB, free: 7.523 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.2621, allocations: 7.938 kB / 455.2 MB, free: 7.516 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006402/0.2685, allocations: 6.485 MB / 461.7 MB, free: 0.5352 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003013/0.2688, allocations: 255.6 kB / 461.9 MB, free: 272 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001208/0.269, allocations: 23.98 kB / 462 MB, free: 248 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004821/0.2695, allocations: 27.98 kB / 462 MB, free: 220 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.749e-05/0.2696, allocations: 55.81 kB / 462 MB, free: 164 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.9e-05/0.2696, allocations: 19.98 kB / 462.1 MB, free: 144 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00101/0.2706, allocations: 0.8539 MB / 462.9 MB, free: 15.29 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2706, allocations: 0 / 462.9 MB, free: 15.29 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001274/0.2719, allocations: 428 kB / 463.3 MB, free: 14.87 MB / 346.7 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.0002088/0.2721, allocations: 127.1 kB / 463.5 MB, free: 14.73 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001381/0.2735, allocations: 0.9291 MB / 464.4 MB, free: 13.77 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.2735, allocations: 0.5 kB / 464.4 MB, free: 13.77 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006324/0.2742, allocations: 469.1 kB / 464.9 MB, free: 13.29 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001405/0.2756, allocations: 317.1 kB / 465.2 MB, free: 12.98 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004532/0.2801, allocations: 3.732 MB / 468.9 MB, free: 9.129 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007288/0.2809, allocations: 1.186 MB / 470.1 MB, free: 7.91 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006033/0.2815, allocations: 179.3 kB / 470.3 MB, free: 7.73 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001764/0.2817, allocations: 83.44 kB / 470.3 MB, free: 7.648 MB / 346.7 MB Notification: Performance of SimCode: time 4.71e-07/0.2817, allocations: 0 / 470.3 MB, free: 7.648 MB / 346.7 MB Notification: Performance of Templates: time 0.02576/0.3074, allocations: 15.39 MB / 485.7 MB, free: 8.418 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches