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.001113/0.001113, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001509/0.002621, allocations: 445.7 kB / 10.37 MB, free: 328 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.001079/0.001079, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0014/0.002479, allocations: 463.6 kB / 11.71 MB, free: 2.453 MB / 13.93 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.8223/0.8223, allocations: 158.6 MB / 171.1 MB, free: 2.574 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.187/1.009, allocations: 49.48 MB / 220.5 MB, free: 1.457 MB / 218.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.112e-06/1.112e-06, allocations: 0 / 221.8 MB, free: 176 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.506e-05/1.617e-05, allocations: 6.25 kB / 221.8 MB, free: 168 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.008293/0.008309, allocations: 11.81 MB / 233.7 MB, free: 4.293 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.005496/0.01381, allocations: 3.401 MB / 237.1 MB, free: 0.875 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001205/0.01501, allocations: 47.81 kB / 237.1 MB, free: 0.8281 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001293/0.0163, allocations: 0.671 MB / 237.8 MB, free: 156 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001732/0.01803, allocations: 0.8219 MB / 238.6 MB, free: 15.32 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007124/0.01875, allocations: 407.4 kB / 239 MB, free: 14.92 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00229/0.02104, allocations: 2.517 MB / 241.5 MB, free: 12.4 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008242/0.02186, allocations: 0.6266 MB / 242.1 MB, free: 11.71 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002049/0.02391, allocations: 1.622 MB / 243.8 MB, free: 10.07 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001031/0.02494, allocations: 0.7673 MB / 244.5 MB, free: 9.297 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003333/0.02527, allocations: 224 kB / 244.7 MB, free: 9.078 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004415/0.02571, allocations: 267.9 kB / 245 MB, free: 8.816 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002005/0.02592, allocations: 350.8 kB / 245.4 MB, free: 8.473 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005959/0.02651, allocations: 0.62 MB / 246 MB, free: 7.852 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001292/0.0278, allocations: 1.405 MB / 247.4 MB, free: 6.441 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.776e-05/0.02782, allocations: 8 kB / 247.4 MB, free: 6.434 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.02782, allocations: 0 / 247.4 MB, free: 6.434 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.119e-05/0.02788, allocations: 0 / 247.4 MB, free: 6.434 MB / 250.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.002497/0.03038, allocations: 2.475 MB / 249.9 MB, free: 3.922 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.064e-05/0.03041, allocations: 8.031 kB / 249.9 MB, free: 3.914 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005634/0.03098, allocations: 421.7 kB / 250.3 MB, free: 3.484 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001024/0.032, allocations: 0.793 MB / 251.1 MB, free: 2.645 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.229e-05/0.03206, allocations: 115.5 kB / 251.2 MB, free: 2.531 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001396/0.0322, allocations: 164.3 kB / 251.3 MB, free: 2.371 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001068/0.03327, allocations: 1.171 MB / 252.5 MB, free: 1.113 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.998e-05/0.03331, allocations: 11.94 kB / 252.5 MB, free: 1.102 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.604e-05/0.03338, allocations: 67.98 kB / 252.6 MB, free: 1.035 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.232e-05/0.0334, allocations: 40 kB / 252.6 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005153/0.03391, allocations: 398.8 kB / 253 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004289/0.0382, allocations: 4.734 MB / 257.8 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005612/0.03876, allocations: 367.7 kB / 258.1 MB, free: 11.22 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003019/0.03906, allocations: 246.6 kB / 258.4 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.435e-05/0.0391, allocations: 16.66 kB / 258.4 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.03913, allocations: 47.2 kB / 258.4 MB, free: 10.91 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 2.946e-06/0.03913, allocations: 0 / 258.4 MB, free: 10.91 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.001777/0.0409, allocations: 1.219 MB / 259.6 MB, free: 9.652 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.658e-05/0.04093, allocations: 60.06 kB / 259.7 MB, free: 9.582 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000847/0.04178, allocations: 1.013 MB / 260.7 MB, free: 8.559 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.911e-05/0.04182, allocations: 37.7 kB / 260.7 MB, free: 8.516 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003277/0.04215, allocations: 0.7313 MB / 261.5 MB, free: 7.773 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001291/0.04227, allocations: 273.7 kB / 261.7 MB, free: 7.504 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001595/0.04243, allocations: 210.7 kB / 262 MB, free: 7.293 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.524e-05/0.04253, allocations: 353.8 kB / 262.3 MB, free: 6.941 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.04265, allocations: 102.6 kB / 262.4 MB, free: 6.84 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003366/0.04299, allocations: 0.6168 MB / 263 MB, free: 5.996 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005915/0.04358, allocations: 0.7796 MB / 263.8 MB, free: 5.008 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.584e-06/0.04359, allocations: 7.938 kB / 263.8 MB, free: 5 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.0007794/0.04437, allocations: 0.7578 MB / 264.6 MB, free: 4.227 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/0.04439, allocations: 12 kB / 264.6 MB, free: 4.215 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.503e-05/0.0444, allocations: 16 kB / 264.6 MB, free: 4.199 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003386/0.04474, allocations: 158.2 kB / 264.7 MB, free: 4.035 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005344/0.04528, allocations: 287.5 kB / 265 MB, free: 3.754 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001892/0.04717, allocations: 3.782 MB / 268.8 MB, free: 15.71 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004278/0.04759, allocations: 55.88 kB / 268.9 MB, free: 15.66 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.954e-05/0.04763, allocations: 44 kB / 268.9 MB, free: 15.61 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.000213/0.04785, allocations: 193.4 kB / 269.1 MB, free: 15.41 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.37e-05/0.04794, allocations: 99.97 kB / 269.2 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005072/0.04845, allocations: 472.3 kB / 269.6 MB, free: 14.83 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.31e-06/0.04845, allocations: 7.938 kB / 269.7 MB, free: 14.82 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.04846, allocations: 4 kB / 269.7 MB, free: 14.82 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.04846, allocations: 3.984 kB / 269.7 MB, free: 14.82 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001386/0.04985, allocations: 1.226 MB / 270.9 MB, free: 13.51 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.04985, allocations: 0 / 270.9 MB, free: 13.51 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003157/0.05017, allocations: 147.8 kB / 271 MB, free: 13.37 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001931/0.05036, allocations: 123.1 kB / 271.2 MB, free: 13.25 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003253/0.05069, allocations: 178.2 kB / 271.3 MB, free: 13.06 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.596e-05/0.05071, allocations: 23.98 kB / 271.4 MB, free: 13.04 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001653/0.05236, allocations: 3.829 MB / 275.2 MB, free: 8.949 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.05237, allocations: 4 kB / 275.2 MB, free: 8.945 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000698/0.05307, allocations: 0.7422 MB / 275.9 MB, free: 8.137 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.931e-05/0.05315, allocations: 16 kB / 275.9 MB, free: 8.121 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002348/0.05338, allocations: 31.98 kB / 276 MB, free: 8.09 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.267e-05/0.05346, allocations: 64.27 kB / 276 MB, free: 8.027 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.322e-05/0.05349, allocations: 32.11 kB / 276.1 MB, free: 7.996 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003434/0.05383, allocations: 469.9 kB / 276.5 MB, free: 7.531 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.05383, allocations: 0 / 276.5 MB, free: 7.531 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000709/0.05454, allocations: 332 kB / 276.9 MB, free: 7.207 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.0001755/0.05471, allocations: 116.4 kB / 277 MB, free: 7.086 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006537/0.05537, allocations: 0.8185 MB / 277.8 MB, free: 6.23 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.209e-05/0.0554, allocations: 21.81 kB / 277.8 MB, free: 6.211 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003417/0.05574, allocations: 0.5563 MB / 278.4 MB, free: 5.609 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007698/0.05651, allocations: 455.2 kB / 278.8 MB, free: 5.172 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01428/0.07079, allocations: 2.742 MB / 281.5 MB, free: 2.34 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001938/0.07098, allocations: 257 kB / 281.8 MB, free: 2.055 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004088/0.07139, allocations: 162.8 kB / 282 MB, free: 1.891 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005839/0.07198, allocations: 345 kB / 282.3 MB, free: 1.555 MB / 282.7 MB Notification: Performance of SimCode: time 9.92e-07/0.07198, allocations: 3.938 kB / 282.3 MB, free: 1.551 MB / 282.7 MB Notification: Performance of Templates: time 0.1171/0.1891, allocations: 19.66 MB / 302 MB, free: 43.42 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 -ignoreHideResult -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.083576276898384]