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.0008946/0.0008946, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.006631/0.007526, 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.0009165/0.0009165, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.004262/0.005179, 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.8829/0.8829, allocations: 158.6 MB / 171.1 MB, free: 2.578 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1398/1.023, 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_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.142e-06/1.142e-06, allocations: 0 / 221.8 MB, free: 176 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.076e-05/2.19e-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_QuasiStationary): time 0.01061/0.01063, allocations: 11.44 MB / 233.3 MB, free: 4.672 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.005874/0.0165, allocations: 3.308 MB / 236.6 MB, free: 1.352 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006849/0.01719, allocations: 39.81 kB / 236.6 MB, free: 1.312 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001107/0.01829, allocations: 0.6439 MB / 237.3 MB, free: 0.6641 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001079/0.01937, allocations: 0.7674 MB / 238 MB, free: 15.89 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005888/0.01996, allocations: 399.5 kB / 238.4 MB, free: 15.5 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001848/0.02181, allocations: 2.344 MB / 240.8 MB, free: 13.15 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006946/0.0225, allocations: 0.634 MB / 241.4 MB, free: 12.45 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00148/0.02398, allocations: 1.501 MB / 242.9 MB, free: 10.93 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006967/0.02468, allocations: 0.7128 MB / 243.6 MB, free: 10.21 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002023/0.02488, allocations: 212 kB / 243.8 MB, free: 10.01 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002942/0.02518, allocations: 255.9 kB / 244.1 MB, free: 9.758 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001758/0.02535, allocations: 330.9 kB / 244.4 MB, free: 9.434 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000472/0.02582, allocations: 0.5888 MB / 245 MB, free: 8.844 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001037/0.02686, allocations: 1.323 MB / 246.3 MB, free: 7.516 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.422e-05/0.02688, allocations: 4 kB / 246.3 MB, free: 7.512 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.02688, allocations: 0 / 246.3 MB, free: 7.512 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.426e-05/0.02691, allocations: 3.938 kB / 246.3 MB, free: 7.508 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.00213/0.02904, allocations: 2.356 MB / 248.7 MB, free: 5.109 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.877e-05/0.02907, allocations: 8.031 kB / 248.7 MB, free: 5.102 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004755/0.02955, allocations: 409.7 kB / 249.1 MB, free: 4.684 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008845/0.03043, allocations: 0.7411 MB / 249.8 MB, free: 3.91 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.96e-05/0.03049, allocations: 115.5 kB / 249.9 MB, free: 3.797 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001258/0.03062, allocations: 160.3 kB / 250.1 MB, free: 3.641 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009529/0.03157, allocations: 1.174 MB / 251.3 MB, free: 2.367 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.414e-05/0.0316, allocations: 7.984 kB / 251.3 MB, free: 2.359 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.915e-05/0.03166, allocations: 68 kB / 251.3 MB, free: 2.293 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.222e-05/0.03168, allocations: 40 kB / 251.4 MB, free: 2.254 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004249/0.03211, allocations: 398.2 kB / 251.8 MB, free: 1.855 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003878/0.03599, allocations: 5.124 MB / 256.9 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002725/0.03626, allocations: 216.9 kB / 257.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001161/0.03638, allocations: 106.3 kB / 257.2 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.652e-05/0.0364, allocations: 12.5 kB / 257.2 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002044/0.03661, allocations: 249.1 kB / 257.5 MB, free: 11.78 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.453e-06/0.03661, allocations: 0 / 257.5 MB, free: 11.78 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001136/0.03774, allocations: 0.9458 MB / 258.4 MB, free: 10.8 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.021e-05/0.03777, allocations: 55.91 kB / 258.5 MB, free: 10.73 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006387/0.03841, allocations: 0.9702 MB / 259.4 MB, free: 9.75 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.37e-05/0.03844, allocations: 33.7 kB / 259.5 MB, free: 9.711 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005733/0.03901, allocations: 0.7773 MB / 260.2 MB, free: 8.926 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.03912, allocations: 214.2 kB / 260.5 MB, free: 8.715 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001498/0.03927, allocations: 222.7 kB / 260.7 MB, free: 8.492 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.125e-05/0.03935, allocations: 357.8 kB / 261 MB, free: 8.137 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001015/0.03945, allocations: 120.3 kB / 261.1 MB, free: 8.012 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003574/0.03981, allocations: 0.8038 MB / 261.9 MB, free: 6.902 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000538/0.04034, allocations: 0.8985 MB / 262.8 MB, free: 5.734 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.214e-06/0.04035, allocations: 4 kB / 262.8 MB, free: 5.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0006791/0.04103, allocations: 0.8121 MB / 263.7 MB, free: 4.891 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.703e-05/0.04107, allocations: 37.7 kB / 263.7 MB, free: 4.848 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.607e-05/0.04108, allocations: 20 kB / 263.7 MB, free: 4.828 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001177/0.0412, allocations: 61.7 kB / 263.8 MB, free: 4.762 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004573/0.04166, allocations: 307.8 kB / 264.1 MB, free: 4.461 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009221/0.04258, allocations: 2.344 MB / 266.4 MB, free: 1.941 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003586/0.04294, allocations: 63.97 kB / 266.5 MB, free: 1.879 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.008e-05/0.04298, allocations: 55.94 kB / 266.5 MB, free: 1.824 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.0003863/0.04336, allocations: 197.3 kB / 266.7 MB, free: 1.621 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.405e-05/0.04344, allocations: 87.84 kB / 266.8 MB, free: 1.535 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003214/0.04376, allocations: 339.9 kB / 267.1 MB, free: 1.191 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.04376, allocations: 4 kB / 267.1 MB, free: 1.188 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.04377, allocations: 0 / 267.1 MB, free: 1.188 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.04377, allocations: 7.984 kB / 267.2 MB, free: 1.18 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009337/0.04471, allocations: 1.008 MB / 268.2 MB, free: 92 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.04471, allocations: 4 kB / 268.2 MB, free: 88 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002396/0.04495, allocations: 119.8 kB / 268.3 MB, free: 15.97 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001598/0.04511, allocations: 115.2 kB / 268.4 MB, free: 15.86 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.516e-05/0.04519, allocations: 38 kB / 268.4 MB, free: 15.81 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.761e-05/0.04521, allocations: 19.94 kB / 268.5 MB, free: 15.79 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008814/0.04609, allocations: 2.317 MB / 270.8 MB, free: 13.3 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/0.0461, allocations: 7.938 kB / 270.8 MB, free: 13.3 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004525/0.04655, allocations: 0.5644 MB / 271.3 MB, free: 12.66 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.295e-05/0.04662, allocations: 16 kB / 271.4 MB, free: 12.64 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002003/0.04682, allocations: 23.98 kB / 271.4 MB, free: 12.62 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.782e-05/0.0469, allocations: 55.78 kB / 271.4 MB, free: 12.57 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.04692, allocations: 20.03 kB / 271.5 MB, free: 12.55 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003413/0.04726, allocations: 459.5 kB / 271.9 MB, free: 12.09 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.04726, allocations: 0 / 271.9 MB, free: 12.09 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005401/0.0478, allocations: 304 kB / 272.2 MB, free: 11.79 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.0001425/0.04794, allocations: 116.2 kB / 272.3 MB, free: 11.67 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.000556/0.0485, allocations: 0.7534 MB / 273.1 MB, free: 10.87 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.178e-05/0.04853, allocations: 26.81 kB / 273.1 MB, free: 10.85 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002155/0.04874, allocations: 382.6 kB / 273.5 MB, free: 10.45 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009157/0.04966, allocations: 412.3 kB / 273.9 MB, free: 10.05 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01278/0.06244, allocations: 2.418 MB / 276.3 MB, free: 7.543 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001662/0.06261, allocations: 240.2 kB / 276.5 MB, free: 7.281 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0003311/0.06294, allocations: 158.1 kB / 276.7 MB, free: 7.125 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003965/0.06334, allocations: 325.1 kB / 277 MB, free: 6.809 MB / 282.7 MB Notification: Performance of SimCode: time 1.032e-06/0.06334, allocations: 0 / 277 MB, free: 6.809 MB / 282.7 MB Notification: Performance of Templates: time 0.1202/0.1835, allocations: 16.38 MB / 293.4 MB, free: 47.68 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.047085070051253]