Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.000993/0.000993, allocations: 77.36 kB / 10 MB, free: 0.6797 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001466/0.002459, allocations: 445.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0009378/0.0009378, allocations: 148.9 kB / 11.34 MB, free: 2.832 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001381/0.002318, allocations: 475.6 kB / 11.8 MB, free: 2.363 MB / 13.93 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.8829/0.8829, allocations: 173.4 MB / 185.9 MB, free: 8.926 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07389/0.9568, allocations: 52.5 MB / 238.4 MB, free: 4.363 MB / 234.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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.283e-06/1.283e-06, allocations: 0 / 239.7 MB, free: 3.078 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.218e-05/1.347e-05, allocations: 9.625 kB / 239.7 MB, free: 3.07 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.009735/0.009748, allocations: 11.85 MB / 251.6 MB, free: 7.168 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005631/0.01538, allocations: 3.373 MB / 255 MB, free: 3.785 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008673/0.01625, allocations: 39.88 kB / 255 MB, free: 3.746 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001305/0.01755, allocations: 0.6671 MB / 255.7 MB, free: 3.074 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001405/0.01896, allocations: 0.8217 MB / 256.5 MB, free: 2.246 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006906/0.01965, allocations: 407.5 kB / 256.9 MB, free: 1.848 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00209/0.02174, allocations: 2.517 MB / 259.4 MB, free: 15.31 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007999/0.02254, allocations: 0.6344 MB / 260 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001883/0.02442, allocations: 1.621 MB / 261.7 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008415/0.02526, allocations: 0.7672 MB / 262.4 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002333/0.02549, allocations: 232 kB / 262.7 MB, free: 11.98 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004042/0.0259, allocations: 264 kB / 262.9 MB, free: 11.72 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002409/0.02614, allocations: 350.8 kB / 263.3 MB, free: 11.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000663/0.0268, allocations: 0.6238 MB / 263.9 MB, free: 10.75 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001302/0.0281, allocations: 1.401 MB / 265.3 MB, free: 9.344 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.858e-06/0.02811, allocations: 4 kB / 265.3 MB, free: 9.34 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.02812, allocations: 4 kB / 265.3 MB, free: 9.336 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.022e-05/0.02814, allocations: 0 / 265.3 MB, free: 9.336 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002416/0.03055, allocations: 2.471 MB / 267.8 MB, free: 6.828 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.317e-05/0.03057, allocations: 8.031 kB / 267.8 MB, free: 6.82 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006781/0.03125, allocations: 421.7 kB / 268.2 MB, free: 6.391 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/0.0323, allocations: 0.793 MB / 269 MB, free: 5.551 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.213e-05/0.03238, allocations: 115.5 kB / 269.1 MB, free: 5.438 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001607/0.03254, allocations: 164.3 kB / 269.2 MB, free: 5.277 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.03372, allocations: 1.167 MB / 270.4 MB, free: 4.023 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.102e-05/0.03376, allocations: 11.92 kB / 270.4 MB, free: 4.012 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.041e-05/0.03384, allocations: 68 kB / 270.5 MB, free: 3.945 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.898e-05/0.03387, allocations: 40 kB / 270.5 MB, free: 3.906 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006581/0.03453, allocations: 398.9 kB / 270.9 MB, free: 3.508 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09832/0.1328, allocations: 4.726 MB / 275.6 MB, free: 24.28 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006331/0.1335, allocations: 357.4 kB / 276 MB, free: 24.25 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003611/0.1338, allocations: 260.8 kB / 276.2 MB, free: 24.23 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.606e-05/0.1339, allocations: 15.86 kB / 276.3 MB, free: 24.23 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/0.1339, allocations: 43.78 kB / 276.3 MB, free: 24.19 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 2.435e-06/0.1339, allocations: 3.75 kB / 276.3 MB, free: 24.19 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.001939/0.1358, allocations: 1.236 MB / 277.5 MB, free: 23.98 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.948e-05/0.1359, allocations: 61.2 kB / 277.6 MB, free: 23.92 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009141/0.1368, allocations: 1.006 MB / 278.6 MB, free: 23.77 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.473e-05/0.1368, allocations: 39.48 kB / 278.7 MB, free: 23.74 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002686/0.1371, allocations: 0.7422 MB / 279.4 MB, free: 23.31 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000109/0.1372, allocations: 273.7 kB / 279.7 MB, free: 23.14 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00016/0.1373, allocations: 205.6 kB / 279.9 MB, free: 23.11 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.917e-05/0.1374, allocations: 362.1 kB / 280.2 MB, free: 22.8 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001263/0.1375, allocations: 98.23 kB / 280.3 MB, free: 22.8 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002544/0.1378, allocations: 0.6122 MB / 280.9 MB, free: 22.18 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005455/0.1383, allocations: 0.8264 MB / 281.7 MB, free: 21.63 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.907e-06/0.1383, allocations: 4.312 kB / 281.8 MB, free: 21.63 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.0008789/0.1392, allocations: 0.7547 MB / 282.5 MB, free: 21.55 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.1392, allocations: 11.77 kB / 282.5 MB, free: 21.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.844e-05/0.1392, allocations: 18.97 kB / 282.5 MB, free: 21.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000382/0.1396, allocations: 163 kB / 282.7 MB, free: 21.52 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005167/0.1401, allocations: 287.8 kB / 283 MB, free: 21.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001273/0.1414, allocations: 3.788 MB / 286.8 MB, free: 17.98 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004433/0.1419, allocations: 53.75 kB / 286.8 MB, free: 17.97 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.491e-05/0.1419, allocations: 47.78 kB / 286.9 MB, free: 17.97 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001941/0.1421, allocations: 184.6 kB / 287 MB, free: 17.85 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001106/0.1422, allocations: 100.2 kB / 287.1 MB, free: 17.85 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005261/0.1427, allocations: 475.5 kB / 287.6 MB, free: 17.75 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.1427, allocations: 6.875 kB / 287.6 MB, free: 17.75 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.795e-06/0.1427, allocations: 1.156 kB / 287.6 MB, free: 17.75 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.1427, allocations: 3.562 kB / 287.6 MB, free: 17.75 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001325/0.1441, allocations: 1.218 MB / 288.8 MB, free: 17.38 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.1441, allocations: 2.688 kB / 288.8 MB, free: 17.38 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002965/0.1444, allocations: 152.1 kB / 289 MB, free: 17.36 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001931/0.1446, allocations: 125.4 kB / 289.1 MB, free: 17.29 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003126/0.1449, allocations: 177.9 kB / 289.3 MB, free: 17.26 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.301e-05/0.1449, allocations: 17.91 kB / 289.3 MB, free: 17.26 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001106/0.146, allocations: 3.839 MB / 293.1 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.146, allocations: 3.594 kB / 293.1 MB, free: 13.7 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006156/0.1466, allocations: 0.7407 MB / 293.9 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.737e-05/0.1467, allocations: 16.95 kB / 293.9 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002393/0.1469, allocations: 31.98 kB / 293.9 MB, free: 13.38 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.264e-05/0.147, allocations: 68.84 kB / 294 MB, free: 13.37 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.086e-05/0.147, allocations: 18.08 kB / 294 MB, free: 13.37 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003964/0.1474, allocations: 475.5 kB / 294.5 MB, free: 13.32 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1474, allocations: 2.516 kB / 294.5 MB, free: 13.32 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007015/0.1481, allocations: 328.6 kB / 294.8 MB, free: 13.32 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000149/0.1483, allocations: 115 kB / 294.9 MB, free: 13.24 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005665/0.1489, allocations: 0.8392 MB / 295.8 MB, free: 12.85 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-05/0.1489, allocations: 23.33 kB / 295.8 MB, free: 12.85 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003391/0.1492, allocations: 0.6019 MB / 296.4 MB, free: 12.48 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001086/0.1503, allocations: 3.513 MB / 299.9 MB, free: 8.863 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01365/0.164, allocations: 2.733 MB / 302.6 MB, free: 7.504 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001715/0.1641, allocations: 259 kB / 302.9 MB, free: 7.418 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004541/0.1646, allocations: 157.8 kB / 303 MB, free: 7.375 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004349/0.165, allocations: 354.2 kB / 303.4 MB, free: 7.145 MB / 266.7 MB Notification: Performance of SimCode: time 1.673e-06/0.165, allocations: 3.5 kB / 303.4 MB, free: 7.145 MB / 266.7 MB Notification: Performance of Templates: time 0.02189/0.1869, allocations: 19.2 MB / 322.6 MB, free: 4.797 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7687251763418317]