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.001427/0.001427, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.001449/0.001449, allocations: 165.4 kB / 24.82 MB, free: 9.309 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 1.008/1.008, allocations: 177 MB / 205.1 MB, free: 5.469 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.483e-06/1.483e-06, allocations: 0 / 273.3 MB, free: 1.203 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.074e-05/1.222e-05, allocations: 5.266 kB / 273.3 MB, free: 1.199 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.008774/0.008786, allocations: 11.74 MB / 285.1 MB, free: 5.391 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004564/0.01335, allocations: 3.242 MB / 288.3 MB, free: 2.141 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006723/0.01402, allocations: 47.81 kB / 288.4 MB, free: 2.094 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001116/0.01514, allocations: 0.6438 MB / 289 MB, free: 1.445 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00105/0.01619, allocations: 0.8217 MB / 289.8 MB, free: 0.6172 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004733/0.01666, allocations: 403.5 kB / 290.2 MB, free: 228 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1195/0.1361, allocations: 2.504 MB / 292.7 MB, free: 16.07 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00117/0.1373, allocations: 0.607 MB / 293.3 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002159/0.1395, allocations: 1.423 MB / 294.8 MB, free: 15.81 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001146/0.1406, allocations: 0.764 MB / 295.5 MB, free: 15.72 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000463/0.1411, allocations: 224 kB / 295.8 MB, free: 15.72 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005618/0.1416, allocations: 259.7 kB / 296 MB, free: 15.72 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002545/0.1419, allocations: 474.8 kB / 296.5 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001019/0.1429, allocations: 0.7339 MB / 297.2 MB, free: 15.55 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001861/0.1448, allocations: 1.478 MB / 298.7 MB, free: 15.3 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1448, allocations: 0.9062 kB / 298.7 MB, free: 15.3 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1448, allocations: 0.5156 kB / 298.7 MB, free: 15.3 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.787e-05/0.1448, allocations: 0.5312 kB / 298.7 MB, free: 15.3 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.002864/0.1477, allocations: 2.258 MB / 300.9 MB, free: 13.95 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.603e-05/0.1477, allocations: 15.22 kB / 301 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006733/0.1484, allocations: 415.6 kB / 301.4 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001149/0.1496, allocations: 1.006 MB / 302.4 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.83e-05/0.1496, allocations: 113.3 kB / 302.5 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001519/0.1498, allocations: 162.9 kB / 302.6 MB, free: 13.1 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001159/0.1509, allocations: 1.174 MB / 303.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.026e-05/0.151, allocations: 17.12 kB / 303.8 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.166e-05/0.151, allocations: 66.34 kB / 303.9 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.696e-05/0.1511, allocations: 41.3 kB / 303.9 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006247/0.1517, allocations: 454.1 kB / 304.4 MB, free: 12.49 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004102/0.1558, allocations: 5.962 MB / 310.3 MB, free: 8.488 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005332/0.1563, allocations: 389.6 kB / 310.7 MB, free: 8.391 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000301/0.1566, allocations: 267.2 kB / 311 MB, free: 8.348 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.2e-05/0.1567, allocations: 15.66 kB / 311 MB, free: 8.344 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.654e-05/0.1567, allocations: 48.89 kB / 311 MB, free: 8.293 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 1.783e-06/0.1567, allocations: 3.219 kB / 311 MB, free: 8.293 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.001655/0.1583, allocations: 1.332 MB / 312.4 MB, free: 7.672 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.846e-05/0.1584, allocations: 110.1 kB / 312.5 MB, free: 7.547 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007058/0.1591, allocations: 1.106 MB / 313.6 MB, free: 7.008 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.445e-05/0.1591, allocations: 33.7 kB / 313.6 MB, free: 6.969 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003086/0.1594, allocations: 0.9597 MB / 314.6 MB, free: 6.055 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001035/0.1595, allocations: 273.7 kB / 314.9 MB, free: 5.801 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001465/0.1596, allocations: 222.1 kB / 315.1 MB, free: 5.598 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.457e-05/0.1597, allocations: 0.5141 MB / 315.6 MB, free: 5.098 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.1598, allocations: 110.5 kB / 315.7 MB, free: 4.992 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002752/0.1601, allocations: 0.8251 MB / 316.5 MB, free: 3.895 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005076/0.1606, allocations: 0.9633 MB / 317.5 MB, free: 2.734 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.1606, allocations: 4 kB / 317.5 MB, free: 2.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.0008448/0.1615, allocations: 0.9428 MB / 318.4 MB, free: 1.867 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.1615, allocations: 12.62 kB / 318.4 MB, free: 1.855 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/0.1615, allocations: 16 kB / 318.5 MB, free: 1.84 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002994/0.1618, allocations: 140.6 kB / 318.6 MB, free: 1.695 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003984/0.1622, allocations: 252.4 kB / 318.8 MB, free: 1.469 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002276/0.1645, allocations: 5.55 MB / 324.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006781/0.1651, allocations: 59.88 kB / 324.4 MB, free: 11.59 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.699e-05/0.1652, allocations: 44 kB / 324.5 MB, free: 11.54 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.0004609/0.1657, allocations: 241.6 kB / 324.7 MB, free: 11.32 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001935/0.1659, allocations: 155.1 kB / 324.9 MB, free: 11.16 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006453/0.1665, allocations: 0.5389 MB / 325.4 MB, free: 10.61 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.1665, allocations: 8 kB / 325.4 MB, free: 10.6 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.1665, allocations: 3.938 kB / 325.4 MB, free: 10.6 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.261e-06/0.1665, allocations: 3.984 kB / 325.4 MB, free: 10.59 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00178/0.1683, allocations: 1.596 MB / 327 MB, free: 9.047 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.1683, allocations: 4 kB / 327 MB, free: 9.043 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002915/0.1686, allocations: 126.8 kB / 327.2 MB, free: 8.926 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003305/0.169, allocations: 151.2 kB / 327.3 MB, free: 8.77 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.364e-05/0.169, allocations: 20 kB / 327.3 MB, free: 8.75 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0026/0.1716, allocations: 5.617 MB / 332.9 MB, free: 2.859 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.047e-06/0.1716, allocations: 7.469 kB / 332.9 MB, free: 2.855 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008808/0.1725, allocations: 0.96 MB / 333.9 MB, free: 1.824 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002713/0.1727, allocations: 190.1 kB / 334.1 MB, free: 1.641 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.089e-05/0.1728, allocations: 20 kB / 334.1 MB, free: 1.621 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002805/0.1731, allocations: 35.97 kB / 334.1 MB, free: 1.586 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.956e-05/0.1732, allocations: 67.81 kB / 334.2 MB, free: 1.523 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.362e-05/0.1732, allocations: 19.98 kB / 334.2 MB, free: 1.504 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0005029/0.1737, allocations: 0.6133 MB / 334.8 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1737, allocations: 0 / 334.8 MB, free: 0.9375 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009418/0.1747, allocations: 324 kB / 335.2 MB, free: 0.6211 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.0001789/0.1748, allocations: 134.2 kB / 335.3 MB, free: 496 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008488/0.1757, allocations: 1.007 MB / 336.3 MB, free: 15.5 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.1757, allocations: 0 / 336.3 MB, free: 15.5 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000498/0.1762, allocations: 0.7416 MB / 337 MB, free: 14.73 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000929/0.1771, allocations: 354.1 kB / 337.4 MB, free: 14.41 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003875/0.181, allocations: 2.703 MB / 340.1 MB, free: 11.63 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002039/0.1812, allocations: 249 kB / 340.3 MB, free: 11.36 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004304/0.1816, allocations: 158.8 kB / 340.5 MB, free: 11.2 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005271/0.1822, allocations: 394 kB / 340.9 MB, free: 10.81 MB / 298.7 MB Notification: Performance of SimCode: time 7.51e-07/0.1822, allocations: 0 / 340.9 MB, free: 10.81 MB / 298.7 MB Notification: Performance of Templates: time 0.02597/0.2081, allocations: 18.76 MB / 359.6 MB, free: 8.461 MB / 314.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 -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.267889483831823]