Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,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=40000,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") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009809/0.0009809, allocations: 174 kB / 17.36 MB, free: 4.316 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.332/1.332, allocations: 205.6 MB / 223.7 MB, free: 8.938 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007135/0.0007136, allocations: 78.56 kB / 272.1 MB, free: 8.117 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002375/0.0002375, allocations: 8 kB / 329 MB, free: 15.04 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.233/0.2332, allocations: 47.57 MB / 376.6 MB, free: 45.57 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.009816/0.2431, allocations: 10.37 MB / 387 MB, free: 37.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.006322/0.2495, allocations: 3.47 MB / 390.4 MB, free: 34.4 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001866/0.2514, allocations: 35.38 kB / 390.5 MB, free: 34.4 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001762/0.2532, allocations: 0.5584 MB / 391 MB, free: 33.92 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002487/0.2557, allocations: 0.5818 MB / 391.6 MB, free: 33.33 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007676/0.2564, allocations: 351.7 kB / 392 MB, free: 32.99 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00246/0.2589, allocations: 2.125 MB / 394.1 MB, free: 30.85 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00108/0.26, allocations: 0.8395 MB / 394.9 MB, free: 29.98 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001197/0.2612, allocations: 0.6919 MB / 395.6 MB, free: 29.28 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000734/0.262, allocations: 0.7773 MB / 396.4 MB, free: 28.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000155/0.2621, allocations: 104 kB / 396.5 MB, free: 28.4 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003894/0.2625, allocations: 144 kB / 396.6 MB, free: 28.26 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001889/0.2627, allocations: 306.5 kB / 396.9 MB, free: 27.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006944/0.2634, allocations: 0.9032 MB / 397.8 MB, free: 27.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001685/0.2651, allocations: 2.506 MB / 400.3 MB, free: 24.53 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.935e-06/0.2651, allocations: 0 / 400.3 MB, free: 24.53 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.377e-06/0.2652, allocations: 0 / 400.3 MB, free: 24.53 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.862e-05/0.2652, allocations: 0 / 400.3 MB, free: 24.53 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.002975/0.2682, allocations: 1.749 MB / 402.1 MB, free: 22.71 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.2682, allocations: 15.97 kB / 402.1 MB, free: 22.7 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008259/0.2691, allocations: 258.5 kB / 402.4 MB, free: 22.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001419/0.2705, allocations: 1.02 MB / 403.4 MB, free: 21.38 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.528e-05/0.2706, allocations: 119.5 kB / 403.5 MB, free: 21.27 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001879/0.2708, allocations: 167.8 kB / 403.7 MB, free: 21.1 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002119/0.2729, allocations: 1.479 MB / 405.1 MB, free: 19.55 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.109e-05/0.273, allocations: 0 / 405.1 MB, free: 19.55 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.941e-05/0.2731, allocations: 64 kB / 405.2 MB, free: 19.48 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.287e-05/0.2731, allocations: 44 kB / 405.3 MB, free: 19.44 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001533/0.2746, allocations: 0.9746 MB / 406.2 MB, free: 18.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005753/0.2804, allocations: 6.601 MB / 412.8 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006774/0.2811, allocations: 416.1 kB / 413.2 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003404/0.2815, allocations: 225.1 kB / 413.5 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.051e-05/0.2815, allocations: 4.438 kB / 413.5 MB, free: 10.87 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00045/0.282, allocations: 280.8 kB / 413.7 MB, free: 10.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 1.944e-06/0.282, allocations: 0 / 413.7 MB, free: 10.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.002654/0.2846, allocations: 1.781 MB / 415.5 MB, free: 8.691 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.841e-05/0.2847, allocations: 162.8 kB / 415.7 MB, free: 8.496 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001248/0.2859, allocations: 1.261 MB / 416.9 MB, free: 7.219 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.607e-05/0.286, allocations: 37.7 kB / 417 MB, free: 7.176 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004228/0.2864, allocations: 0.8751 MB / 417.8 MB, free: 6.289 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.208e-05/0.2865, allocations: 205.1 kB / 418 MB, free: 6.086 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.052e-05/0.2865, allocations: 24 kB / 418.1 MB, free: 6.062 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.903e-05/0.2866, allocations: 357.9 kB / 418.4 MB, free: 5.707 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003642/0.287, allocations: 226.5 kB / 418.6 MB, free: 5.484 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000558/0.2876, allocations: 0.8112 MB / 419.5 MB, free: 4.398 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000961/0.2885, allocations: 1.118 MB / 420.6 MB, free: 3.012 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.2886, allocations: 8 kB / 420.6 MB, free: 3.004 MB / 298.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001443/0.29, allocations: 1.169 MB / 421.7 MB, free: 1.812 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.501e-05/0.29, allocations: 41.69 kB / 421.8 MB, free: 1.766 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.61e-05/0.2901, allocations: 20 kB / 421.8 MB, free: 1.746 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002313/0.2903, allocations: 65.64 kB / 421.9 MB, free: 1.676 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006642/0.291, allocations: 271.8 kB / 422.1 MB, free: 1.41 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001468/0.2925, allocations: 2.583 MB / 424.7 MB, free: 14.56 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008444/0.2933, allocations: 79.94 kB / 424.8 MB, free: 14.48 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.897e-05/0.2934, allocations: 60 kB / 424.9 MB, free: 14.43 MB / 314.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.0005618/0.294, allocations: 364.8 kB / 425.2 MB, free: 14.06 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/0.2941, allocations: 134.4 kB / 425.3 MB, free: 13.93 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009911/0.2951, allocations: 0.5606 MB / 425.9 MB, free: 13.35 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.2952, allocations: 7.938 kB / 425.9 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.2952, allocations: 8 kB / 425.9 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.073e-06/0.2952, allocations: 3.984 kB / 425.9 MB, free: 13.33 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002544/0.2977, allocations: 1.885 MB / 427.8 MB, free: 11.33 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.2978, allocations: 0 / 427.8 MB, free: 11.33 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004467/0.2982, allocations: 112.3 kB / 427.9 MB, free: 11.22 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001375/0.2984, allocations: 45.7 kB / 428 MB, free: 11.17 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.103e-05/0.2984, allocations: 15.98 kB / 428 MB, free: 11.15 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001699/0.3001, allocations: 2.548 MB / 430.5 MB, free: 8.336 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.3001, allocations: 7.938 kB / 430.5 MB, free: 8.328 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001422/0.3016, allocations: 0.9341 MB / 431.5 MB, free: 7.324 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004975/0.3021, allocations: 259.4 kB / 431.7 MB, free: 7.051 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001681/0.3022, allocations: 16 kB / 431.7 MB, free: 7.035 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000506/0.3028, allocations: 35.97 kB / 431.8 MB, free: 7 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001106/0.3029, allocations: 51.81 kB / 431.8 MB, free: 6.949 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.604e-05/0.3029, allocations: 20 kB / 431.8 MB, free: 6.93 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001167/0.3041, allocations: 0.8383 MB / 432.7 MB, free: 6.09 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3041, allocations: 0 / 432.7 MB, free: 6.09 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001112/0.3052, allocations: 300 kB / 433 MB, free: 5.797 MB / 314.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.0002693/0.3055, allocations: 147 kB / 433.1 MB, free: 5.645 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001561/0.3071, allocations: 0.9163 MB / 434 MB, free: 4.695 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.3071, allocations: 5.875 kB / 434 MB, free: 4.691 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006574/0.3077, allocations: 481.7 kB / 434.5 MB, free: 4.195 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002002/0.3098, allocations: 301 kB / 434.8 MB, free: 3.898 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004924/0.3147, allocations: 3.265 MB / 438.1 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009579/0.3157, allocations: 1.178 MB / 439.2 MB, free: 15.36 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007938/0.3165, allocations: 171.3 kB / 439.4 MB, free: 15.18 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000178/0.3167, allocations: 83.44 kB / 439.5 MB, free: 15.1 MB / 330.7 MB Notification: Performance of SimCode: time 1.453e-06/0.3167, allocations: 0 / 439.5 MB, free: 15.1 MB / 330.7 MB Notification: Performance of Templates: time 0.02695/0.3437, allocations: 14.15 MB / 453.7 MB, free: 1.043 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (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) 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","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches