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.0007516/0.0007516, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009907/0.001742, allocations: 449.7 kB / 10.37 MB, free: 332 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.0006315/0.0006315, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008152/0.001447, allocations: 459.6 kB / 11.69 MB, free: 2.48 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.9185/0.9185, allocations: 173.4 MB / 185.8 MB, free: 8.973 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07708/0.9956, allocations: 52.5 MB / 238.3 MB, free: 4.418 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.223e-06/1.223e-06, allocations: 3.938 kB / 239.6 MB, free: 3.156 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.618e-06/1.084e-05, allocations: 5.125 kB / 239.6 MB, free: 3.152 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.008459/0.00847, allocations: 11.85 MB / 251.4 MB, free: 7.254 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004856/0.01333, allocations: 3.369 MB / 254.8 MB, free: 3.875 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007054/0.01403, allocations: 43.81 kB / 254.8 MB, free: 3.832 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009808/0.01501, allocations: 0.6671 MB / 255.5 MB, free: 3.16 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009936/0.01601, allocations: 0.8295 MB / 256.3 MB, free: 2.324 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004409/0.01645, allocations: 399.5 kB / 256.7 MB, free: 1.934 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001502/0.01795, allocations: 2.521 MB / 259.2 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006982/0.01865, allocations: 0.6305 MB / 259.9 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001362/0.02001, allocations: 1.618 MB / 261.5 MB, free: 13.06 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006106/0.02062, allocations: 0.7672 MB / 262.2 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001773/0.0208, allocations: 228 kB / 262.5 MB, free: 12.07 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004595/0.02126, allocations: 267.9 kB / 262.7 MB, free: 11.81 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001939/0.02145, allocations: 346.9 kB / 263.1 MB, free: 11.47 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004737/0.02192, allocations: 0.6277 MB / 263.7 MB, free: 10.84 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001059/0.02298, allocations: 1.405 MB / 265.1 MB, free: 9.43 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.393e-05/0.023, allocations: 0 / 265.1 MB, free: 9.43 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.12e-07/0.023, allocations: 0 / 265.1 MB, free: 9.43 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.091e-05/0.02302, allocations: 4 kB / 265.1 MB, free: 9.426 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.002301/0.02532, allocations: 2.471 MB / 267.6 MB, free: 6.918 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.091e-05/0.02535, allocations: 8.031 kB / 267.6 MB, free: 6.91 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005275/0.02588, allocations: 421.7 kB / 268 MB, free: 6.48 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008719/0.02675, allocations: 0.793 MB / 268.8 MB, free: 5.641 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.349e-05/0.0268, allocations: 115.5 kB / 268.9 MB, free: 5.527 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001222/0.02692, allocations: 164.3 kB / 269.1 MB, free: 5.367 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009425/0.02787, allocations: 1.175 MB / 270.2 MB, free: 4.105 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.268e-05/0.0279, allocations: 7.938 kB / 270.2 MB, free: 4.098 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.063e-05/0.02796, allocations: 64 kB / 270.3 MB, free: 4.035 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.878e-05/0.02798, allocations: 36 kB / 270.3 MB, free: 4 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000451/0.02843, allocations: 398.9 kB / 270.7 MB, free: 3.602 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1106/0.139, allocations: 4.732 MB / 275.5 MB, free: 24.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006508/0.1397, allocations: 360.8 kB / 275.8 MB, free: 24.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000345/0.14, allocations: 261.9 kB / 276.1 MB, free: 24.22 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.783e-05/0.1401, allocations: 12.38 kB / 276.1 MB, free: 24.22 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.514e-05/0.1401, allocations: 44.52 kB / 276.1 MB, free: 24.17 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 2.164e-06/0.1401, allocations: 2 kB / 276.1 MB, free: 24.17 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.002053/0.1421, allocations: 1.215 MB / 277.3 MB, free: 23.96 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.301e-05/0.1422, allocations: 59.8 kB / 277.4 MB, free: 23.9 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00087/0.143, allocations: 1.011 MB / 278.4 MB, free: 23.75 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.601e-05/0.1431, allocations: 40.22 kB / 278.5 MB, free: 23.72 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002931/0.1434, allocations: 0.7373 MB / 279.2 MB, free: 23.29 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.1435, allocations: 273.2 kB / 279.5 MB, free: 23.12 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001745/0.1436, allocations: 207.9 kB / 279.7 MB, free: 23.09 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.324e-05/0.1437, allocations: 361.6 kB / 280 MB, free: 22.79 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001532/0.1439, allocations: 98.06 kB / 280.1 MB, free: 22.79 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003664/0.1442, allocations: 0.6163 MB / 280.7 MB, free: 22.16 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005502/0.1448, allocations: 0.7825 MB / 281.5 MB, free: 21.61 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.197e-06/0.1448, allocations: 4.344 kB / 281.5 MB, free: 21.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.00089/0.1457, allocations: 0.7523 MB / 282.3 MB, free: 21.54 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.184e-05/0.1457, allocations: 12.28 kB / 282.3 MB, free: 21.54 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/0.1457, allocations: 14.12 kB / 282.3 MB, free: 21.54 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003708/0.1461, allocations: 163.4 kB / 282.5 MB, free: 21.5 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005471/0.1466, allocations: 293.4 kB / 282.7 MB, free: 21.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001423/0.1481, allocations: 3.789 MB / 286.5 MB, free: 17.97 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003986/0.1485, allocations: 52.69 kB / 286.6 MB, free: 17.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.952e-05/0.1485, allocations: 44.38 kB / 286.6 MB, free: 17.96 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.0001984/0.1487, allocations: 188.7 kB / 286.8 MB, free: 17.84 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001194/0.1488, allocations: 101.7 kB / 286.9 MB, free: 17.84 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005864/0.1494, allocations: 469.2 kB / 287.4 MB, free: 17.74 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.031e-06/0.1494, allocations: 7.125 kB / 287.4 MB, free: 17.74 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.1494, allocations: 5.219 kB / 287.4 MB, free: 17.74 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.1494, allocations: 4.453 kB / 287.4 MB, free: 17.74 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001395/0.1508, allocations: 1.217 MB / 288.6 MB, free: 17.35 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.1508, allocations: 3.75 kB / 288.6 MB, free: 17.35 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003352/0.1512, allocations: 151.8 kB / 288.8 MB, free: 17.34 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001922/0.1514, allocations: 124.6 kB / 288.9 MB, free: 17.27 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003162/0.1517, allocations: 172.8 kB / 289 MB, free: 17.23 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.52e-05/0.1517, allocations: 15.28 kB / 289.1 MB, free: 17.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001201/0.1529, allocations: 3.838 MB / 292.9 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.219e-06/0.1529, allocations: 8.062 kB / 292.9 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007273/0.1536, allocations: 0.7318 MB / 293.6 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.773e-05/0.1537, allocations: 19.06 kB / 293.7 MB, free: 13.36 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002539/0.154, allocations: 36.62 kB / 293.7 MB, free: 13.35 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.403e-05/0.1541, allocations: 66.61 kB / 293.8 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.185e-05/0.1541, allocations: 16.97 kB / 293.8 MB, free: 13.34 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.000393/0.1545, allocations: 476.5 kB / 294.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.1545, allocations: 0 / 294.2 MB, free: 13.3 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007412/0.1552, allocations: 323.3 kB / 294.6 MB, free: 13.3 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.000154/0.1554, allocations: 125 kB / 294.7 MB, free: 13.21 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005813/0.1559, allocations: 0.8237 MB / 295.5 MB, free: 12.8 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.104e-05/0.156, allocations: 21.66 kB / 295.5 MB, free: 12.8 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002792/0.1563, allocations: 0.553 MB / 296.1 MB, free: 12.43 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007582/0.157, allocations: 453.9 kB / 296.5 MB, free: 12.39 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01374/0.1708, allocations: 2.755 MB / 299.3 MB, free: 11.02 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001643/0.1709, allocations: 262.7 kB / 299.5 MB, free: 10.93 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003704/0.1713, allocations: 151.2 kB / 299.7 MB, free: 10.89 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004434/0.1717, allocations: 342.7 kB / 300 MB, free: 10.83 MB / 266.7 MB Notification: Performance of SimCode: time 1.283e-06/0.1717, allocations: 0 / 300 MB, free: 10.83 MB / 266.7 MB Notification: Performance of Templates: time 0.02137/0.1931, allocations: 19.64 MB / 319.6 MB, free: 8.277 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9846519473940134]