Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.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.001902/0.001902, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.002381/0.002381, allocations: 157.7 kB / 24.27 MB, free: 172 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.46/1.46, allocations: 177.2 MB / 204.6 MB, free: 5.598 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_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=250000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling,tolerance=1e-06,outputFormat="mat",numberOfIntervals=250000,variableFilter="time|armature.T|core.T|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0 / 272.3 MB, free: 1.801 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.381e-05/2.533e-05, allocations: 2.312 kB / 272.3 MB, free: 1.797 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling): time 0.01218/0.01221, allocations: 8.478 MB / 280.8 MB, free: 9.281 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006056/0.01827, allocations: 2.956 MB / 283.8 MB, free: 6.312 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00086/0.01913, allocations: 35.81 kB / 283.8 MB, free: 6.277 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001658/0.02078, allocations: 0.5625 MB / 284.4 MB, free: 5.711 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00141/0.02219, allocations: 0.6084 MB / 285 MB, free: 5.098 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006824/0.02287, allocations: 327.4 kB / 285.3 MB, free: 4.777 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002184/0.02506, allocations: 1.828 MB / 287.1 MB, free: 2.941 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009288/0.02599, allocations: 417.3 kB / 287.5 MB, free: 2.508 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001606/0.02759, allocations: 1.044 MB / 288.6 MB, free: 1.461 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008413/0.02843, allocations: 0.5335 MB / 289.1 MB, free: 0.9258 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002277/0.02866, allocations: 160 kB / 289.3 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003974/0.02906, allocations: 200 kB / 289.5 MB, free: 0.5742 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003404/0.0294, allocations: 342.7 kB / 289.8 MB, free: 244 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.127/0.1564, allocations: 0.5513 MB / 290.4 MB, free: 17.17 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002836/0.1592, allocations: 2.003 MB / 292.4 MB, free: 17.06 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.1592, allocations: 3.938 kB / 292.4 MB, free: 17.06 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1592, allocations: 2.75 kB / 292.4 MB, free: 17.06 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.01e-05/0.1593, allocations: 0 / 292.4 MB, free: 17.06 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: 272 * Number of variables: 272 Notification: Performance of Generate backend data structure: time 0.003382/0.1627, allocations: 1.747 MB / 294.1 MB, free: 16.16 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.1627, allocations: 9.188 kB / 294.1 MB, free: 16.16 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007347/0.1634, allocations: 292.9 kB / 294.4 MB, free: 16.08 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001534/0.165, allocations: 0.7847 MB / 295.2 MB, free: 15.79 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001683/0.1651, allocations: 165.5 kB / 295.4 MB, free: 15.69 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001789/0.1653, allocations: 120.6 kB / 295.5 MB, free: 15.68 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002032/0.1673, allocations: 1.574 MB / 297 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.666e-05/0.1674, allocations: 7.297 kB / 297.1 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001011/0.1675, allocations: 50.06 kB / 297.1 MB, free: 14.9 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.604e-05/0.1675, allocations: 27.23 kB / 297.1 MB, free: 14.9 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001511/0.169, allocations: 0.7574 MB / 297.9 MB, free: 14.89 MB / 266.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005087/0.1741, allocations: 3.245 MB / 301.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001442/0.1755, allocations: 0.5504 MB / 301.7 MB, free: 13.06 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004714/0.176, allocations: 242.9 kB / 301.9 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.514e-05/0.1761, allocations: 12.25 kB / 301.9 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005783/0.1766, allocations: 330 kB / 302.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of pre-optimization done (n=62): time 2.775e-06/0.1766, allocations: 0 / 302.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of matching and sorting (n=65): time 0.004546/0.1812, allocations: 1.87 MB / 304.1 MB, free: 11.91 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.24e-05/0.1813, allocations: 476.3 kB / 304.6 MB, free: 11.34 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001234/0.1825, allocations: 0.9646 MB / 305.5 MB, free: 10.91 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.17e-05/0.1826, allocations: 40.11 kB / 305.6 MB, free: 10.88 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003863/0.183, allocations: 0.6713 MB / 306.3 MB, free: 10.34 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000132/0.1831, allocations: 240.5 kB / 306.5 MB, free: 10.16 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002406/0.1833, allocations: 204.6 kB / 306.7 MB, free: 10.05 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.061e-05/0.1834, allocations: 342.1 kB / 307 MB, free: 9.73 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004828/0.1839, allocations: 299.6 kB / 307.3 MB, free: 9.586 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007177/0.1846, allocations: 1.171 MB / 308.5 MB, free: 8.355 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001085/0.1857, allocations: 0.9412 MB / 309.4 MB, free: 7.633 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.047e-06/0.1857, allocations: 3.562 kB / 309.4 MB, free: 7.633 MB / 266.7 MB Notification: Performance of matching and sorting (n=128) (initialization): time 0.002115/0.1878, allocations: 1.227 MB / 310.7 MB, free: 7.008 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.508e-05/0.1878, allocations: 69.64 kB / 310.7 MB, free: 6.938 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.234e-05/0.1879, allocations: 11.44 kB / 310.7 MB, free: 6.938 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000579/0.1885, allocations: 173.1 kB / 310.9 MB, free: 6.863 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006538/0.1891, allocations: 207.5 kB / 311.1 MB, free: 6.828 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003201/0.1923, allocations: 3.608 MB / 314.7 MB, free: 3.625 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001153/0.1935, allocations: 64.67 kB / 314.8 MB, free: 3.594 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.364e-05/0.1935, allocations: 51.02 kB / 314.8 MB, free: 3.582 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (112): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0004665/0.194, allocations: 299.3 kB / 315.1 MB, free: 3.367 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001749/0.1942, allocations: 140.4 kB / 315.3 MB, free: 3.293 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00132/0.1955, allocations: 0.688 MB / 316 MB, free: 2.898 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.1955, allocations: 6.062 kB / 316 MB, free: 2.898 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.1955, allocations: 8.812 kB / 316 MB, free: 2.895 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001136/0.1966, allocations: 0.951 MB / 316.9 MB, free: 1.922 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002471/0.1991, allocations: 1.507 MB / 318.4 MB, free: 388 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.1991, allocations: 4 kB / 318.4 MB, free: 384 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004529/0.1996, allocations: 109.8 kB / 318.5 MB, free: 284 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00042/0.2, allocations: 132.3 kB / 318.7 MB, free: 148 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.606e-05/0.2, allocations: 23.44 kB / 318.7 MB, free: 128 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004239/0.2043, allocations: 3.309 MB / 322 MB, free: 12.64 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.2043, allocations: 4 kB / 322 MB, free: 12.63 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002388/0.2066, allocations: 1.058 MB / 323.1 MB, free: 11.54 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005682/0.2072, allocations: 171.2 kB / 323.2 MB, free: 11.37 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001368/0.2074, allocations: 12 kB / 323.2 MB, free: 11.36 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000643/0.208, allocations: 43.95 kB / 323.3 MB, free: 11.32 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000406/0.2084, allocations: 66.77 kB / 323.3 MB, free: 11.26 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-05/0.2084, allocations: 23.98 kB / 323.4 MB, free: 11.23 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001057/0.2095, allocations: 0.6306 MB / 324 MB, free: 10.59 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2095, allocations: 0 / 324 MB, free: 10.59 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00132/0.2108, allocations: 304 kB / 324.3 MB, free: 10.3 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.phi,armature.T,core.T) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,12)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003089/0.2111, allocations: 133.5 kB / 324.4 MB, free: 10.16 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002518/0.2137, allocations: 1.118 MB / 325.5 MB, free: 9.031 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.2137, allocations: 0 / 325.5 MB, free: 9.031 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001088/0.2147, allocations: 0.54 MB / 326.1 MB, free: 8.48 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001421/0.2162, allocations: 297.3 kB / 326.4 MB, free: 8.211 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004096/0.2203, allocations: 2.103 MB / 328.5 MB, free: 6.082 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006276/0.2209, allocations: 0.493 MB / 329 MB, free: 5.547 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005036/0.2214, allocations: 132.6 kB / 329.1 MB, free: 5.414 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001992/0.2216, allocations: 76.5 kB / 329.2 MB, free: 5.34 MB / 282.7 MB Notification: Performance of SimCode: time 8.42e-07/0.2216, allocations: 0 / 329.2 MB, free: 5.34 MB / 282.7 MB Notification: Performance of Templates: time 0.0336/0.2552, allocations: 17.11 MB / 346.3 MB, free: 4.66 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Cooling/DCPM_Cooling.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Cooling.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 7.905637138988823]