Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001323/0.001322, allocations: 92.59 kB / 17.3 MB, free: 6.387 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.001347/0.001347, allocations: 174.1 kB / 18.2 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.941/1.941, allocations: 205.4 MB / 224.4 MB, free: 13.08 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005271/0.0005272, allocations: 12.42 kB / 281.4 MB, free: 3.414 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1234, allocations: 47.58 MB / 329 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.008483/0.1319, allocations: 7.522 MB / 336.5 MB, free: 12.19 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005624/0.1376, allocations: 2.608 MB / 339.1 MB, free: 9.57 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006234/0.1383, allocations: 27.88 kB / 339.1 MB, free: 9.543 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001485/0.1398, allocations: 0.4902 MB / 339.6 MB, free: 9.051 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00111/0.1409, allocations: 405.2 kB / 340 MB, free: 8.652 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004881/0.1414, allocations: 219.8 kB / 340.2 MB, free: 8.438 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001391/0.1428, allocations: 1.393 MB / 341.6 MB, free: 7.039 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007117/0.1435, allocations: 0.5006 MB / 342.1 MB, free: 6.516 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005795/0.1441, allocations: 469.7 kB / 342.6 MB, free: 6.055 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005833/0.1447, allocations: 0.5208 MB / 343.1 MB, free: 5.531 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001184/0.1448, allocations: 64 kB / 343.2 MB, free: 5.469 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002862/0.1451, allocations: 104 kB / 343.3 MB, free: 5.367 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001702/0.1453, allocations: 195 kB / 343.5 MB, free: 5.176 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005851/0.1459, allocations: 0.604 MB / 344.1 MB, free: 4.562 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001559/0.1475, allocations: 1.611 MB / 345.7 MB, free: 2.945 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.1475, allocations: 0 / 345.7 MB, free: 2.945 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.617e-06/0.1475, allocations: 4 kB / 345.7 MB, free: 2.941 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.511e-05/0.1475, allocations: 0 / 345.7 MB, free: 2.941 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 249 * Number of variables: 249 Notification: Performance of Generate backend data structure: time 0.002399/0.1499, allocations: 1.258 MB / 346.9 MB, free: 1.629 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.678e-05/0.15, allocations: 12.03 kB / 346.9 MB, free: 1.617 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007021/0.1507, allocations: 187.4 kB / 347.1 MB, free: 1.434 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001168/0.1519, allocations: 0.73 MB / 347.9 MB, free: 0.6602 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.039e-05/0.152, allocations: 77.94 kB / 347.9 MB, free: 0.582 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001362/0.1521, allocations: 99.91 kB / 348 MB, free: 496 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001638/0.1537, allocations: 0.9386 MB / 349 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.566e-05/0.1538, allocations: 0 / 349 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-05/0.1539, allocations: 47.94 kB / 349 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.665e-05/0.1539, allocations: 24 kB / 349 MB, free: 15.45 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001207/0.1551, allocations: 0.6481 MB / 349.7 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005175/0.1603, allocations: 3.938 MB / 353.6 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006928/0.161, allocations: 436.7 kB / 354.1 MB, free: 10.18 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005574/0.1616, allocations: 269.3 kB / 354.3 MB, free: 9.914 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.714e-05/0.1616, allocations: 4.328 kB / 354.3 MB, free: 9.91 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.97e-05/0.1617, allocations: 46.88 kB / 354.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of pre-optimization done (n=40): time 2.384e-06/0.1617, allocations: 0 / 354.4 MB, free: 9.855 MB / 302.1 MB Notification: Performance of matching and sorting (n=44): time 0.002766/0.1645, allocations: 1.423 MB / 355.8 MB, free: 8.355 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.587e-05/0.1645, allocations: 85.11 kB / 355.9 MB, free: 8.254 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001094/0.1656, allocations: 0.8175 MB / 356.7 MB, free: 7.426 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.867e-05/0.1657, allocations: 37.7 kB / 356.7 MB, free: 7.383 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004096/0.1661, allocations: 0.5486 MB / 357.3 MB, free: 6.824 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001359/0.1662, allocations: 161.7 kB / 357.4 MB, free: 6.664 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.17e-05/0.1663, allocations: 61.69 kB / 357.5 MB, free: 6.598 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.1665, allocations: 338 kB / 357.8 MB, free: 6.262 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003417/0.1669, allocations: 173.9 kB / 358 MB, free: 6.09 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005495/0.1674, allocations: 460 kB / 358.4 MB, free: 5.508 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009866/0.1684, allocations: 0.6739 MB / 359.1 MB, free: 4.699 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.1684, allocations: 3.938 kB / 359.1 MB, free: 4.695 MB / 302.1 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001322/0.1698, allocations: 0.7745 MB / 359.9 MB, free: 3.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/0.1698, allocations: 12 kB / 359.9 MB, free: 3.898 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/0.1698, allocations: 12 kB / 359.9 MB, free: 3.887 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000318/0.1701, allocations: 85.61 kB / 360 MB, free: 3.797 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004703/0.1706, allocations: 156 kB / 360.2 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002519/0.1731, allocations: 2.872 MB / 363 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005727/0.1737, allocations: 40.02 kB / 363.1 MB, free: 480 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.552e-05/0.1738, allocations: 36 kB / 363.1 MB, free: 444 kB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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): 82 * Array equations: 0 * Algorithm blocks: 0 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004293/0.1742, allocations: 268.2 kB / 363.4 MB, free: 168 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/0.1744, allocations: 86.97 kB / 363.4 MB, free: 80 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009763/0.1753, allocations: 0.4918 MB / 363.9 MB, free: 15.57 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.081e-06/0.1754, allocations: 8 kB / 363.9 MB, free: 15.56 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.1754, allocations: 0 / 363.9 MB, free: 15.56 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.388e-05/0.1754, allocations: 7.922 kB / 364 MB, free: 15.55 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002096/0.1775, allocations: 1.45 MB / 365.4 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/0.1775, allocations: 4 kB / 365.4 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002956/0.1778, allocations: 75.89 kB / 365.5 MB, free: 13.94 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001841/0.178, allocations: 69.84 kB / 365.6 MB, free: 13.87 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.72e-05/0.178, allocations: 15.98 kB / 365.6 MB, free: 13.85 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002111/0.1802, allocations: 2.856 MB / 368.4 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.307e-06/0.1802, allocations: 3.938 kB / 368.4 MB, free: 10.72 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001178/0.1814, allocations: 0.7731 MB / 369.2 MB, free: 9.906 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002468/0.1816, allocations: 196.1 kB / 369.4 MB, free: 9.695 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.807e-05/0.1817, allocations: 11.94 kB / 369.4 MB, free: 9.684 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003988/0.1821, allocations: 40.11 kB / 369.4 MB, free: 9.645 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/0.1822, allocations: 39.88 kB / 369.5 MB, free: 9.605 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.072e-05/0.1823, allocations: 8 kB / 369.5 MB, free: 9.598 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007938/0.1831, allocations: 0.5654 MB / 370.1 MB, free: 9.039 MB / 318.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.1831, allocations: 0 / 370.1 MB, free: 9.039 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008653/0.1839, allocations: 207.9 kB / 370.3 MB, free: 8.836 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (38): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * 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,5,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.0002505/0.1842, allocations: 119.2 kB / 370.4 MB, free: 8.707 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001191/0.1854, allocations: 0.6984 MB / 371.1 MB, free: 7.984 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.1854, allocations: 0 / 371.1 MB, free: 7.984 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006157/0.1861, allocations: 442.3 kB / 371.5 MB, free: 7.527 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001326/0.1874, allocations: 218.7 kB / 371.7 MB, free: 7.316 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003268/0.1907, allocations: 2.221 MB / 373.9 MB, free: 5.047 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006644/0.1914, allocations: 1.005 MB / 374.9 MB, free: 4.016 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004216/0.1918, allocations: 107.2 kB / 375 MB, free: 3.906 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001259/0.1919, allocations: 55.44 kB / 375.1 MB, free: 3.852 MB / 318.1 MB Notification: Performance of SimCode: time 1.413e-06/0.1919, allocations: 0 / 375.1 MB, free: 3.852 MB / 318.1 MB Notification: Performance of Templates: time 0.2606/0.4525, allocations: 9.948 MB / 385 MB, free: 49.53 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches