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.0009459/0.0009459, allocations: 83.58 kB / 21.18 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.000944/0.000944, 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.9303/0.9303, allocations: 177.1 MB / 205 MB, free: 5.625 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.352e-06/1.352e-06, allocations: 0 / 273 MB, free: 1.547 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.271e-05/2.407e-05, allocations: 2.312 kB / 273 MB, free: 1.543 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_Start): time 0.008798/0.008822, allocations: 8.074 MB / 281.1 MB, free: 9.426 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004569/0.01339, allocations: 2.622 MB / 283.7 MB, free: 6.793 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006271/0.01402, allocations: 27.88 kB / 283.7 MB, free: 6.766 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001293/0.01531, allocations: 0.5246 MB / 284.2 MB, free: 6.238 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009402/0.01625, allocations: 0.5116 MB / 284.7 MB, free: 5.723 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004281/0.01668, allocations: 247.7 kB / 285 MB, free: 5.48 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001422/0.0181, allocations: 1.536 MB / 286.5 MB, free: 3.938 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005686/0.01867, allocations: 387.1 kB / 286.9 MB, free: 3.531 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001047/0.01972, allocations: 0.8729 MB / 287.8 MB, free: 2.656 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005682/0.02028, allocations: 470.6 kB / 288.2 MB, free: 2.195 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001476/0.02043, allocations: 136 kB / 288.4 MB, free: 2.062 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002779/0.02071, allocations: 176 kB / 288.5 MB, free: 1.891 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001665/0.02088, allocations: 282.9 kB / 288.8 MB, free: 1.613 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004018/0.02128, allocations: 462.9 kB / 289.3 MB, free: 1.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001036/0.02231, allocations: 0.9184 MB / 290.2 MB, free: 244 kB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.02232, allocations: 7.984 kB / 290.2 MB, free: 236 kB / 266.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.02232, allocations: 4 kB / 290.2 MB, free: 232 kB / 266.7 MB Notification: Performance of Transformations before backend: time 1.594e-05/0.02234, allocations: 0 / 290.2 MB, free: 232 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.1116/0.1339, allocations: 1.498 MB / 291.7 MB, free: 25.09 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.134, allocations: 8.844 kB / 291.7 MB, free: 25.09 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006169/0.1346, allocations: 273.4 kB / 292 MB, free: 25.02 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009575/0.1356, allocations: 0.6687 MB / 292.6 MB, free: 24.76 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.177e-05/0.1356, allocations: 69.31 kB / 292.7 MB, free: 24.75 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001148/0.1357, allocations: 106.9 kB / 292.8 MB, free: 24.75 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/0.1369, allocations: 0.8212 MB / 293.6 MB, free: 24.48 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.228e-05/0.1369, allocations: 14.5 kB / 293.6 MB, free: 24.48 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.291e-05/0.137, allocations: 40 kB / 293.7 MB, free: 24.48 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.432e-05/0.137, allocations: 23.47 kB / 293.7 MB, free: 24.48 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007354/0.1377, allocations: 355.7 kB / 294.1 MB, free: 24.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003663/0.1414, allocations: 3.62 MB / 297.7 MB, free: 22.33 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004546/0.1419, allocations: 280.6 kB / 298 MB, free: 22.22 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003665/0.1422, allocations: 194 kB / 298.1 MB, free: 22.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.989e-05/0.1423, allocations: 7.641 kB / 298.1 MB, free: 22.18 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.601e-05/0.1423, allocations: 47.22 kB / 298.2 MB, free: 22.13 MB / 266.7 MB Notification: Performance of pre-optimization done (n=40): time 2.895e-06/0.1423, allocations: 1 kB / 298.2 MB, free: 22.13 MB / 266.7 MB Notification: Performance of matching and sorting (n=44): time 0.001734/0.144, allocations: 1.006 MB / 299.2 MB, free: 21.57 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.094e-05/0.144, allocations: 82.55 kB / 299.3 MB, free: 21.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008491/0.1449, allocations: 0.7468 MB / 300 MB, free: 21.13 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.483e-05/0.1449, allocations: 36.02 kB / 300.1 MB, free: 21.1 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003176/0.1452, allocations: 0.6424 MB / 300.7 MB, free: 20.58 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.562e-05/0.1453, allocations: 159.1 kB / 300.9 MB, free: 20.46 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001424/0.1455, allocations: 139.7 kB / 301 MB, free: 20.37 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001254/0.1456, allocations: 0.5657 MB / 301.6 MB, free: 19.84 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001627/0.1458, allocations: 85.16 kB / 301.6 MB, free: 19.83 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003232/0.1461, allocations: 0.5226 MB / 302.2 MB, free: 19.24 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005855/0.1467, allocations: 0.6411 MB / 302.8 MB, free: 18.64 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.1467, allocations: 2.844 kB / 302.8 MB, free: 18.64 MB / 266.7 MB Notification: Performance of matching and sorting (n=90) (initialization): time 0.001055/0.1477, allocations: 0.6426 MB / 303.5 MB, free: 18.43 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.1478, allocations: 11.12 kB / 303.5 MB, free: 18.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.929e-05/0.1478, allocations: 9.156 kB / 303.5 MB, free: 18.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002621/0.148, allocations: 76.75 kB / 303.6 MB, free: 18.39 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00041/0.1484, allocations: 151.9 kB / 303.7 MB, free: 18.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001589/0.15, allocations: 3.858 MB / 307.6 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004248/0.1505, allocations: 32.95 kB / 307.6 MB, free: 14.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.158e-05/0.1505, allocations: 35.19 kB / 307.6 MB, free: 14.55 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.0002112/0.1507, allocations: 215.2 kB / 307.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001096/0.1508, allocations: 94.91 kB / 307.9 MB, free: 14.29 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005609/0.1514, allocations: 372.2 kB / 308.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.869e-06/0.1514, allocations: 4.031 kB / 308.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.1514, allocations: 1.375 kB / 308.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.1514, allocations: 8.328 kB / 308.3 MB, free: 14.11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001605/0.153, allocations: 1.164 MB / 309.5 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.153, allocations: 1.219 kB / 309.5 MB, free: 13.4 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000226/0.1532, allocations: 75.64 kB / 309.5 MB, free: 13.39 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001788/0.1534, allocations: 68.45 kB / 309.6 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.562e-05/0.1534, allocations: 9.188 kB / 309.6 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001263/0.1547, allocations: 3.845 MB / 313.5 MB, free: 9.539 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.1547, allocations: 4.531 kB / 313.5 MB, free: 9.539 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006599/0.1554, allocations: 0.6484 MB / 314.1 MB, free: 9.113 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001787/0.1555, allocations: 118.9 kB / 314.2 MB, free: 9.039 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.97e-05/0.1556, allocations: 9.625 kB / 314.2 MB, free: 9.035 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002552/0.1559, allocations: 33.09 kB / 314.3 MB, free: 9.02 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.403e-05/0.1559, allocations: 30.19 kB / 314.3 MB, free: 9.016 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.092e-05/0.156, allocations: 13.47 kB / 314.3 MB, free: 9.012 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004428/0.1564, allocations: 472.5 kB / 314.8 MB, free: 8.816 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1564, allocations: 0 / 314.8 MB, free: 8.816 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007769/0.1572, allocations: 205.4 kB / 315 MB, free: 8.797 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.0001948/0.1574, allocations: 129.9 kB / 315.1 MB, free: 8.691 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000742/0.1581, allocations: 0.6832 MB / 315.8 MB, free: 8.246 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.1581, allocations: 3.594 kB / 315.8 MB, free: 8.246 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003324/0.1585, allocations: 0.4964 MB / 316.3 MB, free: 7.844 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007881/0.1592, allocations: 209.9 kB / 316.5 MB, free: 7.777 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002318/0.1616, allocations: 1.613 MB / 318.1 MB, free: 6.285 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001126/0.1617, allocations: 167.6 kB / 318.3 MB, free: 6.133 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002609/0.1619, allocations: 102.7 kB / 318.4 MB, free: 6.027 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.655e-05/0.162, allocations: 52.5 kB / 318.4 MB, free: 5.977 MB / 266.7 MB Notification: Performance of SimCode: time 1.252e-06/0.162, allocations: 0 / 318.4 MB, free: 5.977 MB / 266.7 MB Notification: Performance of Templates: time 0.01728/0.1793, allocations: 10.75 MB / 329.2 MB, free: 11.5 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: 2.9623455717228353]