Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.0008852/0.0008852, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001273/0.002158, allocations: 453.8 kB / 10.46 MB, free: 236 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.0009893/0.0009893, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001187/0.002176, allocations: 483.5 kB / 11.83 MB, free: 2.336 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.9833/0.9833, allocations: 158.6 MB / 171.2 MB, free: 2.512 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.161/1.144, allocations: 49.5 MB / 220.7 MB, free: 1.359 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_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.834e-06/1.834e-06, allocations: 0 / 222 MB, free: 68 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.245e-05/2.429e-05, allocations: 9.406 kB / 222 MB, free: 60 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.01165/0.01167, allocations: 11.43 MB / 233.4 MB, free: 4.562 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.007046/0.01872, allocations: 3.312 MB / 236.7 MB, free: 1.234 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001837/0.02055, allocations: 43.81 kB / 236.8 MB, free: 1.191 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002042/0.02259, allocations: 0.64 MB / 237.4 MB, free: 0.5469 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002263/0.02486, allocations: 0.7636 MB / 238.2 MB, free: 15.77 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001023/0.02588, allocations: 403.5 kB / 238.6 MB, free: 15.38 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.002801/0.02868, allocations: 2.345 MB / 240.9 MB, free: 13.03 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009901/0.02967, allocations: 0.6379 MB / 241.6 MB, free: 12.33 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00231/0.03198, allocations: 1.505 MB / 243.1 MB, free: 10.8 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001022/0.033, allocations: 0.7089 MB / 243.8 MB, free: 10.09 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002843/0.03329, allocations: 212 kB / 244 MB, free: 9.887 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004927/0.03378, allocations: 255.9 kB / 244.2 MB, free: 9.637 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002367/0.03402, allocations: 330.9 kB / 244.6 MB, free: 9.312 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006933/0.03471, allocations: 0.5888 MB / 245.1 MB, free: 8.723 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001841/0.03655, allocations: 1.319 MB / 246.5 MB, free: 7.398 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.627e-05/0.03657, allocations: 4 kB / 246.5 MB, free: 7.395 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.03657, allocations: 4 kB / 246.5 MB, free: 7.391 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.698e-05/0.03661, allocations: 0 / 246.5 MB, free: 7.391 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.002759/0.03937, allocations: 2.36 MB / 248.8 MB, free: 4.988 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.0394, allocations: 12.03 kB / 248.8 MB, free: 4.977 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006667/0.04007, allocations: 405.7 kB / 249.2 MB, free: 4.562 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001227/0.0413, allocations: 0.7372 MB / 250 MB, free: 3.793 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.123e-05/0.04138, allocations: 115.5 kB / 250.1 MB, free: 3.68 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001732/0.04155, allocations: 160.3 kB / 250.2 MB, free: 3.523 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001385/0.04294, allocations: 1.177 MB / 251.4 MB, free: 2.246 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.078e-05/0.04299, allocations: 11.97 kB / 251.4 MB, free: 2.234 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.425e-05/0.04307, allocations: 64 kB / 251.5 MB, free: 2.172 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.322e-05/0.04311, allocations: 40 kB / 251.5 MB, free: 2.133 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006043/0.04371, allocations: 390.2 kB / 251.9 MB, free: 1.742 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00482/0.04853, allocations: 5.124 MB / 257 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003064/0.04884, allocations: 224.9 kB / 257.3 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001352/0.04897, allocations: 106.3 kB / 257.4 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.036e-05/0.049, allocations: 8.5 kB / 257.4 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000261/0.04926, allocations: 257.1 kB / 257.6 MB, free: 11.66 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 2.424e-06/0.04926, allocations: 0 / 257.6 MB, free: 11.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001742/0.05101, allocations: 0.9575 MB / 258.6 MB, free: 10.67 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.064e-05/0.05106, allocations: 63.89 kB / 258.6 MB, free: 10.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007594/0.05182, allocations: 0.9585 MB / 259.6 MB, free: 9.621 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.316e-05/0.05185, allocations: 37.7 kB / 259.6 MB, free: 9.578 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005763/0.05243, allocations: 0.7812 MB / 260.4 MB, free: 8.789 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001058/0.05253, allocations: 210.2 kB / 260.6 MB, free: 8.582 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001798/0.05271, allocations: 230.7 kB / 260.9 MB, free: 8.352 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.05281, allocations: 349.8 kB / 261.2 MB, free: 8.004 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001193/0.05293, allocations: 120.3 kB / 261.3 MB, free: 7.879 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004447/0.05338, allocations: 0.7999 MB / 262.1 MB, free: 6.773 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000662/0.05404, allocations: 0.9648 MB / 263.1 MB, free: 5.535 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.082e-06/0.05405, allocations: 4 kB / 263.1 MB, free: 5.531 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0007609/0.05481, allocations: 0.8044 MB / 263.9 MB, free: 4.707 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.736e-05/0.05486, allocations: 37.7 kB / 263.9 MB, free: 4.664 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.949e-05/0.05488, allocations: 20 kB / 263.9 MB, free: 4.645 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001824/0.05507, allocations: 61.69 kB / 264 MB, free: 4.578 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005248/0.05559, allocations: 303.7 kB / 264.3 MB, free: 4.281 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001335/0.05693, allocations: 2.348 MB / 266.6 MB, free: 1.758 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005166/0.05744, allocations: 64.19 kB / 266.7 MB, free: 1.695 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.426e-05/0.05749, allocations: 52 kB / 266.8 MB, free: 1.645 MB / 266.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.0002519/0.05774, allocations: 201.3 kB / 267 MB, free: 1.438 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.12e-05/0.05782, allocations: 83.84 kB / 267 MB, free: 1.355 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003684/0.05819, allocations: 343.9 kB / 267.4 MB, free: 1 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/0.05819, allocations: 4 kB / 267.4 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.0582, allocations: 4 kB / 267.4 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.0582, allocations: 0 / 267.4 MB, free: 0.9922 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001157/0.05936, allocations: 1.02 MB / 268.4 MB, free: 15.89 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.05936, allocations: 4 kB / 268.4 MB, free: 15.89 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002696/0.05963, allocations: 119.8 kB / 268.5 MB, free: 15.77 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001817/0.05981, allocations: 111.2 kB / 268.6 MB, free: 15.66 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001019/0.05992, allocations: 33.7 kB / 268.7 MB, free: 15.62 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.224e-05/0.05994, allocations: 24.16 kB / 268.7 MB, free: 15.6 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009754/0.06091, allocations: 2.305 MB / 271 MB, free: 13.12 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.839e-06/0.06092, allocations: 15.97 kB / 271 MB, free: 13.11 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004633/0.06138, allocations: 0.5644 MB / 271.6 MB, free: 12.47 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.556e-05/0.06146, allocations: 16 kB / 271.6 MB, free: 12.46 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002276/0.06168, allocations: 23.98 kB / 271.6 MB, free: 12.43 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.105e-05/0.06176, allocations: 55.8 kB / 271.7 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.691e-05/0.06177, allocations: 19.98 kB / 271.7 MB, free: 12.36 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003783/0.06215, allocations: 463.5 kB / 272.1 MB, free: 11.9 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.06215, allocations: 0 / 272.1 MB, free: 11.9 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000851/0.063, allocations: 296 kB / 272.4 MB, free: 11.61 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.0002616/0.06326, allocations: 128.2 kB / 272.6 MB, free: 11.47 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000752/0.06402, allocations: 0.7726 MB / 273.3 MB, free: 10.66 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.865e-05/0.06405, allocations: 29.8 kB / 273.4 MB, free: 10.63 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004743/0.06453, allocations: 411.1 kB / 273.8 MB, free: 10.2 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001738/0.06627, allocations: 3.087 MB / 276.8 MB, free: 6.516 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01349/0.07975, allocations: 2.418 MB / 279.3 MB, free: 4 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001915/0.07995, allocations: 244.2 kB / 279.5 MB, free: 3.738 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004171/0.08036, allocations: 154.2 kB / 279.7 MB, free: 3.586 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004282/0.08079, allocations: 329 kB / 280 MB, free: 3.262 MB / 282.7 MB Notification: Performance of SimCode: time 1.593e-06/0.08079, allocations: 0 / 280 MB, free: 3.262 MB / 282.7 MB Notification: Performance of Templates: time 0.1299/0.2107, allocations: 15.8 MB / 295.8 MB, free: 47.17 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary_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_QuasiStationary/DCPM_QuasiStationary.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: 3.189707312732935]