Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 79.75 kB / 21.18 MB, free: 3.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001531/0.001531, allocations: 161 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.038/1.038, allocations: 177.1 MB / 205 MB, free: 5.246 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.633e-06/1.633e-06, allocations: 0 / 273 MB, free: 1.359 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.926e-05/3.089e-05, allocations: 2.312 kB / 273 MB, free: 1.355 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.007245/0.007276, allocations: 8.074 MB / 281.1 MB, free: 9.246 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004192/0.01147, allocations: 2.622 MB / 283.7 MB, free: 6.613 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007086/0.01218, allocations: 31.81 kB / 283.7 MB, free: 6.582 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001243/0.01342, allocations: 0.5168 MB / 284.2 MB, free: 6.062 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001011/0.01443, allocations: 0.5194 MB / 284.7 MB, free: 5.539 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004132/0.01484, allocations: 247.7 kB / 285 MB, free: 5.297 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001374/0.01622, allocations: 1.536 MB / 286.5 MB, free: 3.754 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005426/0.01676, allocations: 371.2 kB / 286.9 MB, free: 3.363 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001065/0.01782, allocations: 0.8651 MB / 287.8 MB, free: 2.496 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006002/0.01842, allocations: 486.5 kB / 288.2 MB, free: 2.02 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001842/0.01861, allocations: 140 kB / 288.4 MB, free: 1.883 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002848/0.01889, allocations: 168 kB / 288.5 MB, free: 1.719 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001451/0.01904, allocations: 294.9 kB / 288.8 MB, free: 1.43 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000393/0.01943, allocations: 462.9 kB / 289.3 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009594/0.02039, allocations: 0.934 MB / 290.2 MB, free: 40 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.0204, allocations: 4 kB / 290.2 MB, free: 36 kB / 266.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.0204, allocations: 3.938 kB / 290.2 MB, free: 32 kB / 266.7 MB Notification: Performance of Transformations before backend: time 1.79e-05/0.02041, allocations: 0 / 290.2 MB, free: 32 kB / 266.7 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.135/0.1554, allocations: 1.5 MB / 291.7 MB, free: 24.95 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.417e-05/0.1554, allocations: 10.69 kB / 291.7 MB, free: 24.95 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005469/0.156, allocations: 272.5 kB / 292 MB, free: 24.88 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009962/0.157, allocations: 0.681 MB / 292.7 MB, free: 24.61 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.99e-05/0.157, allocations: 72.5 kB / 292.7 MB, free: 24.61 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001143/0.1571, allocations: 105.2 kB / 292.8 MB, free: 24.6 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001063/0.1582, allocations: 0.8251 MB / 293.7 MB, free: 24.34 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.35e-05/0.1582, allocations: 6.531 kB / 293.7 MB, free: 24.33 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.54e-05/0.1583, allocations: 41.27 kB / 293.7 MB, free: 24.33 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.831e-05/0.1583, allocations: 23.5 kB / 293.7 MB, free: 24.33 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000648/0.159, allocations: 357.2 kB / 294.1 MB, free: 24.32 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00346/0.1624, allocations: 3.619 MB / 297.7 MB, free: 22.28 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004417/0.1629, allocations: 280.9 kB / 298 MB, free: 22.17 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003447/0.1632, allocations: 199.5 kB / 298.2 MB, free: 22.13 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.192e-05/0.1632, allocations: 6.984 kB / 298.2 MB, free: 22.13 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.78e-05/0.1633, allocations: 41.41 kB / 298.2 MB, free: 22.08 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 2.455e-06/0.1633, allocations: 0 / 298.2 MB, free: 22.08 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.001702/0.165, allocations: 1.016 MB / 299.2 MB, free: 21.52 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.385e-05/0.165, allocations: 81.83 kB / 299.3 MB, free: 21.43 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000824/0.1658, allocations: 0.7471 MB / 300.1 MB, free: 21.08 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.376e-05/0.1659, allocations: 32.2 kB / 300.1 MB, free: 21.04 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003141/0.1662, allocations: 0.636 MB / 300.7 MB, free: 20.53 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.72e-05/0.1663, allocations: 161.1 kB / 300.9 MB, free: 20.41 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001494/0.1664, allocations: 140.4 kB / 301 MB, free: 20.32 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001628/0.1666, allocations: 0.5658 MB / 301.6 MB, free: 19.79 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001645/0.1668, allocations: 85.58 kB / 301.7 MB, free: 19.78 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003291/0.1671, allocations: 0.5243 MB / 302.2 MB, free: 19.19 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005217/0.1676, allocations: 0.6405 MB / 302.8 MB, free: 18.6 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.454e-06/0.1676, allocations: 3.844 kB / 302.8 MB, free: 18.6 MB / 266.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.000812/0.1684, allocations: 0.6398 MB / 303.5 MB, free: 18.39 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.1684, allocations: 10.83 kB / 303.5 MB, free: 18.39 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.401e-05/0.1685, allocations: 8.25 kB / 303.5 MB, free: 18.39 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002206/0.1687, allocations: 84.36 kB / 303.6 MB, free: 18.35 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002813/0.169, allocations: 148.1 kB / 303.7 MB, free: 18.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001381/0.1703, allocations: 3.858 MB / 307.6 MB, free: 14.53 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000314/0.1707, allocations: 36.5 kB / 307.6 MB, free: 14.51 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.009e-05/0.1707, allocations: 36.34 kB / 307.7 MB, free: 14.5 MB / 266.7 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.0001875/0.1709, allocations: 217.3 kB / 307.9 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.305e-05/0.171, allocations: 97.45 kB / 308 MB, free: 14.25 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005403/0.1715, allocations: 371.5 kB / 308.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.1715, allocations: 3.906 kB / 308.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/0.1715, allocations: 3.359 kB / 308.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.1715, allocations: 2.391 kB / 308.3 MB, free: 14.07 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001391/0.1729, allocations: 1.161 MB / 309.5 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.1729, allocations: 2.75 kB / 309.5 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000171/0.1731, allocations: 68.34 kB / 309.6 MB, free: 13.35 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001549/0.1733, allocations: 74.11 kB / 309.6 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.989e-05/0.1733, allocations: 8.375 kB / 309.6 MB, free: 13.31 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001186/0.1745, allocations: 3.844 MB / 313.5 MB, free: 9.496 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.1745, allocations: 2.312 kB / 313.5 MB, free: 9.496 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005796/0.175, allocations: 0.6526 MB / 314.1 MB, free: 9.07 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001448/0.1752, allocations: 116.7 kB / 314.3 MB, free: 8.996 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.666e-05/0.1752, allocations: 11.97 kB / 314.3 MB, free: 8.988 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001819/0.1754, allocations: 28.84 kB / 314.3 MB, free: 8.977 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.917e-05/0.1755, allocations: 41.27 kB / 314.3 MB, free: 8.965 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.64e-05/0.1755, allocations: 14.22 kB / 314.4 MB, free: 8.961 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000382/0.1759, allocations: 471.5 kB / 314.8 MB, free: 8.766 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1759, allocations: 0 / 314.8 MB, free: 8.766 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006684/0.1766, allocations: 204.7 kB / 315 MB, free: 8.746 MB / 266.7 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.0002319/0.1768, allocations: 129.7 kB / 315.1 MB, free: 8.641 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006616/0.1774, allocations: 0.6819 MB / 315.8 MB, free: 8.195 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.078e-06/0.1775, allocations: 3.812 kB / 315.8 MB, free: 8.195 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002863/0.1777, allocations: 0.4911 MB / 316.3 MB, free: 7.797 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006076/0.1783, allocations: 204.7 kB / 316.5 MB, free: 7.73 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002072/0.1804, allocations: 1.609 MB / 318.1 MB, free: 6.227 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.595e-05/0.1805, allocations: 172.5 kB / 318.3 MB, free: 6.059 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002062/0.1807, allocations: 98.69 kB / 318.4 MB, free: 5.957 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.578e-05/0.1808, allocations: 52.33 kB / 318.4 MB, free: 5.91 MB / 266.7 MB Notification: Performance of SimCode: time 1.031e-06/0.1808, allocations: 4 kB / 318.4 MB, free: 5.906 MB / 266.7 MB Notification: Performance of Templates: time 0.01362/0.1944, allocations: 10.13 MB / 328.6 MB, free: 12.04 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_Start/DCSE_Start.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.407435066998005]