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.00194/0.00194, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.001975/0.001975, allocations: 161.6 kB / 24.27 MB, free: 156 kB / 18.57 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 1.588/1.588, allocations: 177.1 MB / 204.6 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] 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.783e-06/1.783e-06, allocations: 0 / 272.3 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.405e-05/2.583e-05, allocations: 9.406 kB / 272.3 MB, free: 1.82 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01648/0.01651, allocations: 12 MB / 284.3 MB, free: 5.766 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006576/0.02308, allocations: 3.246 MB / 287.6 MB, free: 2.508 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001049/0.02413, allocations: 39.88 kB / 287.6 MB, free: 2.469 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001792/0.02593, allocations: 0.6438 MB / 288.3 MB, free: 1.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002148/0.02807, allocations: 0.8218 MB / 289.1 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008996/0.02897, allocations: 407.5 kB / 289.5 MB, free: 0.5938 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1266/0.1555, allocations: 2.505 MB / 292 MB, free: 16.49 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001311/0.1568, allocations: 0.6036 MB / 292.6 MB, free: 16.36 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00228/0.1591, allocations: 1.415 MB / 294 MB, free: 16.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001111/0.1602, allocations: 0.7685 MB / 294.8 MB, free: 16.14 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003688/0.1606, allocations: 229.9 kB / 295 MB, free: 16.14 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005527/0.1612, allocations: 268.1 kB / 295.3 MB, free: 16.14 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003414/0.1615, allocations: 469.7 kB / 295.7 MB, free: 16.05 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009631/0.1625, allocations: 0.7449 MB / 296.5 MB, free: 15.96 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003259/0.1657, allocations: 2.855 MB / 299.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.1657, allocations: 0.5625 kB / 299.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1657, allocations: 2.125 kB / 299.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.281e-05/0.1658, allocations: 0 / 299.3 MB, free: 15.25 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.003861/0.1696, allocations: 2.408 MB / 301.7 MB, free: 13.73 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.1697, allocations: 9.406 kB / 301.7 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001006/0.1707, allocations: 419 kB / 302.1 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001762/0.1724, allocations: 1.096 MB / 303.2 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.456e-05/0.1725, allocations: 117.1 kB / 303.4 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002014/0.1727, allocations: 163.6 kB / 303.5 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002374/0.1751, allocations: 1.722 MB / 305.2 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.622e-05/0.1751, allocations: 16.48 kB / 305.2 MB, free: 11.94 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001113/0.1753, allocations: 64.72 kB / 305.3 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.684e-05/0.1753, allocations: 38.47 kB / 305.3 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00169/0.177, allocations: 1.001 MB / 306.4 MB, free: 11.44 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007254/0.1842, allocations: 7.433 MB / 313.8 MB, free: 5.797 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00131/0.1855, allocations: 0.5714 MB / 314.4 MB, free: 5.438 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000739/0.1863, allocations: 419.4 kB / 314.8 MB, free: 5.023 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.153e-05/0.1863, allocations: 20.64 kB / 314.8 MB, free: 5 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.04e-05/0.1863, allocations: 42.05 kB / 314.8 MB, free: 4.949 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 2.605e-06/0.1863, allocations: 0 / 314.8 MB, free: 4.949 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.004127/0.1905, allocations: 2.125 MB / 317 MB, free: 2.801 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.768e-05/0.1905, allocations: 111.5 kB / 317.1 MB, free: 2.668 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001393/0.1919, allocations: 1.505 MB / 318.6 MB, free: 1.152 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.575e-05/0.1919, allocations: 37.7 kB / 318.6 MB, free: 1.109 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004366/0.1924, allocations: 1.004 MB / 319.6 MB, free: 104 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000254/0.1926, allocations: 292.1 kB / 319.9 MB, free: 15.82 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003809/0.193, allocations: 252.5 kB / 320.1 MB, free: 15.56 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0004962/0.1935, allocations: 0.5585 MB / 320.7 MB, free: 15 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000577/0.1941, allocations: 270.5 kB / 321 MB, free: 14.74 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001275/0.1954, allocations: 1.008 MB / 322 MB, free: 13.43 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001918/0.1973, allocations: 1.289 MB / 323.3 MB, free: 11.91 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.298e-06/0.1973, allocations: 4 kB / 323.3 MB, free: 11.91 MB / 282.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002564/0.1998, allocations: 1.291 MB / 324.6 MB, free: 10.7 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.619e-05/0.1999, allocations: 12 kB / 324.6 MB, free: 10.69 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.551e-05/0.1999, allocations: 20 kB / 324.6 MB, free: 10.67 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007942/0.2007, allocations: 170.6 kB / 324.7 MB, free: 10.49 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008912/0.2016, allocations: 252.5 kB / 325 MB, free: 10.26 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005691/0.2073, allocations: 5.902 MB / 330.9 MB, free: 4.039 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001173/0.2085, allocations: 51.94 kB / 330.9 MB, free: 3.988 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.973e-05/0.2085, allocations: 52 kB / 331 MB, free: 3.938 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.0008188/0.2094, allocations: 404.6 kB / 331.4 MB, free: 3.551 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002711/0.2096, allocations: 159.2 kB / 331.5 MB, free: 3.395 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001857/0.2115, allocations: 0.7925 MB / 332.3 MB, free: 2.586 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.012e-05/0.2115, allocations: 8 kB / 332.4 MB, free: 2.578 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.2115, allocations: 4 kB / 332.4 MB, free: 2.574 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.2115, allocations: 3.984 kB / 332.4 MB, free: 2.57 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004811/0.2163, allocations: 2.433 MB / 334.8 MB, free: 68 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-05/0.2163, allocations: 7.938 kB / 334.8 MB, free: 60 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006068/0.2169, allocations: 119.2 kB / 334.9 MB, free: 15.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008054/0.2178, allocations: 194 kB / 335.1 MB, free: 15.75 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.623e-05/0.2178, allocations: 23.98 kB / 335.1 MB, free: 15.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005873/0.2237, allocations: 6.02 MB / 341.1 MB, free: 9.375 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.225e-06/0.2237, allocations: 7.938 kB / 341.2 MB, free: 9.367 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003001/0.2267, allocations: 1.372 MB / 342.5 MB, free: 7.918 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008122/0.2275, allocations: 194.3 kB / 342.7 MB, free: 7.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001661/0.2277, allocations: 27.92 kB / 342.7 MB, free: 7.703 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005998/0.2283, allocations: 31.98 kB / 342.8 MB, free: 7.672 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000164/0.2284, allocations: 67.94 kB / 342.8 MB, free: 7.609 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.099e-05/0.2285, allocations: 27.98 kB / 342.9 MB, free: 7.582 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001491/0.23, allocations: 0.8973 MB / 343.8 MB, free: 6.68 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.23, allocations: 0 / 343.8 MB, free: 6.68 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001422/0.2314, allocations: 327.9 kB / 344.1 MB, free: 6.359 MB / 298.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.0002926/0.2317, allocations: 129.6 kB / 344.2 MB, free: 6.227 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002325/0.234, allocations: 1.316 MB / 345.5 MB, free: 4.91 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.234, allocations: 0 / 345.5 MB, free: 4.91 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001218/0.2352, allocations: 0.8661 MB / 346.4 MB, free: 4.008 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001772/0.237, allocations: 350.6 kB / 346.7 MB, free: 3.684 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005956/0.243, allocations: 2.854 MB / 349.6 MB, free: 0.7383 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008143/0.2438, allocations: 0.6298 MB / 350.2 MB, free: 76 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0007033/0.2445, allocations: 158.9 kB / 350.4 MB, free: 15.91 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000235/0.2447, allocations: 84.48 kB / 350.5 MB, free: 15.82 MB / 314.7 MB Notification: Performance of SimCode: time 1.392e-06/0.2447, allocations: 0 / 350.5 MB, free: 15.82 MB / 314.7 MB Notification: Performance of Templates: time 0.0398/0.2845, allocations: 17.38 MB / 367.8 MB, free: 14.8 MB / 330.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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.433814465999603]