Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_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.0009269/0.0009269, allocations: 83.58 kB / 21.19 MB, free: 3.383 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.0009316/0.0009316, allocations: 161 kB / 24.56 MB, free: 16 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 0.9447/0.9447, allocations: 177.1 MB / 205 MB, free: 5.629 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.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.312e-06/1.312e-06, allocations: 0 / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.794e-05/2.925e-05, allocations: 2.312 kB / 273 MB, free: 1.539 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.006622/0.006652, allocations: 7.162 MB / 280.1 MB, free: 10.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003286/0.009938, allocations: 2.333 MB / 282.5 MB, free: 7.996 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004169/0.01035, allocations: 19.94 kB / 282.5 MB, free: 7.977 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009873/0.01134, allocations: 480.8 kB / 283 MB, free: 7.504 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005874/0.01193, allocations: 432.7 kB / 283.4 MB, free: 7.078 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002956/0.01223, allocations: 199.8 kB / 283.6 MB, free: 6.883 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009578/0.01318, allocations: 1.249 MB / 284.8 MB, free: 5.629 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004144/0.0136, allocations: 324.4 kB / 285.1 MB, free: 5.285 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000752/0.01435, allocations: 0.717 MB / 285.9 MB, free: 4.566 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003625/0.01471, allocations: 378.9 kB / 286.2 MB, free: 4.195 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.666e-05/0.01481, allocations: 116 kB / 286.3 MB, free: 4.082 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002478/0.01506, allocations: 152 kB / 286.5 MB, free: 3.934 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001232/0.01518, allocations: 227.1 kB / 286.7 MB, free: 3.711 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002689/0.01545, allocations: 379.1 kB / 287.1 MB, free: 3.34 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000702/0.01615, allocations: 0.7705 MB / 287.9 MB, free: 2.566 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.554e-06/0.01615, allocations: 3.938 kB / 287.9 MB, free: 2.562 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.282e-06/0.01615, allocations: 0 / 287.9 MB, free: 2.562 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.01616, allocations: 0 / 287.9 MB, free: 2.562 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.00124/0.0174, allocations: 1.294 MB / 289.2 MB, free: 1.23 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.01744, allocations: 12.03 kB / 289.2 MB, free: 1.219 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003261/0.01777, allocations: 220.2 kB / 289.4 MB, free: 1.004 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006019/0.01837, allocations: 0.5754 MB / 290 MB, free: 408 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.142e-05/0.0184, allocations: 58.38 kB / 290 MB, free: 352 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.309e-05/0.01847, allocations: 80.33 kB / 290.1 MB, free: 272 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1231/0.1416, allocations: 0.6613 MB / 290.8 MB, free: 24.57 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.64e-05/0.1416, allocations: 10.38 kB / 290.8 MB, free: 24.57 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.441e-05/0.1417, allocations: 31.75 kB / 290.8 MB, free: 24.57 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.596e-05/0.1417, allocations: 17.72 kB / 290.8 MB, free: 24.57 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004348/0.1421, allocations: 288.1 kB / 291.1 MB, free: 24.56 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002385/0.1445, allocations: 3.248 MB / 294.3 MB, free: 22.77 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000254/0.1448, allocations: 150 kB / 294.5 MB, free: 22.73 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.815e-05/0.1449, allocations: 68.45 kB / 294.6 MB, free: 22.72 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.052e-05/0.1449, allocations: 6.156 kB / 294.6 MB, free: 22.72 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.713e-05/0.1449, allocations: 40.45 kB / 294.6 MB, free: 22.68 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.453e-06/0.1449, allocations: 0 / 294.6 MB, free: 22.68 MB / 266.7 MB Notification: Performance of matching and sorting (n=28): time 0.0009137/0.1458, allocations: 0.7147 MB / 295.3 MB, free: 22.34 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.595e-05/0.1458, allocations: 85.14 kB / 295.4 MB, free: 22.25 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005223/0.1464, allocations: 0.6813 MB / 296.1 MB, free: 22.05 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.297e-05/0.1464, allocations: 36.91 kB / 296.1 MB, free: 22.02 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002028/0.1466, allocations: 0.5668 MB / 296.7 MB, free: 21.74 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.516e-05/0.1466, allocations: 112.6 kB / 296.8 MB, free: 21.68 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.993e-05/0.1467, allocations: 118.4 kB / 296.9 MB, free: 21.65 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.524e-05/0.1468, allocations: 0.5545 MB / 297.5 MB, free: 21.16 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.645e-05/0.1469, allocations: 62.23 kB / 297.5 MB, free: 21.15 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001901/0.1471, allocations: 0.4961 MB / 298 MB, free: 20.55 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003042/0.1474, allocations: 0.5838 MB / 298.6 MB, free: 19.98 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.1474, allocations: 2.188 kB / 298.6 MB, free: 19.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.000497/0.1479, allocations: 0.5142 MB / 299.1 MB, free: 19.82 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.1479, allocations: 9.75 kB / 299.1 MB, free: 19.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.1479, allocations: 10.78 kB / 299.1 MB, free: 19.82 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001142/0.1481, allocations: 39.3 kB / 299.2 MB, free: 19.8 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002339/0.1483, allocations: 133.6 kB / 299.3 MB, free: 19.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004825/0.1488, allocations: 1.75 MB / 301.1 MB, free: 18.04 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001883/0.149, allocations: 28.12 kB / 301.1 MB, free: 18.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.534e-05/0.149, allocations: 30 kB / 301.1 MB, free: 18.03 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001125/0.1491, allocations: 200.5 kB / 301.3 MB, free: 17.86 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.05e-05/0.1492, allocations: 75.95 kB / 301.4 MB, free: 17.82 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002545/0.1494, allocations: 236.1 kB / 301.6 MB, free: 17.7 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.1494, allocations: 7.281 kB / 301.6 MB, free: 17.7 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.1494, allocations: 2.375 kB / 301.6 MB, free: 17.7 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/0.1494, allocations: 2.391 kB / 301.6 MB, free: 17.7 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007744/0.1502, allocations: 0.9174 MB / 302.5 MB, free: 17.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.1502, allocations: 1.156 kB / 302.5 MB, free: 17.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001364/0.1503, allocations: 50.38 kB / 302.6 MB, free: 17.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-05/0.1504, allocations: 25.2 kB / 302.6 MB, free: 17.07 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.436e-05/0.1504, allocations: 10.19 kB / 302.6 MB, free: 17.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003785/0.1508, allocations: 1.732 MB / 304.4 MB, free: 15.31 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.1508, allocations: 3.547 kB / 304.4 MB, free: 15.31 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000316/0.1511, allocations: 0.4889 MB / 304.9 MB, free: 14.94 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001116/0.1512, allocations: 92.8 kB / 304.9 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.756e-05/0.1512, allocations: 8.312 kB / 305 MB, free: 14.88 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001314/0.1514, allocations: 18.83 kB / 305 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.156e-05/0.1514, allocations: 23.55 kB / 305 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.142e-05/0.1514, allocations: 15.3 kB / 305 MB, free: 14.86 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003397/0.1518, allocations: 437.9 kB / 305.4 MB, free: 14.67 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1518, allocations: 0 / 305.4 MB, free: 14.67 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000388/0.1522, allocations: 164.4 kB / 305.6 MB, free: 14.65 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(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.0001482/0.1523, allocations: 114.1 kB / 305.7 MB, free: 14.55 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004228/0.1527, allocations: 437.1 kB / 306.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1527, allocations: 2.219 kB / 306.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001419/0.1529, allocations: 260.5 kB / 306.4 MB, free: 14.09 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004865/0.1534, allocations: 176.1 kB / 306.6 MB, free: 14.04 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001459/0.1548, allocations: 1.333 MB / 307.9 MB, free: 13.2 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.534e-05/0.1549, allocations: 148.7 kB / 308 MB, free: 13.12 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001656/0.1551, allocations: 79.94 kB / 308.1 MB, free: 13.1 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.822e-05/0.1552, allocations: 49.19 kB / 308.2 MB, free: 13.09 MB / 266.7 MB Notification: Performance of SimCode: time 5.72e-07/0.1552, allocations: 0 / 308.2 MB, free: 13.09 MB / 266.7 MB Notification: Performance of Templates: time 0.009393/0.1646, allocations: 8.541 MB / 316.7 MB, free: 8 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_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: 2.932383682113141]