Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008618/0.0008618, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008672/0.0008672, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9317/0.9317, allocations: 173.3 MB / 201.1 MB, free: 9.348 MB / 186.7 MB " [Timeout remaining time 179] 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.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 268 MB, free: 6.445 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.622e-05/2.777e-05, allocations: 6.25 kB / 268 MB, free: 6.438 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.006373/0.006401, allocations: 7.143 MB / 275.1 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003143/0.009543, allocations: 2.294 MB / 277.4 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004885/0.01003, allocations: 19.94 kB / 277.5 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009634/0.011, allocations: 484.9 kB / 277.9 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006521/0.01165, allocations: 440.5 kB / 278.4 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003144/0.01196, allocations: 199.8 kB / 278.6 MB, free: 11.83 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001032/0.01299, allocations: 1.253 MB / 279.8 MB, free: 10.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003807/0.01337, allocations: 316.5 kB / 280.1 MB, free: 10.24 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006609/0.01404, allocations: 0.7092 MB / 280.8 MB, free: 9.527 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003714/0.01441, allocations: 390.8 kB / 281.2 MB, free: 9.145 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.616e-05/0.0145, allocations: 112 kB / 281.3 MB, free: 9.035 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002232/0.01473, allocations: 144 kB / 281.5 MB, free: 8.895 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001197/0.01485, allocations: 231.1 kB / 281.7 MB, free: 8.668 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002573/0.0151, allocations: 383.1 kB / 282.1 MB, free: 8.293 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007709/0.01587, allocations: 0.7666 MB / 282.8 MB, free: 7.523 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.01588, allocations: 0 / 282.8 MB, free: 7.523 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.01588, allocations: 0 / 282.8 MB, free: 7.523 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.277e-05/0.01589, allocations: 0 / 282.8 MB, free: 7.523 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.001526/0.01742, allocations: 1.294 MB / 284.1 MB, free: 6.191 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.921e-05/0.01746, allocations: 12.03 kB / 284.1 MB, free: 6.18 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003376/0.0178, allocations: 216.2 kB / 284.3 MB, free: 5.969 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006133/0.01841, allocations: 0.5831 MB / 284.9 MB, free: 5.352 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.018e-05/0.01844, allocations: 58.38 kB / 285 MB, free: 5.297 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.585e-05/0.01851, allocations: 80.38 kB / 285.1 MB, free: 5.219 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007178/0.01923, allocations: 0.6686 MB / 285.7 MB, free: 4.496 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.092e-05/0.01925, allocations: 4.141 kB / 285.7 MB, free: 4.492 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.943e-05/0.01929, allocations: 35.94 kB / 285.8 MB, free: 4.457 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/0.01931, allocations: 20 kB / 285.8 MB, free: 4.438 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004252/0.01973, allocations: 287.7 kB / 286.1 MB, free: 4.16 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002608/0.02234, allocations: 3.244 MB / 289.3 MB, free: 0.7188 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002485/0.02259, allocations: 155 kB / 289.5 MB, free: 0.5547 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.83e-05/0.02268, allocations: 67.64 kB / 289.5 MB, free: 496 kB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.096e-05/0.0227, allocations: 8 kB / 289.5 MB, free: 488 kB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.279e-05/0.02272, allocations: 37.39 kB / 289.6 MB, free: 440 kB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.233e-06/0.02272, allocations: 0 / 289.6 MB, free: 440 kB / 266.7 MB Notification: Performance of matching and sorting (n=28): time 0.1084/0.1311, allocations: 0.701 MB / 290.3 MB, free: 28.8 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.071e-05/0.1311, allocations: 85.56 kB / 290.4 MB, free: 28.71 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006006/0.1317, allocations: 0.6839 MB / 291 MB, free: 28.51 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.1318, allocations: 31.2 kB / 291.1 MB, free: 28.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002095/0.132, allocations: 0.5699 MB / 291.6 MB, free: 28.2 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.891e-05/0.132, allocations: 107.3 kB / 291.7 MB, free: 28.14 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.681e-05/0.1321, allocations: 120.5 kB / 291.9 MB, free: 28.11 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.1322, allocations: 0.554 MB / 292.4 MB, free: 27.61 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.79e-05/0.1323, allocations: 64.27 kB / 292.5 MB, free: 27.61 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001926/0.1325, allocations: 0.4917 MB / 293 MB, free: 27.04 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003599/0.1329, allocations: 0.5839 MB / 293.6 MB, free: 26.52 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.1329, allocations: 3.594 kB / 293.6 MB, free: 26.52 MB / 266.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0006144/0.1335, allocations: 0.5136 MB / 294.1 MB, free: 26.44 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.1335, allocations: 16.39 kB / 294.1 MB, free: 26.44 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.947e-05/0.1335, allocations: 10.06 kB / 294.1 MB, free: 26.44 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001401/0.1337, allocations: 31.22 kB / 294.1 MB, free: 26.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002749/0.1339, allocations: 138 kB / 294.3 MB, free: 26.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005544/0.1345, allocations: 1.744 MB / 296 MB, free: 24.7 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002237/0.1347, allocations: 26 kB / 296 MB, free: 24.7 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.775e-05/0.1347, allocations: 35.02 kB / 296.1 MB, free: 24.7 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.0001292/0.1349, allocations: 197.5 kB / 296.3 MB, free: 24.54 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.531e-05/0.1349, allocations: 80.69 kB / 296.3 MB, free: 24.5 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002707/0.1352, allocations: 240.9 kB / 296.6 MB, free: 24.44 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.1352, allocations: 6.141 kB / 296.6 MB, free: 24.44 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.245e-06/0.1352, allocations: 1.188 kB / 296.6 MB, free: 24.44 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.1352, allocations: 1.406 kB / 296.6 MB, free: 24.44 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008364/0.1361, allocations: 0.9133 MB / 297.5 MB, free: 24.04 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.1361, allocations: 1.281 kB / 297.5 MB, free: 24.04 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001416/0.1362, allocations: 57.95 kB / 297.6 MB, free: 24.04 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.845e-05/0.1363, allocations: 21.53 kB / 297.6 MB, free: 24.02 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.522e-05/0.1363, allocations: 7.5 kB / 297.6 MB, free: 24.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003923/0.1367, allocations: 1.74 MB / 299.3 MB, free: 22.3 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.1367, allocations: 1.938 kB / 299.3 MB, free: 22.3 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003599/0.137, allocations: 499.1 kB / 299.8 MB, free: 21.97 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000111/0.1371, allocations: 90.05 kB / 299.9 MB, free: 21.94 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4e-05/0.1372, allocations: 8.75 kB / 299.9 MB, free: 21.94 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000134/0.1373, allocations: 19.16 kB / 299.9 MB, free: 21.93 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.718e-05/0.1374, allocations: 26.31 kB / 300 MB, free: 21.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.14e-05/0.1374, allocations: 15.3 kB / 300 MB, free: 21.93 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003466/0.1377, allocations: 432.1 kB / 300.4 MB, free: 21.79 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1377, allocations: 0 / 300.4 MB, free: 21.79 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003983/0.1381, allocations: 158.8 kB / 300.5 MB, free: 21.79 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.0001431/0.1383, allocations: 124 kB / 300.7 MB, free: 21.7 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004426/0.1387, allocations: 425.3 kB / 301.1 MB, free: 21.51 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1387, allocations: 1.406 kB / 301.1 MB, free: 21.51 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000141/0.1389, allocations: 260.7 kB / 301.3 MB, free: 21.32 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004977/0.1394, allocations: 172.2 kB / 301.5 MB, free: 21.3 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001633/0.141, allocations: 1.342 MB / 302.9 MB, free: 20.52 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001003/0.1411, allocations: 143.3 kB / 303 MB, free: 20.45 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001976/0.1413, allocations: 82.06 kB / 303.1 MB, free: 20.43 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.006e-05/0.1414, allocations: 45.94 kB / 303.1 MB, free: 20.42 MB / 266.7 MB Notification: Performance of SimCode: time 6.21e-07/0.1414, allocations: 0 / 303.1 MB, free: 20.42 MB / 266.7 MB Notification: Performance of Templates: time 0.01057/0.1519, allocations: 8.528 MB / 311.6 MB, free: 17.31 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.8143332889303565]