Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.00102/0.00102, allocations: 79.73 kB / 21.97 MB, free: 2.59 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.001259/0.001259, allocations: 161.5 kB / 25.32 MB, free: 9.117 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8715/0.8715, allocations: 158.6 MB / 187.2 MB, free: 2.914 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_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_3.2.3_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_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 3.938 kB / 251.1 MB, free: 3.586 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.719e-05/2.896e-05, allocations: 2.312 kB / 251.1 MB, free: 3.582 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01005/0.01008, allocations: 12.02 MB / 263.1 MB, free: 7.508 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006111/0.01619, allocations: 3.281 MB / 266.4 MB, free: 4.211 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001285/0.01747, allocations: 39.88 kB / 266.4 MB, free: 4.172 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001577/0.01905, allocations: 0.6438 MB / 267 MB, free: 3.523 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001787/0.02083, allocations: 0.8178 MB / 267.9 MB, free: 2.699 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007432/0.02158, allocations: 403.5 kB / 268.3 MB, free: 2.305 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002633/0.02421, allocations: 2.513 MB / 270.8 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008635/0.02507, allocations: 0.6069 MB / 271.4 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001971/0.02705, allocations: 1.415 MB / 272.8 MB, free: 13.71 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000971/0.02802, allocations: 0.7595 MB / 273.6 MB, free: 12.95 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000319/0.02834, allocations: 227.9 kB / 273.8 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004019/0.02874, allocations: 255.9 kB / 274 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002339/0.02897, allocations: 478.2 kB / 274.5 MB, free: 12 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008019/0.02977, allocations: 0.7288 MB / 275.2 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001787/0.03156, allocations: 1.487 MB / 276.7 MB, free: 9.781 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.03157, allocations: 0 / 276.7 MB, free: 9.781 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.03157, allocations: 0 / 276.7 MB, free: 9.781 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.938e-05/0.03163, allocations: 0 / 276.7 MB, free: 9.781 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.002792/0.03442, allocations: 2.235 MB / 278.9 MB, free: 7.496 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.197e-05/0.03446, allocations: 12.03 kB / 279 MB, free: 7.484 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00067/0.03513, allocations: 415.5 kB / 279.4 MB, free: 7.078 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001308/0.03644, allocations: 1.039 MB / 280.4 MB, free: 5.992 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.401e-05/0.0365, allocations: 111.5 kB / 280.5 MB, free: 5.883 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001585/0.03666, allocations: 164.3 kB / 280.7 MB, free: 5.723 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001697/0.03836, allocations: 1.266 MB / 281.9 MB, free: 4.355 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.503e-05/0.03841, allocations: 15.89 kB / 282 MB, free: 4.34 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001085/0.03852, allocations: 64 kB / 282 MB, free: 4.277 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-05/0.03856, allocations: 39.98 kB / 282.1 MB, free: 4.238 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001211/0.03977, allocations: 0.5702 MB / 282.6 MB, free: 3.66 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00656/0.04633, allocations: 5.908 MB / 288.5 MB, free: 13.45 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009364/0.04727, allocations: 423.8 kB / 288.9 MB, free: 13.03 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005424/0.04781, allocations: 293.5 kB / 289.2 MB, free: 12.74 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.149e-05/0.04785, allocations: 20.64 kB / 289.3 MB, free: 12.72 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.253e-05/0.04788, allocations: 42.05 kB / 289.3 MB, free: 12.67 MB / 282.7 MB Notification: Performance of pre-optimization done (n=66): time 2.765e-06/0.04789, allocations: 0 / 289.3 MB, free: 12.67 MB / 282.7 MB Notification: Performance of matching and sorting (n=72): time 0.002982/0.05087, allocations: 1.655 MB / 290.9 MB, free: 10.97 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.416e-05/0.05092, allocations: 111.5 kB / 291.1 MB, free: 10.84 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001257/0.05218, allocations: 1.13 MB / 292.2 MB, free: 9.695 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.978e-05/0.05222, allocations: 41.7 kB / 292.2 MB, free: 9.648 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005633/0.05278, allocations: 0.9511 MB / 293.2 MB, free: 8.688 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001779/0.05296, allocations: 277.7 kB / 293.5 MB, free: 8.414 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002305/0.05319, allocations: 208.5 kB / 293.7 MB, free: 8.199 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.05335, allocations: 0.5237 MB / 294.2 MB, free: 7.668 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002756/0.05362, allocations: 138.5 kB / 294.3 MB, free: 7.535 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006164/0.05424, allocations: 0.8453 MB / 295.2 MB, free: 6.379 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009962/0.05524, allocations: 1.011 MB / 296.2 MB, free: 5.086 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.548e-06/0.05525, allocations: 4 kB / 296.2 MB, free: 5.082 MB / 282.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001552/0.0568, allocations: 1.023 MB / 297.2 MB, free: 4.039 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.869e-05/0.05683, allocations: 14.97 kB / 297.2 MB, free: 4.027 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.898e-05/0.05684, allocations: 16.53 kB / 297.2 MB, free: 4.012 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000469/0.05731, allocations: 150.9 kB / 297.4 MB, free: 3.852 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006247/0.05794, allocations: 251.6 kB / 297.6 MB, free: 3.605 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1275/0.1854, allocations: 5.615 MB / 303.2 MB, free: 49 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008877/0.1863, allocations: 51.56 kB / 303.3 MB, free: 49 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001303/0.1865, allocations: 56.11 kB / 303.3 MB, free: 49 MB / 282.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.0004923/0.187, allocations: 234.5 kB / 303.6 MB, free: 48.84 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002715/0.1872, allocations: 153.1 kB / 303.7 MB, free: 48.84 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009475/0.1882, allocations: 0.598 MB / 304.3 MB, free: 48.75 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.019e-05/0.1882, allocations: 7.312 kB / 304.3 MB, free: 48.75 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.1882, allocations: 1.406 kB / 304.3 MB, free: 48.75 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.348e-06/0.1882, allocations: 4.172 kB / 304.3 MB, free: 48.75 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002596/0.1908, allocations: 1.833 MB / 306.2 MB, free: 48.22 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.533e-06/0.1908, allocations: 4.906 kB / 306.2 MB, free: 48.22 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003517/0.1912, allocations: 126.7 kB / 306.3 MB, free: 48.22 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004828/0.1916, allocations: 155.5 kB / 306.4 MB, free: 48.18 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.786e-05/0.1917, allocations: 20.78 kB / 306.5 MB, free: 48.18 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002205/0.1939, allocations: 5.686 MB / 312.1 MB, free: 42.81 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/0.1939, allocations: 8.812 kB / 312.2 MB, free: 42.81 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001354/0.1952, allocations: 1.023 MB / 313.2 MB, free: 42.38 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004266/0.1957, allocations: 196.7 kB / 313.4 MB, free: 42.38 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/0.1958, allocations: 16.56 kB / 313.4 MB, free: 42.38 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002853/0.1961, allocations: 43.55 kB / 313.4 MB, free: 42.38 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001411/0.1962, allocations: 62.27 kB / 313.5 MB, free: 42.38 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.277e-05/0.1962, allocations: 23.08 kB / 313.5 MB, free: 42.38 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0008296/0.1971, allocations: 0.6844 MB / 314.2 MB, free: 42.22 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1971, allocations: 1.188 kB / 314.2 MB, free: 42.22 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001024/0.1981, allocations: 324.7 kB / 314.5 MB, free: 42.22 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.0002455/0.1983, allocations: 134.7 kB / 314.6 MB, free: 42.13 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001294/0.1996, allocations: 1.061 MB / 315.7 MB, free: 41.6 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.1996, allocations: 3.562 kB / 315.7 MB, free: 41.6 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004977/0.2001, allocations: 0.7489 MB / 316.5 MB, free: 41.07 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001013/0.2011, allocations: 360 kB / 316.8 MB, free: 41.04 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003761/0.2049, allocations: 2.693 MB / 319.5 MB, free: 39.59 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002263/0.2051, allocations: 248.1 kB / 319.7 MB, free: 39.5 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005705/0.2057, allocations: 158.8 kB / 319.9 MB, free: 39.45 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001487/0.2059, allocations: 84.12 kB / 320 MB, free: 39.45 MB / 282.7 MB Notification: Performance of SimCode: time 1.383e-06/0.2059, allocations: 0 / 320 MB, free: 39.45 MB / 282.7 MB Notification: Performance of Templates: time 0.02213/0.228, allocations: 18.42 MB / 338.4 MB, free: 25.04 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.4506137939170003]