Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009644/0.0009644, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001571/0.002535, allocations: 449.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.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.0009701/0.0009701, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0014/0.00237, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9814/0.9814, allocations: 177.2 MB / 189.8 MB, free: 5.254 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1046/1.086, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.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_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.1.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.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.332e-06/1.332e-06, allocations: 0 / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.088e-05/1.221e-05, allocations: 2.312 kB / 244.7 MB, free: 14.22 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.008115/0.008127, allocations: 11.88 MB / 256.6 MB, free: 2.277 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003637/0.01176, allocations: 3.396 MB / 260 MB, free: 14.87 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004179/0.01218, allocations: 43.81 kB / 260 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009445/0.01313, allocations: 0.6632 MB / 260.7 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008549/0.01398, allocations: 0.8217 MB / 261.5 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004037/0.01439, allocations: 411.4 kB / 261.9 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.00137/0.01576, allocations: 2.517 MB / 264.4 MB, free: 10.39 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005713/0.01633, allocations: 0.6305 MB / 265.1 MB, free: 9.703 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005261/0.02159, allocations: 1.633 MB / 266.7 MB, free: 8.051 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001494/0.02308, allocations: 0.7673 MB / 267.5 MB, free: 7.281 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004817/0.02356, allocations: 232 kB / 267.7 MB, free: 7.055 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006264/0.02419, allocations: 264 kB / 268 MB, free: 6.797 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003204/0.02451, allocations: 350.8 kB / 268.3 MB, free: 6.453 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009118/0.02542, allocations: 0.62 MB / 268.9 MB, free: 5.832 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002106/0.02753, allocations: 1.401 MB / 270.3 MB, free: 4.426 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.292e-05/0.02754, allocations: 4 kB / 270.3 MB, free: 4.422 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.02754, allocations: 0 / 270.3 MB, free: 4.422 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.783e-05/0.02757, allocations: 0 / 270.3 MB, free: 4.422 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.002272/0.02984, allocations: 2.479 MB / 272.8 MB, free: 1.906 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.031e-05/0.02987, allocations: 11.98 kB / 272.8 MB, free: 1.895 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005483/0.03042, allocations: 425.7 kB / 273.2 MB, free: 1.461 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008854/0.0313, allocations: 0.7891 MB / 274 MB, free: 0.625 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.149e-05/0.03136, allocations: 119.5 kB / 274.1 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001189/0.03148, allocations: 156.3 kB / 274.3 MB, free: 364 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1165/0.148, allocations: 1.171 MB / 275.5 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.89e-05/0.148, allocations: 15 kB / 275.5 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.358e-05/0.1481, allocations: 60.41 kB / 275.5 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.009e-05/0.1481, allocations: 37.97 kB / 275.6 MB, free: 12.58 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005534/0.1487, allocations: 399.2 kB / 276 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004208/0.1529, allocations: 4.722 MB / 280.7 MB, free: 10.24 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005615/0.1534, allocations: 359.5 kB / 281 MB, free: 10.21 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003165/0.1537, allocations: 255.7 kB / 281.3 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.548e-05/0.1538, allocations: 12.14 kB / 281.3 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.094e-05/0.1538, allocations: 45.22 kB / 281.3 MB, free: 10.15 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 2.225e-06/0.1538, allocations: 0 / 281.3 MB, free: 10.15 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.001797/0.1556, allocations: 1.242 MB / 282.6 MB, free: 9.824 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.156e-05/0.1556, allocations: 60.77 kB / 282.6 MB, free: 9.762 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008122/0.1564, allocations: 1.014 MB / 283.7 MB, free: 9.566 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.725e-05/0.1565, allocations: 39.67 kB / 283.7 MB, free: 9.535 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002648/0.1567, allocations: 0.7306 MB / 284.4 MB, free: 9.086 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000102/0.1568, allocations: 273.3 kB / 284.7 MB, free: 8.918 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001715/0.157, allocations: 211.2 kB / 284.9 MB, free: 8.887 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.794e-05/0.1571, allocations: 358.3 kB / 285.2 MB, free: 8.582 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001236/0.1572, allocations: 98.31 kB / 285.3 MB, free: 8.578 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002635/0.1574, allocations: 0.6134 MB / 286 MB, free: 7.957 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005596/0.158, allocations: 0.8292 MB / 286.8 MB, free: 7.402 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.925e-06/0.158, allocations: 5.125 kB / 286.8 MB, free: 7.402 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.0008181/0.1588, allocations: 0.7507 MB / 287.5 MB, free: 7.32 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.891e-05/0.1589, allocations: 11 kB / 287.6 MB, free: 7.32 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.497e-05/0.1589, allocations: 19.61 kB / 287.6 MB, free: 7.32 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003572/0.1592, allocations: 163.2 kB / 287.7 MB, free: 7.289 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004954/0.1597, allocations: 296.4 kB / 288 MB, free: 7.285 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001241/0.161, allocations: 3.778 MB / 291.8 MB, free: 3.75 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004206/0.1614, allocations: 51.33 kB / 291.8 MB, free: 3.746 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.067e-05/0.1614, allocations: 48.3 kB / 291.9 MB, free: 3.746 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.0002003/0.1616, allocations: 197.3 kB / 292.1 MB, free: 3.617 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/0.1617, allocations: 95.72 kB / 292.2 MB, free: 3.617 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005236/0.1623, allocations: 470.2 kB / 292.6 MB, free: 3.523 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.737e-06/0.1623, allocations: 6.625 kB / 292.6 MB, free: 3.523 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.1623, allocations: 3.5 kB / 292.6 MB, free: 3.523 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.1623, allocations: 7.844 kB / 292.7 MB, free: 3.52 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001222/0.1635, allocations: 1.205 MB / 293.9 MB, free: 3.152 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.1635, allocations: 10.84 kB / 293.9 MB, free: 3.148 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002934/0.1638, allocations: 145.7 kB / 294 MB, free: 3.148 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001793/0.164, allocations: 130.9 kB / 294.1 MB, free: 3.074 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003062/0.1643, allocations: 177.2 kB / 294.3 MB, free: 3.039 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.413e-05/0.1643, allocations: 26.66 kB / 294.3 MB, free: 3.035 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001143/0.1655, allocations: 3.826 MB / 298.2 MB, free: 15.5 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.1655, allocations: 3.031 kB / 298.2 MB, free: 15.5 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005937/0.166, allocations: 0.7425 MB / 298.9 MB, free: 15.18 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.357e-05/0.1661, allocations: 21.91 kB / 298.9 MB, free: 15.18 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002399/0.1664, allocations: 36.84 kB / 299 MB, free: 15.17 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.37e-05/0.1664, allocations: 66.88 kB / 299 MB, free: 15.17 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.791e-05/0.1665, allocations: 19.25 kB / 299.1 MB, free: 15.17 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002972/0.1667, allocations: 476.4 kB / 299.5 MB, free: 15.12 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1667, allocations: 0 / 299.5 MB, free: 15.12 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005908/0.1673, allocations: 328.7 kB / 299.8 MB, free: 15.12 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.0001587/0.1675, allocations: 119.9 kB / 300 MB, free: 15.05 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006071/0.1681, allocations: 0.8349 MB / 300.8 MB, free: 14.7 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.071e-05/0.1681, allocations: 19.75 kB / 300.8 MB, free: 14.69 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003722/0.1685, allocations: 0.5958 MB / 301.4 MB, free: 14.34 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001642/0.1702, allocations: 3.51 MB / 304.9 MB, free: 10.72 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01372/0.1839, allocations: 2.746 MB / 307.7 MB, free: 9.074 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001852/0.1841, allocations: 257.2 kB / 307.9 MB, free: 8.871 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003539/0.1844, allocations: 164.8 kB / 308.1 MB, free: 8.746 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004747/0.1849, allocations: 346.3 kB / 308.4 MB, free: 8.465 MB / 282.7 MB Notification: Performance of SimCode: time 7.41e-07/0.1849, allocations: 0 / 308.4 MB, free: 8.465 MB / 282.7 MB Notification: Performance of Templates: time 0.03397/0.2188, allocations: 19.25 MB / 327.7 MB, free: 5.922 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.190671076066792]