Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001619/0.002705, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009656/0.0009656, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001362/0.002328, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8679/0.8679, allocations: 173.4 MB / 186 MB, free: 7.531 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1413/1.009, allocations: 52.49 MB / 238.5 MB, free: 7.617 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.ia|dcpm1.tauElectrical|dcpm2.ia|dcpm2.tauElectrical|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 239.7 MB, free: 6.348 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.064e-05/2.21e-05, allocations: 2.312 kB / 239.7 MB, free: 6.344 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01226/0.01228, allocations: 11.46 MB / 251.2 MB, free: 10.85 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004852/0.01713, allocations: 3.33 MB / 254.5 MB, free: 7.535 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005759/0.01771, allocations: 39.88 kB / 254.6 MB, free: 7.496 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009515/0.01866, allocations: 0.6477 MB / 255.2 MB, free: 6.844 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009568/0.01961, allocations: 0.7636 MB / 256 MB, free: 6.074 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004589/0.02007, allocations: 391.5 kB / 256.4 MB, free: 5.691 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0014/0.02147, allocations: 2.353 MB / 258.7 MB, free: 3.328 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006632/0.02214, allocations: 0.6302 MB / 259.4 MB, free: 2.629 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001124/0.02326, allocations: 1.505 MB / 260.9 MB, free: 1.105 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000604/0.02386, allocations: 0.7167 MB / 261.6 MB, free: 396 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001716/0.02404, allocations: 212 kB / 261.8 MB, free: 184 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003114/0.02435, allocations: 252 kB / 262 MB, free: 15.93 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001808/0.02453, allocations: 334.9 kB / 262.4 MB, free: 15.6 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004069/0.02494, allocations: 0.5887 MB / 262.9 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009424/0.02588, allocations: 1.323 MB / 264.3 MB, free: 13.69 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.668e-06/0.02589, allocations: 0 / 264.3 MB, free: 13.69 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.01e-07/0.02589, allocations: 0 / 264.3 MB, free: 13.69 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.816e-05/0.02591, allocations: 0 / 264.3 MB, free: 13.69 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.002069/0.02798, allocations: 2.371 MB / 266.6 MB, free: 11.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.674e-05/0.028, allocations: 8.031 kB / 266.6 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004693/0.02847, allocations: 405.8 kB / 267 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007918/0.02926, allocations: 0.7295 MB / 267.8 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.376e-05/0.02932, allocations: 115.5 kB / 267.9 MB, free: 9.977 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001215/0.02944, allocations: 168.3 kB / 268 MB, free: 9.812 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009/0.03034, allocations: 1.174 MB / 269.2 MB, free: 8.539 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.633e-05/0.03037, allocations: 15.88 kB / 269.2 MB, free: 8.523 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.989e-05/0.03043, allocations: 64 kB / 269.3 MB, free: 8.461 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.096e-05/0.03046, allocations: 40 kB / 269.3 MB, free: 8.422 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004186/0.03087, allocations: 382.3 kB / 269.7 MB, free: 8.039 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004482/0.03536, allocations: 5.128 MB / 274.8 MB, free: 2.578 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003277/0.03568, allocations: 221.4 kB / 275.1 MB, free: 2.355 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001464/0.03583, allocations: 106.3 kB / 275.2 MB, free: 2.25 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.768e-05/0.03586, allocations: 8.5 kB / 275.2 MB, free: 2.242 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002588/0.03612, allocations: 253.2 kB / 275.4 MB, free: 1.961 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.874e-06/0.03612, allocations: 0 / 275.4 MB, free: 1.961 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001411/0.03753, allocations: 0.9497 MB / 276.4 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.229e-05/0.03756, allocations: 59.91 kB / 276.4 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008468/0.03841, allocations: 0.9781 MB / 277.4 MB, free: 15.91 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.897e-05/0.03844, allocations: 37.64 kB / 277.4 MB, free: 15.88 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004051/0.03884, allocations: 0.7773 MB / 278.2 MB, free: 15.09 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001339/0.03898, allocations: 218.2 kB / 278.4 MB, free: 14.88 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002111/0.03919, allocations: 222.7 kB / 278.6 MB, free: 14.65 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.03929, allocations: 353.8 kB / 279 MB, free: 14.3 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001365/0.03943, allocations: 120.2 kB / 279.1 MB, free: 14.18 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004598/0.03989, allocations: 0.7999 MB / 279.9 MB, free: 13.07 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008249/0.04072, allocations: 0.961 MB / 280.9 MB, free: 11.84 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.03e-05/0.04073, allocations: 8 kB / 280.9 MB, free: 11.83 MB / 282.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0008944/0.04162, allocations: 0.8007 MB / 281.7 MB, free: 11 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.022e-05/0.04166, allocations: 41.7 kB / 281.7 MB, free: 10.96 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.768e-05/0.04168, allocations: 20 kB / 281.7 MB, free: 10.94 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001466/0.04183, allocations: 61.81 kB / 281.8 MB, free: 10.87 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006256/0.04245, allocations: 307.5 kB / 282.1 MB, free: 10.57 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001111/0.04356, allocations: 2.348 MB / 284.4 MB, free: 8.051 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005219/0.04408, allocations: 64.12 kB / 284.5 MB, free: 7.988 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.509e-05/0.04414, allocations: 52 kB / 284.6 MB, free: 7.938 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * 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 (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002234/0.04436, allocations: 201.3 kB / 284.8 MB, free: 7.73 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.63e-05/0.04446, allocations: 91.84 kB / 284.8 MB, free: 7.641 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003954/0.04485, allocations: 320 kB / 285.2 MB, free: 7.309 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.04486, allocations: 8 kB / 285.2 MB, free: 7.301 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.384e-06/0.04486, allocations: 0 / 285.2 MB, free: 7.301 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.04487, allocations: 7.984 kB / 285.2 MB, free: 7.293 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001196/0.04607, allocations: 1.024 MB / 286.2 MB, free: 6.184 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.04607, allocations: 4 kB / 286.2 MB, free: 6.18 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003124/0.04638, allocations: 120.3 kB / 286.3 MB, free: 6.062 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000194/0.04658, allocations: 103.2 kB / 286.4 MB, free: 5.961 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.748e-05/0.04667, allocations: 45.62 kB / 286.5 MB, free: 5.91 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.433e-05/0.0467, allocations: 19.94 kB / 286.5 MB, free: 5.891 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001037/0.04774, allocations: 2.305 MB / 288.8 MB, free: 3.414 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.04774, allocations: 4 kB / 288.8 MB, free: 3.41 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005207/0.04826, allocations: 0.5688 MB / 289.4 MB, free: 2.773 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.34e-05/0.04835, allocations: 19.98 kB / 289.4 MB, free: 2.754 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003036/0.04866, allocations: 31.97 kB / 289.4 MB, free: 2.723 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.577e-05/0.04873, allocations: 51.8 kB / 289.5 MB, free: 2.672 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.099e-05/0.04875, allocations: 16 kB / 289.5 MB, free: 2.656 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004478/0.0492, allocations: 467.4 kB / 289.9 MB, free: 2.191 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.0492, allocations: 0 / 289.9 MB, free: 2.191 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007717/0.04997, allocations: 300 kB / 290.2 MB, free: 1.898 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * 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 (54): * Single equations (assignments): 50 * 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): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001581/0.05013, allocations: 120.2 kB / 290.3 MB, free: 1.773 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007033/0.05084, allocations: 0.7791 MB / 291.1 MB, free: 0.9531 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.046e-05/0.05088, allocations: 21.81 kB / 291.1 MB, free: 0.9336 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003365/0.05121, allocations: 414.2 kB / 291.6 MB, free: 0.5039 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001847/0.05306, allocations: 3.067 MB / 294.6 MB, free: 12.82 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0177/0.07076, allocations: 2.421 MB / 297 MB, free: 10.31 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002041/0.07096, allocations: 240.2 kB / 297.3 MB, free: 10.05 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000417/0.07138, allocations: 150.2 kB / 297.4 MB, free: 9.898 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005167/0.0719, allocations: 337 kB / 297.7 MB, free: 9.566 MB / 298.7 MB Notification: Performance of SimCode: time 6.42e-07/0.0719, allocations: 0 / 297.7 MB, free: 9.566 MB / 298.7 MB Notification: Performance of Templates: time 0.02197/0.09387, allocations: 15.77 MB / 313.5 MB, free: 10.08 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_QuasiStatic/DCPM_QuasiStatic.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.771481371484697]