Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) 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.DCEE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcee.airGapDC.psi_e|dcee.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcee.airGapDC.psi_e|dcee.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008994/0.0008995, allocations: 94.33 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009127/0.0009127, allocations: 183.7 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.36/1.36, allocations: 223.2 MB / 241.1 MB, free: 5.43 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003174/0.0003174, allocations: 10.31 kB / 300.7 MB, free: 5.992 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1197, allocations: 50.42 MB / 351.1 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start): time 0.007576/0.1273, allocations: 6.393 MB / 357.5 MB, free: 5.293 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.004398/0.1317, allocations: 2.473 MB / 360 MB, free: 2.812 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000963/0.1327, allocations: 23.94 kB / 360 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001536/0.1343, allocations: 461.8 kB / 360.5 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001282/0.1356, allocations: 478.6 kB / 360.9 MB, free: 1.867 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005576/0.1362, allocations: 147.8 kB / 361.1 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001913/0.1381, allocations: 0.9988 MB / 362.1 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005982/0.1387, allocations: 439.2 kB / 362.5 MB, free: 280 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005241/0.1392, allocations: 422.2 kB / 362.9 MB, free: 15.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004514/0.1397, allocations: 457.8 kB / 363.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.384e-05/0.1398, allocations: 60 kB / 363.4 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002483/0.1401, allocations: 107.9 kB / 363.5 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001252/0.1402, allocations: 175.2 kB / 363.7 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001888/0.1404, allocations: 257.1 kB / 364 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001014/0.1414, allocations: 1.281 MB / 365.2 MB, free: 13.53 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.1414, allocations: 4 kB / 365.3 MB, free: 13.53 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.1414, allocations: 4 kB / 365.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.528e-05/0.1414, allocations: 0 / 365.3 MB, free: 13.52 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 246 * Number of variables: 246 Notification: Performance of Generate backend data structure: time 0.001996/0.1435, allocations: 1.234 MB / 366.5 MB, free: 12.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.491e-05/0.1435, allocations: 12.03 kB / 366.5 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005274/0.1441, allocations: 154.5 kB / 366.7 MB, free: 12.07 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00116/0.1452, allocations: 0.6873 MB / 367.3 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.447e-05/0.1453, allocations: 74 kB / 367.4 MB, free: 11.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001282/0.1455, allocations: 96 kB / 367.5 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001549/0.147, allocations: 0.9112 MB / 368.4 MB, free: 10.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.394e-05/0.1471, allocations: 11.89 kB / 368.4 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.712e-05/0.1472, allocations: 43.95 kB / 368.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.073e-05/0.1472, allocations: 28 kB / 368.5 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001241/0.1484, allocations: 0.6285 MB / 369.1 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004912/0.1533, allocations: 3.882 MB / 373 MB, free: 5.406 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005692/0.154, allocations: 358 kB / 373.4 MB, free: 5.031 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.09e-05/0.154, allocations: 4.531 kB / 373.4 MB, free: 5.027 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.948e-05/0.154, allocations: 38.56 kB / 373.4 MB, free: 4.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=32): time 2.645e-06/0.154, allocations: 4 kB / 373.4 MB, free: 4.977 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.002439/0.1565, allocations: 1.215 MB / 374.6 MB, free: 3.684 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.408e-05/0.1566, allocations: 81.11 kB / 374.7 MB, free: 3.586 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008907/0.1574, allocations: 0.7627 MB / 375.5 MB, free: 2.812 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.641e-05/0.1575, allocations: 29.7 kB / 375.5 MB, free: 2.777 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003518/0.1578, allocations: 0.5718 MB / 376.1 MB, free: 2.195 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.475e-05/0.1579, allocations: 130.1 kB / 376.2 MB, free: 2.066 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.149e-05/0.158, allocations: 16 kB / 376.2 MB, free: 2.051 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001151/0.1581, allocations: 341.9 kB / 376.5 MB, free: 1.711 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002863/0.1584, allocations: 145.9 kB / 376.7 MB, free: 1.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004616/0.1588, allocations: 471.9 kB / 377.1 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003836/0.1592, allocations: 220.5 kB / 377.4 MB, free: 0.75 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/0.1593, allocations: 7.938 kB / 377.4 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001075/0.1603, allocations: 0.6961 MB / 378.1 MB, free: 36 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.1604, allocations: 8 kB / 378.1 MB, free: 28 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/0.1604, allocations: 12 kB / 378.1 MB, free: 16 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001837/0.1606, allocations: 36.84 kB / 378.1 MB, free: 15.98 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005028/0.1611, allocations: 168 kB / 378.3 MB, free: 15.81 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001043/0.1621, allocations: 1.292 MB / 379.6 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004349/0.1626, allocations: 43.95 kB / 379.6 MB, free: 14.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.791e-05/0.1626, allocations: 35.94 kB / 379.6 MB, free: 14.31 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003669/0.163, allocations: 257.6 kB / 379.9 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.1631, allocations: 83 kB / 380 MB, free: 13.96 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007072/0.1638, allocations: 382.3 kB / 380.4 MB, free: 13.58 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.1638, allocations: 4 kB / 380.4 MB, free: 13.57 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1639, allocations: 4 kB / 380.4 MB, free: 13.57 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.1639, allocations: 7.984 kB / 380.4 MB, free: 13.56 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001752/0.1656, allocations: 1.242 MB / 381.6 MB, free: 12.24 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.1656, allocations: 0 / 381.6 MB, free: 12.24 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003131/0.166, allocations: 80.12 kB / 381.7 MB, free: 12.16 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.197e-05/0.1661, allocations: 24.84 kB / 381.7 MB, free: 12.13 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.059e-05/0.1661, allocations: 8 kB / 381.7 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008344/0.1669, allocations: 1.288 MB / 383 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/0.1669, allocations: 7.969 kB / 383 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009732/0.1679, allocations: 0.7291 MB / 383.7 MB, free: 9.883 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002044/0.1681, allocations: 180.1 kB / 383.9 MB, free: 9.688 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.401e-05/0.1682, allocations: 15.94 kB / 383.9 MB, free: 9.672 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003121/0.1685, allocations: 27.98 kB / 384 MB, free: 9.645 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.938e-05/0.1686, allocations: 27.97 kB / 384 MB, free: 9.617 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.789e-05/0.1687, allocations: 12 kB / 384 MB, free: 9.605 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005923/0.1692, allocations: 0.5068 MB / 384.5 MB, free: 9.105 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1693, allocations: 0 / 384.5 MB, free: 9.105 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006828/0.17, allocations: 188 kB / 384.7 MB, free: 8.922 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (dcee.inertiaRotor.w,dcee.la.i,dcee.airGapDC.psi_e,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002058/0.1702, allocations: 123.2 kB / 384.8 MB, free: 8.793 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008703/0.171, allocations: 0.5123 MB / 385.3 MB, free: 8.27 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.1711, allocations: 4.125 kB / 385.3 MB, free: 8.266 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003677/0.1714, allocations: 266.5 kB / 385.6 MB, free: 7.992 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008572/0.1723, allocations: 206.9 kB / 385.8 MB, free: 7.789 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002821/0.1751, allocations: 2.079 MB / 387.9 MB, free: 5.664 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005888/0.1757, allocations: 1.016 MB / 388.9 MB, free: 4.617 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003917/0.1761, allocations: 106.8 kB / 389 MB, free: 4.508 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.855e-05/0.1763, allocations: 55.38 kB / 389 MB, free: 4.457 MB / 318.1 MB Notification: Performance of SimCode: time 1.092e-06/0.1763, allocations: 0 / 389 MB, free: 4.457 MB / 318.1 MB Notification: Performance of Templates: time 0.01769/0.194, allocations: 8.091 MB / 397.1 MB, free: 12.47 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCEE_Start/DCEE_Start.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCEE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches