Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009642/0.0009642, allocations: 195.7 kB / 17.43 MB, free: 4.371 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.4/1.4, allocations: 229.5 MB / 247.7 MB, free: 6.363 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009864/0.0009864, allocations: 101.3 kB / 299.9 MB, free: 5.383 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002359/0.0002359, allocations: 8 kB / 360.6 MB, free: 8.512 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2065/0.2068, allocations: 51.41 MB / 412.1 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.007502/0.2143, allocations: 10.44 MB / 422.5 MB, free: 15.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004584/0.2189, allocations: 3.655 MB / 426.1 MB, free: 11.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007989/0.2197, allocations: 39.88 kB / 426.2 MB, free: 11.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001178/0.2209, allocations: 0.5554 MB / 426.7 MB, free: 11.08 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001097/0.222, allocations: 0.5818 MB / 427.3 MB, free: 10.49 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005674/0.2226, allocations: 347.7 kB / 427.7 MB, free: 10.15 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001343/0.224, allocations: 2.117 MB / 429.8 MB, free: 8.023 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008188/0.2248, allocations: 0.854 MB / 430.6 MB, free: 7.125 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006949/0.2255, allocations: 0.6958 MB / 431.3 MB, free: 6.426 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005649/0.2261, allocations: 0.7772 MB / 432.1 MB, free: 5.645 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001322/0.2262, allocations: 104 kB / 432.2 MB, free: 5.543 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002995/0.2265, allocations: 136 kB / 432.3 MB, free: 5.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001558/0.2267, allocations: 310.4 kB / 432.6 MB, free: 5.105 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000551/0.2272, allocations: 0.8994 MB / 433.5 MB, free: 4.195 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001359/0.2286, allocations: 2.502 MB / 436 MB, free: 1.684 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.972e-06/0.2286, allocations: 0 / 436 MB, free: 1.684 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2286, allocations: 0 / 436 MB, free: 1.684 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.96e-05/0.2287, allocations: 0 / 436 MB, free: 1.684 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.002235/0.2309, allocations: 1.76 MB / 437.8 MB, free: 15.86 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.2309, allocations: 16.03 kB / 437.8 MB, free: 15.84 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007/0.2317, allocations: 262.4 kB / 438.1 MB, free: 15.59 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001339/0.233, allocations: 1.024 MB / 439.1 MB, free: 14.52 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.707e-05/0.2331, allocations: 115.5 kB / 439.2 MB, free: 14.41 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001969/0.2333, allocations: 163.8 kB / 439.4 MB, free: 14.25 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002293/0.2356, allocations: 1.48 MB / 440.9 MB, free: 12.69 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.964e-05/0.2356, allocations: 7.844 kB / 440.9 MB, free: 12.68 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001074/0.2358, allocations: 68 kB / 440.9 MB, free: 12.62 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.895e-05/0.2358, allocations: 44 kB / 441 MB, free: 12.57 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001762/0.2376, allocations: 0.9668 MB / 441.9 MB, free: 11.6 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007547/0.2451, allocations: 6.594 MB / 448.5 MB, free: 4.656 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007788/0.2459, allocations: 404.2 kB / 448.9 MB, free: 4.25 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003972/0.2463, allocations: 236.1 kB / 449.2 MB, free: 4.02 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.418e-05/0.2464, allocations: 8.375 kB / 449.2 MB, free: 4.012 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005218/0.2469, allocations: 272.8 kB / 449.4 MB, free: 3.727 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 1.683e-06/0.2469, allocations: 0 / 449.4 MB, free: 3.727 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.003388/0.2503, allocations: 1.781 MB / 451.2 MB, free: 1.848 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.842e-05/0.2504, allocations: 170.7 kB / 451.4 MB, free: 1.645 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001566/0.252, allocations: 1.253 MB / 452.6 MB, free: 384 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.827e-05/0.252, allocations: 41.69 kB / 452.7 MB, free: 336 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006653/0.2527, allocations: 0.8751 MB / 453.6 MB, free: 15.44 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001581/0.2529, allocations: 205.2 kB / 453.8 MB, free: 15.24 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.542e-05/0.2529, allocations: 20 kB / 453.8 MB, free: 15.22 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.2531, allocations: 353.9 kB / 454.1 MB, free: 14.87 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004678/0.2535, allocations: 234.5 kB / 454.3 MB, free: 14.64 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007842/0.2543, allocations: 0.7995 MB / 455.1 MB, free: 13.56 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001267/0.2556, allocations: 1.122 MB / 456.3 MB, free: 12.17 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.061e-05/0.2556, allocations: 11.94 kB / 456.3 MB, free: 12.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001796/0.2574, allocations: 1.177 MB / 457.5 MB, free: 10.96 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.349e-05/0.2575, allocations: 37.7 kB / 457.5 MB, free: 10.92 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.525e-05/0.2575, allocations: 20 kB / 457.5 MB, free: 10.9 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002011/0.2577, allocations: 65.62 kB / 457.6 MB, free: 10.83 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000756/0.2585, allocations: 271.6 kB / 457.8 MB, free: 10.56 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001826/0.2603, allocations: 2.576 MB / 460.4 MB, free: 7.719 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009688/0.2613, allocations: 76.03 kB / 460.5 MB, free: 7.645 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.213e-05/0.2614, allocations: 60 kB / 460.5 MB, free: 7.586 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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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.0006025/0.262, allocations: 365.2 kB / 460.9 MB, free: 7.219 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001492/0.2622, allocations: 130.4 kB / 461 MB, free: 7.09 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009955/0.2632, allocations: 0.5529 MB / 461.6 MB, free: 6.523 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.2632, allocations: 7.938 kB / 461.6 MB, free: 6.516 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.232e-06/0.2632, allocations: 7.938 kB / 461.6 MB, free: 6.508 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.2632, allocations: 11.92 kB / 461.6 MB, free: 6.496 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002602/0.2658, allocations: 1.881 MB / 463.5 MB, free: 4.496 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.2658, allocations: 0 / 463.5 MB, free: 4.496 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004197/0.2663, allocations: 107.9 kB / 463.6 MB, free: 4.391 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001487/0.2664, allocations: 54.11 kB / 463.7 MB, free: 4.332 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.805e-05/0.2665, allocations: 11.94 kB / 463.7 MB, free: 4.32 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001631/0.2681, allocations: 2.568 MB / 466.2 MB, free: 1.488 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/0.2681, allocations: 4 kB / 466.2 MB, free: 1.484 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001386/0.2695, allocations: 0.9306 MB / 467.2 MB, free: 496 kB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003925/0.2699, allocations: 259.4 kB / 467.4 MB, free: 216 kB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001362/0.2701, allocations: 19.98 kB / 467.4 MB, free: 196 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005122/0.2706, allocations: 31.98 kB / 467.5 MB, free: 164 kB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001122/0.2707, allocations: 55.81 kB / 467.5 MB, free: 108 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.993e-05/0.2707, allocations: 23.98 kB / 467.5 MB, free: 84 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.001161/0.2719, allocations: 0.8345 MB / 468.4 MB, free: 15.24 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2719, allocations: 0 / 468.4 MB, free: 15.24 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001063/0.273, allocations: 308 kB / 468.7 MB, free: 14.94 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.00026/0.2733, allocations: 131.1 kB / 468.8 MB, free: 14.8 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001475/0.2748, allocations: 0.9279 MB / 469.7 MB, free: 13.84 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.2748, allocations: 0 / 469.7 MB, free: 13.84 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006515/0.2754, allocations: 479.7 kB / 470.2 MB, free: 13.34 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001979/0.2774, allocations: 312.9 kB / 470.5 MB, free: 13.04 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004914/0.2823, allocations: 3.266 MB / 473.8 MB, free: 9.691 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007256/0.2831, allocations: 1.178 MB / 475 MB, free: 8.484 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0006869/0.2838, allocations: 171.3 kB / 475.1 MB, free: 8.312 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001645/0.284, allocations: 83.44 kB / 475.2 MB, free: 8.23 MB / 346.7 MB Notification: Performance of SimCode: time 8.72e-07/0.284, allocations: 0 / 475.2 MB, free: 8.23 MB / 346.7 MB Notification: Performance of Templates: time 0.02578/0.3098, allocations: 14.15 MB / 489.4 MB, free: 10.27 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches