Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00132/0.00132, allocations: 84.73 kB / 21.5 MB, free: 2.988 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009252/0.0009252, allocations: 161 kB / 24.91 MB, free: 9.195 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9548/0.9548, allocations: 177 MB / 205.2 MB, free: 5.461 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 273.4 MB, free: 1.172 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.245e-05/1.37e-05, allocations: 2.312 kB / 273.4 MB, free: 1.168 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.008398/0.008412, allocations: 11.79 MB / 285.2 MB, free: 5.316 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004269/0.01268, allocations: 3.385 MB / 288.6 MB, free: 1.922 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004254/0.01311, allocations: 43.81 kB / 288.7 MB, free: 1.879 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000861/0.01397, allocations: 0.6633 MB / 289.3 MB, free: 1.211 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008948/0.01486, allocations: 0.8256 MB / 290.1 MB, free: 388 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.1016/0.1165, allocations: 403.6 kB / 290.5 MB, free: 16.55 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0029/0.1194, allocations: 2.507 MB / 293 MB, free: 15.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008067/0.1202, allocations: 0.6259 MB / 293.7 MB, free: 15.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001795/0.122, allocations: 1.422 MB / 295.1 MB, free: 15.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001318/0.1233, allocations: 0.7719 MB / 295.9 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003108/0.1236, allocations: 226 kB / 296.1 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004468/0.124, allocations: 262.5 kB / 296.3 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002258/0.1243, allocations: 469.1 kB / 296.8 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007132/0.125, allocations: 0.735 MB / 297.5 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001469/0.1264, allocations: 1.482 MB / 299 MB, free: 15.1 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1264, allocations: 1.062 kB / 299 MB, free: 15.1 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.42e-07/0.1264, allocations: 0 / 299 MB, free: 15.1 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.875e-05/0.1265, allocations: 0.5625 kB / 299 MB, free: 15.1 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.002365/0.1289, allocations: 2.077 MB / 301.1 MB, free: 13.91 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.454e-05/0.1289, allocations: 9.406 kB / 301.1 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000655/0.1295, allocations: 345.4 kB / 301.4 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/0.1306, allocations: 0.7991 MB / 302.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.191e-05/0.1306, allocations: 113.3 kB / 302.4 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001392/0.1308, allocations: 165.2 kB / 302.5 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001023/0.1318, allocations: 1.175 MB / 303.7 MB, free: 12.85 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.919e-05/0.1318, allocations: 7.828 kB / 303.7 MB, free: 12.85 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.287e-05/0.1319, allocations: 65 kB / 303.8 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.535e-05/0.1319, allocations: 39.12 kB / 303.8 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000585/0.1325, allocations: 400.6 kB / 304.2 MB, free: 12.76 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003452/0.136, allocations: 4.699 MB / 308.9 MB, free: 9.797 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004797/0.1364, allocations: 358.8 kB / 309.2 MB, free: 9.711 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002653/0.1367, allocations: 259.6 kB / 309.5 MB, free: 9.672 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.006e-05/0.1367, allocations: 13.91 kB / 309.5 MB, free: 9.668 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.732e-05/0.1368, allocations: 39.44 kB / 309.5 MB, free: 9.625 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 1.734e-06/0.1368, allocations: 0 / 309.5 MB, free: 9.625 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.001455/0.1382, allocations: 1.231 MB / 310.8 MB, free: 9.191 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.464e-05/0.1382, allocations: 120.7 kB / 310.9 MB, free: 9.062 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005756/0.1388, allocations: 1.007 MB / 311.9 MB, free: 8.711 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.17e-05/0.1388, allocations: 37.7 kB / 311.9 MB, free: 8.668 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001725/0.139, allocations: 0.7338 MB / 312.7 MB, free: 7.992 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.098e-05/0.1391, allocations: 268.8 kB / 312.9 MB, free: 7.746 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001265/0.1392, allocations: 215.4 kB / 313.1 MB, free: 7.551 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.892e-05/0.1393, allocations: 353.8 kB / 313.5 MB, free: 7.223 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.645e-05/0.1394, allocations: 98.56 kB / 313.6 MB, free: 7.129 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002017/0.1396, allocations: 0.6065 MB / 314.2 MB, free: 6.324 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004092/0.14, allocations: 0.7959 MB / 315 MB, free: 5.422 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.28e-06/0.14, allocations: 4 kB / 315 MB, free: 5.418 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.0006299/0.1406, allocations: 0.7518 MB / 315.7 MB, free: 4.75 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.916e-05/0.1406, allocations: 12 kB / 315.8 MB, free: 4.738 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.195e-05/0.1406, allocations: 18.12 kB / 315.8 MB, free: 4.723 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002972/0.1409, allocations: 153.5 kB / 315.9 MB, free: 4.566 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004313/0.1414, allocations: 269.8 kB / 316.2 MB, free: 4.32 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001113/0.1425, allocations: 3.786 MB / 320 MB, free: 348 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003525/0.1428, allocations: 55.94 kB / 320 MB, free: 292 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.566e-05/0.1429, allocations: 44 kB / 320.1 MB, free: 248 kB / 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.0001714/0.143, allocations: 194.1 kB / 320.3 MB, free: 64 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.1431, allocations: 95.98 kB / 320.4 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000505/0.1436, allocations: 474.1 kB / 320.8 MB, free: 15.49 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.1437, allocations: 6.859 kB / 320.8 MB, free: 15.49 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.275e-06/0.1437, allocations: 4 kB / 320.8 MB, free: 15.48 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.1437, allocations: 7.922 kB / 320.8 MB, free: 15.48 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001296/0.145, allocations: 1.215 MB / 322.1 MB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.145, allocations: 4 kB / 322.1 MB, free: 14.33 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002996/0.1453, allocations: 138.8 kB / 322.2 MB, free: 14.2 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003166/0.1456, allocations: 166.8 kB / 322.4 MB, free: 14.04 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.982e-05/0.1456, allocations: 23.98 kB / 322.4 MB, free: 14.01 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001892/0.1475, allocations: 3.836 MB / 326.2 MB, free: 9.98 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.1475, allocations: 7.469 kB / 326.2 MB, free: 9.977 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006759/0.1482, allocations: 0.7379 MB / 327 MB, free: 9.191 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002032/0.1484, allocations: 131 kB / 327.1 MB, free: 9.062 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.053e-05/0.1485, allocations: 23.98 kB / 327.1 MB, free: 9.039 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002602/0.1487, allocations: 31.98 kB / 327.1 MB, free: 9.008 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001063/0.1488, allocations: 63.8 kB / 327.2 MB, free: 8.949 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.326e-05/0.1489, allocations: 20.14 kB / 327.2 MB, free: 8.93 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003696/0.1492, allocations: 483.9 kB / 327.7 MB, free: 8.512 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1492, allocations: 0 / 327.7 MB, free: 8.512 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006681/0.1499, allocations: 324 kB / 328 MB, free: 8.195 MB / 282.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.000163/0.1501, allocations: 126.3 kB / 328.1 MB, free: 8.07 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007378/0.1508, allocations: 0.8162 MB / 329 MB, free: 7.289 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.576e-05/0.1508, allocations: 17.81 kB / 329 MB, free: 7.273 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003958/0.1512, allocations: 0.5556 MB / 329.5 MB, free: 6.707 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007781/0.152, allocations: 350.9 kB / 329.9 MB, free: 6.391 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002872/0.1549, allocations: 2.546 MB / 332.4 MB, free: 3.785 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002383/0.1551, allocations: 252.4 kB / 332.7 MB, free: 3.516 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003663/0.1555, allocations: 158.8 kB / 332.8 MB, free: 3.355 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004721/0.1559, allocations: 341.1 kB / 333.1 MB, free: 3.023 MB / 282.7 MB Notification: Performance of SimCode: time 1.233e-06/0.1559, allocations: 0 / 333.1 MB, free: 3.023 MB / 282.7 MB Notification: Performance of Templates: time 0.02383/0.1798, allocations: 18.79 MB / 351.9 MB, free: 0.6211 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.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: 3.27782647497952]