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.001358/0.001358, allocations: 78.66 kB / 21.42 MB, free: 3.074 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.001642/0.001642, allocations: 164.4 kB / 24.82 MB, free: 9.266 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.965/0.965, 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.964e-06/1.964e-06, allocations: 0 / 273.4 MB, free: 1.266 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.357e-05/2.553e-05, allocations: 2.312 kB / 273.4 MB, free: 1.262 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.008665/0.008691, allocations: 6.987 MB / 280.4 MB, free: 10.23 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003381/0.01207, allocations: 2.306 MB / 282.7 MB, free: 7.918 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005187/0.01259, allocations: 23.88 kB / 282.7 MB, free: 7.895 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00108/0.01367, allocations: 484.8 kB / 283.2 MB, free: 7.418 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006456/0.01432, allocations: 428.7 kB / 283.6 MB, free: 6.996 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003058/0.01462, allocations: 215.7 kB / 283.8 MB, free: 6.785 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001057/0.01568, allocations: 1.256 MB / 285.1 MB, free: 5.527 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004494/0.01613, allocations: 316.5 kB / 285.4 MB, free: 5.191 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009399/0.01707, allocations: 0.7132 MB / 286.1 MB, free: 4.477 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004896/0.01756, allocations: 386.8 kB / 286.5 MB, free: 4.098 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001159/0.01767, allocations: 112 kB / 286.6 MB, free: 3.988 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002215/0.0179, allocations: 144 kB / 286.7 MB, free: 3.848 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001146/0.01801, allocations: 231.1 kB / 287 MB, free: 3.621 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002818/0.01829, allocations: 383 kB / 287.3 MB, free: 3.246 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007661/0.01906, allocations: 0.7705 MB / 288.1 MB, free: 2.473 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.01906, allocations: 0 / 288.1 MB, free: 2.473 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.01906, allocations: 0 / 288.1 MB, free: 2.473 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.589e-05/0.01908, allocations: 7.938 kB / 288.1 MB, free: 2.465 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.001311/0.02039, allocations: 1.301 MB / 289.4 MB, free: 1.125 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.02043, allocations: 12.03 kB / 289.4 MB, free: 1.113 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003236/0.02075, allocations: 216.2 kB / 289.6 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005904/0.02134, allocations: 0.5597 MB / 290.2 MB, free: 320 kB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.408e-05/0.02138, allocations: 66.38 kB / 290.3 MB, free: 256 kB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.588e-05/0.02145, allocations: 84.31 kB / 290.3 MB, free: 172 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1141/0.1356, allocations: 0.6103 MB / 290.9 MB, free: 23.96 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.763e-05/0.1356, allocations: 4.938 kB / 291 MB, free: 23.96 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.224e-05/0.1357, allocations: 33.58 kB / 291 MB, free: 23.96 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.528e-05/0.1357, allocations: 19.25 kB / 291 MB, free: 23.96 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003234/0.136, allocations: 227.5 kB / 291.2 MB, free: 23.95 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002617/0.1386, allocations: 3.266 MB / 294.5 MB, free: 22.15 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002362/0.1388, allocations: 142 kB / 294.6 MB, free: 22.12 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.164e-05/0.1389, allocations: 54.88 kB / 294.7 MB, free: 22.11 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.436e-05/0.1389, allocations: 6.438 kB / 294.7 MB, free: 22.11 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.083e-05/0.139, allocations: 39.77 kB / 294.7 MB, free: 22.06 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.563e-06/0.139, allocations: 0 / 294.7 MB, free: 22.06 MB / 266.7 MB Notification: Performance of matching and sorting (n=28): time 0.0008994/0.1399, allocations: 0.5781 MB / 295.3 MB, free: 21.81 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.255e-05/0.1399, allocations: 80.91 kB / 295.4 MB, free: 21.71 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006739/0.1406, allocations: 0.6661 MB / 296.1 MB, free: 21.51 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.646e-05/0.1406, allocations: 30.88 kB / 296.1 MB, free: 21.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002601/0.1408, allocations: 0.5751 MB / 296.7 MB, free: 21.2 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.168e-05/0.1409, allocations: 111.5 kB / 296.8 MB, free: 21.15 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001045/0.141, allocations: 121 kB / 296.9 MB, free: 21.12 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.1411, allocations: 0.5609 MB / 297.4 MB, free: 20.62 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.984e-05/0.1412, allocations: 47.8 kB / 297.5 MB, free: 20.62 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001801/0.1413, allocations: 0.4901 MB / 298 MB, free: 20.05 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003105/0.1417, allocations: 0.5632 MB / 298.5 MB, free: 19.53 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.69e-06/0.1417, allocations: 6.25 kB / 298.6 MB, free: 19.53 MB / 266.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.0005861/0.1422, allocations: 492.4 kB / 299 MB, free: 19.44 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.1423, allocations: 12.86 kB / 299 MB, free: 19.44 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.1423, allocations: 10.12 kB / 299.1 MB, free: 19.44 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001245/0.1424, allocations: 33.27 kB / 299.1 MB, free: 19.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002535/0.1427, allocations: 139.2 kB / 299.2 MB, free: 19.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005266/0.1432, allocations: 1.721 MB / 300.9 MB, free: 17.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002423/0.1434, allocations: 39.62 kB / 301 MB, free: 17.72 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.477e-05/0.1435, allocations: 26.22 kB / 301 MB, free: 17.72 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.0001295/0.1436, allocations: 199.8 kB / 301.2 MB, free: 17.56 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.668e-05/0.1437, allocations: 77.81 kB / 301.3 MB, free: 17.52 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002521/0.1439, allocations: 213.1 kB / 301.5 MB, free: 17.46 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.1439, allocations: 3.531 kB / 301.5 MB, free: 17.46 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.1439, allocations: 5 kB / 301.5 MB, free: 17.45 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.1439, allocations: 1.219 kB / 301.5 MB, free: 17.45 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008388/0.1448, allocations: 0.7878 MB / 302.3 MB, free: 17.07 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.669e-06/0.1448, allocations: 5.656 kB / 302.3 MB, free: 17.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001572/0.1449, allocations: 58.48 kB / 302.3 MB, free: 17.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.761e-05/0.145, allocations: 20.36 kB / 302.4 MB, free: 17.06 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.414e-05/0.145, allocations: 11.14 kB / 302.4 MB, free: 17.06 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004229/0.1454, allocations: 1.708 MB / 304.1 MB, free: 15.35 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.1454, allocations: 6.906 kB / 304.1 MB, free: 15.35 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003389/0.1458, allocations: 487.7 kB / 304.6 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001242/0.1459, allocations: 90.08 kB / 304.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.196e-05/0.1459, allocations: 17.33 kB / 304.7 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001346/0.1461, allocations: 18.47 kB / 304.7 MB, free: 14.97 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.018e-05/0.1461, allocations: 23.03 kB / 304.7 MB, free: 14.97 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.062e-05/0.1461, allocations: 6.312 kB / 304.7 MB, free: 14.97 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003449/0.1465, allocations: 400.8 kB / 305.1 MB, free: 14.84 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1465, allocations: 0 / 305.1 MB, free: 14.84 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004808/0.1469, allocations: 160.3 kB / 305.3 MB, free: 14.84 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.000153/0.1471, allocations: 121.6 kB / 305.4 MB, free: 14.74 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004091/0.1475, allocations: 422 kB / 305.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.597e-06/0.1475, allocations: 1.344 kB / 305.8 MB, free: 14.52 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001447/0.1477, allocations: 250.6 kB / 306 MB, free: 14.32 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005636/0.1482, allocations: 169.2 kB / 306.2 MB, free: 14.31 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001871/0.1501, allocations: 1.343 MB / 307.6 MB, free: 13.52 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001183/0.1502, allocations: 144 kB / 307.7 MB, free: 13.44 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002625/0.1505, allocations: 85.05 kB / 307.8 MB, free: 13.42 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003047/0.1508, allocations: 229.6 kB / 308 MB, free: 13.36 MB / 266.7 MB Notification: Performance of SimCode: time 1.783e-06/0.1508, allocations: 0 / 308 MB, free: 13.36 MB / 266.7 MB Notification: Performance of Templates: time 0.01202/0.1628, allocations: 8.693 MB / 316.7 MB, free: 8.414 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.9132805690169334]