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.000986/0.000986, allocations: 80.8 kB / 21.49 MB, free: 2.996 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.001014/0.001014, allocations: 172.7 kB / 24.91 MB, free: 9.148 MB / 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.9244/0.9244, allocations: 177.1 MB / 205.3 MB, free: 5.477 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.383e-06/1.383e-06, allocations: 0 / 273.4 MB, free: 1.301 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.48e-05/1.618e-05, allocations: 6.312 kB / 273.4 MB, free: 1.293 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.007524/0.007541, allocations: 6.999 MB / 280.4 MB, free: 10.25 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00359/0.01113, allocations: 2.391 MB / 282.8 MB, free: 7.852 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003793/0.01151, allocations: 19.94 kB / 282.9 MB, free: 7.832 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001357/0.01287, allocations: 496.8 kB / 283.3 MB, free: 7.344 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007499/0.01362, allocations: 432.7 kB / 283.8 MB, free: 6.918 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000338/0.01395, allocations: 207.6 kB / 284 MB, free: 6.715 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001106/0.01506, allocations: 1.249 MB / 285.2 MB, free: 5.461 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004631/0.01552, allocations: 328.5 kB / 285.5 MB, free: 5.105 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000826/0.01635, allocations: 0.7169 MB / 286.3 MB, free: 4.387 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004645/0.01681, allocations: 390.9 kB / 286.6 MB, free: 4.004 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001239/0.01694, allocations: 108 kB / 286.7 MB, free: 3.898 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002149/0.01715, allocations: 151.9 kB / 286.9 MB, free: 3.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001175/0.01727, allocations: 235.1 kB / 287.1 MB, free: 3.52 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002439/0.01751, allocations: 379.1 kB / 287.5 MB, free: 3.148 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006853/0.0182, allocations: 0.7666 MB / 288.3 MB, free: 2.379 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.863e-06/0.0182, allocations: 4 kB / 288.3 MB, free: 2.375 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.0182, allocations: 0 / 288.3 MB, free: 2.375 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.643e-06/0.01821, allocations: 0 / 288.3 MB, free: 2.375 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.001147/0.01936, allocations: 1.161 MB / 289.4 MB, free: 1.188 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.991e-05/0.01939, allocations: 12.03 kB / 289.4 MB, free: 1.176 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002828/0.01967, allocations: 176.8 kB / 289.6 MB, free: 1.004 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004995/0.02017, allocations: 466.7 kB / 290.1 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.062e-05/0.0202, allocations: 66.31 kB / 290.1 MB, free: 464 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.559e-05/0.02026, allocations: 80.33 kB / 290.2 MB, free: 384 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09278/0.113, allocations: 0.6052 MB / 290.8 MB, free: 24.68 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.595e-05/0.1131, allocations: 7.969 kB / 290.8 MB, free: 24.68 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.696e-05/0.1131, allocations: 32.11 kB / 290.9 MB, free: 24.68 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.21e-05/0.1132, allocations: 18.25 kB / 290.9 MB, free: 24.68 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002908/0.1135, allocations: 199.5 kB / 291.1 MB, free: 24.67 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002491/0.1159, allocations: 2.591 MB / 293.7 MB, free: 23.25 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001956/0.1161, allocations: 129.6 kB / 293.8 MB, free: 23.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.483e-05/0.1162, allocations: 53.06 kB / 293.8 MB, free: 23.22 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.034e-05/0.1162, allocations: 4.625 kB / 293.8 MB, free: 23.22 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.623e-05/0.1162, allocations: 35.27 kB / 293.9 MB, free: 23.18 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 2.215e-06/0.1162, allocations: 0 / 293.9 MB, free: 23.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=28): time 0.0008005/0.117, allocations: 0.5354 MB / 294.4 MB, free: 22.98 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.946e-05/0.1171, allocations: 81.2 kB / 294.5 MB, free: 22.88 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004236/0.1175, allocations: 0.5969 MB / 295.1 MB, free: 22.73 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.273e-05/0.1175, allocations: 33.8 kB / 295.1 MB, free: 22.7 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001433/0.1176, allocations: 452.1 kB / 295.6 MB, free: 22.47 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.396e-05/0.1177, allocations: 111.2 kB / 295.7 MB, free: 22.42 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.527e-05/0.1178, allocations: 118.5 kB / 295.8 MB, free: 22.39 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.035e-05/0.1178, allocations: 380.8 kB / 296.2 MB, free: 22.08 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.496e-05/0.1179, allocations: 43.28 kB / 296.2 MB, free: 22.08 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.118, allocations: 373.8 kB / 296.6 MB, free: 21.68 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002443/0.1183, allocations: 458 kB / 297 MB, free: 21.33 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.1183, allocations: 2.406 kB / 297 MB, free: 21.33 MB / 266.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0003842/0.1186, allocations: 400 kB / 297.4 MB, free: 21.29 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.1187, allocations: 10.16 kB / 297.4 MB, free: 21.29 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.155e-05/0.1187, allocations: 10.88 kB / 297.4 MB, free: 21.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001117/0.1188, allocations: 30.38 kB / 297.5 MB, free: 21.28 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002375/0.119, allocations: 141.7 kB / 297.6 MB, free: 21.28 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003818/0.1194, allocations: 1.169 MB / 298.8 MB, free: 20.15 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002103/0.1196, allocations: 29.58 kB / 298.8 MB, free: 20.15 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.196e-05/0.1196, allocations: 25.59 kB / 298.8 MB, free: 20.15 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.0001136/0.1197, allocations: 162.3 kB / 299 MB, free: 20.03 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.865e-05/0.1198, allocations: 44.89 kB / 299 MB, free: 20.03 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001957/0.12, allocations: 186 kB / 299.2 MB, free: 19.97 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.12, allocations: 2.375 kB / 299.2 MB, free: 19.97 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.12, allocations: 1.812 kB / 299.2 MB, free: 19.97 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.12, allocations: 5.344 kB / 299.2 MB, free: 19.97 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005921/0.1206, allocations: 0.5923 MB / 299.8 MB, free: 19.7 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.1206, allocations: 5.5 kB / 299.8 MB, free: 19.7 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001351/0.1207, allocations: 57.64 kB / 299.9 MB, free: 19.7 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.023e-05/0.1208, allocations: 21.77 kB / 299.9 MB, free: 19.69 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.288e-05/0.1208, allocations: 8.578 kB / 299.9 MB, free: 19.69 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002902/0.1211, allocations: 1.16 MB / 301.1 MB, free: 18.55 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.1211, allocations: 2.781 kB / 301.1 MB, free: 18.55 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002481/0.1213, allocations: 359.5 kB / 301.4 MB, free: 18.34 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.625e-05/0.1214, allocations: 65.69 kB / 301.5 MB, free: 18.3 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.17e-05/0.1215, allocations: 8.734 kB / 301.5 MB, free: 18.3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001339/0.1216, allocations: 15.36 kB / 301.5 MB, free: 18.3 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.786e-05/0.1217, allocations: 31.14 kB / 301.5 MB, free: 18.3 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.1217, allocations: 5.75 kB / 301.5 MB, free: 18.3 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002425/0.1219, allocations: 278.9 kB / 301.8 MB, free: 18.27 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1219, allocations: 0 / 301.8 MB, free: 18.27 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003867/0.1223, allocations: 164.1 kB / 302 MB, free: 18.27 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.0001213/0.1224, allocations: 103.8 kB / 302.1 MB, free: 18.19 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003221/0.1227, allocations: 351.2 kB / 302.4 MB, free: 18.03 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.628e-05/0.1228, allocations: 11.31 kB / 302.4 MB, free: 18.03 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000109/0.1229, allocations: 187.3 kB / 302.6 MB, free: 17.9 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006268/0.1235, allocations: 180 kB / 302.8 MB, free: 17.88 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002059/0.1256, allocations: 1.278 MB / 304.1 MB, free: 17.15 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002111/0.1258, allocations: 147.1 kB / 304.2 MB, free: 17.07 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003466/0.1261, allocations: 84.45 kB / 304.3 MB, free: 17.05 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003535/0.1265, allocations: 193 kB / 304.5 MB, free: 17 MB / 266.7 MB Notification: Performance of SimCode: time 6.71e-07/0.1265, allocations: 0 / 304.5 MB, free: 17 MB / 266.7 MB Notification: Performance of Templates: time 0.0103/0.1368, allocations: 8.597 MB / 313.1 MB, free: 12.37 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.7018706589005888]