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.001277/0.001277, allocations: 79.75 kB / 22.45 MB, free: 2.094 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.001742/0.001742, allocations: 172.1 kB / 25.75 MB, free: 8.922 MB / 18.57 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.9403/0.9403, allocations: 158.6 MB / 187.5 MB, free: 2.938 MB / 170.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.804e-06/1.804e-06, allocations: 0 / 251.1 MB, free: 7.781 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.578e-05/2.758e-05, allocations: 6.25 kB / 251.1 MB, free: 7.773 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01444/0.01447, allocations: 11.96 MB / 263.1 MB, free: 11.75 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.006804/0.02127, allocations: 3.258 MB / 266.3 MB, free: 8.48 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001355/0.02263, allocations: 43.81 kB / 266.4 MB, free: 8.438 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002007/0.02464, allocations: 0.6439 MB / 267 MB, free: 7.789 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002115/0.02675, allocations: 0.8218 MB / 267.9 MB, free: 6.961 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008437/0.02759, allocations: 403.5 kB / 268.2 MB, free: 6.566 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002778/0.03037, allocations: 2.509 MB / 270.8 MB, free: 4.043 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001369/0.03174, allocations: 0.6031 MB / 271.4 MB, free: 3.395 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002124/0.03387, allocations: 1.399 MB / 272.8 MB, free: 1.992 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001101/0.03497, allocations: 0.7789 MB / 273.5 MB, free: 1.211 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003569/0.03532, allocations: 232 kB / 273.8 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004382/0.03576, allocations: 271.9 kB / 274 MB, free: 0.7188 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003103/0.03607, allocations: 470.2 kB / 274.5 MB, free: 264 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008345/0.03691, allocations: 0.7405 MB / 275.2 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001958/0.03887, allocations: 1.494 MB / 276.7 MB, free: 14.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.03887, allocations: 0 / 276.7 MB, free: 14.02 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.03887, allocations: 0 / 276.7 MB, free: 14.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.2e-05/0.0389, allocations: 0 / 276.7 MB, free: 14.02 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.002643/0.04155, allocations: 2.243 MB / 279 MB, free: 11.72 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.928e-05/0.04159, allocations: 12.03 kB / 279 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006455/0.04223, allocations: 423.5 kB / 279.4 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001221/0.04345, allocations: 1.05 MB / 280.4 MB, free: 10.2 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.049e-05/0.04351, allocations: 111.5 kB / 280.6 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001427/0.04366, allocations: 164.3 kB / 280.7 MB, free: 9.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001392/0.04505, allocations: 1.269 MB / 282 MB, free: 8.559 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.439e-05/0.04508, allocations: 11.89 kB / 282 MB, free: 8.547 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.895e-05/0.04516, allocations: 64 kB / 282.1 MB, free: 8.484 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.995e-05/0.04519, allocations: 40 kB / 282.1 MB, free: 8.445 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008785/0.04607, allocations: 0.5702 MB / 282.7 MB, free: 7.867 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004948/0.05102, allocations: 5.916 MB / 288.6 MB, free: 1.652 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008069/0.05182, allocations: 419.8 kB / 289 MB, free: 1.23 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004483/0.05227, allocations: 293.5 kB / 289.3 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.549e-05/0.05231, allocations: 12.66 kB / 289.3 MB, free: 0.9297 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.992e-05/0.05234, allocations: 46.03 kB / 289.3 MB, free: 0.875 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 2.705e-06/0.05234, allocations: 0 / 289.3 MB, free: 0.875 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.002327/0.05467, allocations: 1.655 MB / 291 MB, free: 15.17 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.438e-05/0.05473, allocations: 111.5 kB / 291.1 MB, free: 15.04 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001007/0.05574, allocations: 1.134 MB / 292.2 MB, free: 13.89 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.142e-05/0.05577, allocations: 33.7 kB / 292.3 MB, free: 13.86 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007474/0.05652, allocations: 0.9548 MB / 293.2 MB, free: 12.89 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001364/0.05665, allocations: 269.7 kB / 293.5 MB, free: 12.63 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001815/0.05684, allocations: 212.5 kB / 293.7 MB, free: 12.41 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.05696, allocations: 0.5159 MB / 294.2 MB, free: 11.89 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002294/0.05719, allocations: 142.5 kB / 294.3 MB, free: 11.75 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000505/0.0577, allocations: 0.8493 MB / 295.2 MB, free: 10.59 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007729/0.05847, allocations: 1.011 MB / 296.2 MB, free: 9.297 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.381e-06/0.05848, allocations: 8 kB / 296.2 MB, free: 9.289 MB / 282.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001128/0.0596, allocations: 1.023 MB / 297.2 MB, free: 8.246 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.05962, allocations: 8 kB / 297.2 MB, free: 8.238 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.05964, allocations: 19.94 kB / 297.3 MB, free: 8.219 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003814/0.06002, allocations: 143 kB / 297.4 MB, free: 8.066 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004521/0.06047, allocations: 255.6 kB / 297.7 MB, free: 7.816 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002664/0.06314, allocations: 5.621 MB / 303.3 MB, free: 1.832 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004168/0.06355, allocations: 52.11 kB / 303.3 MB, free: 1.781 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.931e-05/0.0636, allocations: 55.98 kB / 303.4 MB, free: 1.727 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.0002608/0.06386, allocations: 236.1 kB / 303.6 MB, free: 1.484 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001439/0.06401, allocations: 159.1 kB / 303.8 MB, free: 1.328 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007687/0.06477, allocations: 0.5984 MB / 304.4 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.359e-06/0.06478, allocations: 7.984 kB / 304.4 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.06478, allocations: 4 kB / 304.4 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.06479, allocations: 3.984 kB / 304.4 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001969/0.06676, allocations: 1.829 MB / 306.2 MB, free: 14.74 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.06676, allocations: 4.094 kB / 306.2 MB, free: 14.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003009/0.06706, allocations: 127.8 kB / 306.3 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000607/0.06767, allocations: 154.9 kB / 306.5 MB, free: 14.45 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.218e-05/0.0677, allocations: 23.94 kB / 306.5 MB, free: 14.42 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002266/0.06997, allocations: 5.691 MB / 312.2 MB, free: 8.367 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.06997, allocations: 4 kB / 312.2 MB, free: 8.363 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.07102, allocations: 1.027 MB / 313.2 MB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000271/0.07129, allocations: 195 kB / 313.4 MB, free: 7.055 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.368e-05/0.07138, allocations: 16 kB / 313.4 MB, free: 7.039 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002766/0.07166, allocations: 35.97 kB / 313.5 MB, free: 7.004 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.406e-05/0.07175, allocations: 60.28 kB / 313.5 MB, free: 6.945 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002991/0.07205, allocations: 27.98 kB / 313.6 MB, free: 6.918 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0006279/0.07268, allocations: 0.6746 MB / 314.2 MB, free: 6.238 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.07268, allocations: 4 kB / 314.2 MB, free: 6.234 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008712/0.07355, allocations: 324 kB / 314.6 MB, free: 5.918 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.0002206/0.07377, allocations: 131.2 kB / 314.7 MB, free: 5.777 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00102/0.07479, allocations: 1.064 MB / 315.8 MB, free: 4.66 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.07479, allocations: 0 / 315.8 MB, free: 4.66 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005021/0.07529, allocations: 0.7571 MB / 316.5 MB, free: 3.848 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000906/0.0762, allocations: 349.1 kB / 316.8 MB, free: 3.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003373/0.07957, allocations: 2.702 MB / 319.6 MB, free: 0.7031 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002105/0.07978, allocations: 253 kB / 319.8 MB, free: 444 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004784/0.08026, allocations: 154.8 kB / 319.9 MB, free: 284 kB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001466/0.08041, allocations: 84.48 kB / 320 MB, free: 200 kB / 298.7 MB Notification: Performance of SimCode: time 1.112e-06/0.08041, allocations: 0 / 320 MB, free: 200 kB / 298.7 MB Notification: Performance of Templates: time 0.02209/0.1025, allocations: 17.36 MB / 337.4 MB, free: 14.84 MB / 330.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 -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.310709449928254]