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.0009176/0.0009176, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001262/0.00218, allocations: 449.7 kB / 10.37 MB, free: 332 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.0008697/0.0008697, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001186/0.002056, allocations: 459.6 kB / 11.69 MB, free: 2.48 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.928/0.928, allocations: 173.4 MB / 185.8 MB, free: 8.996 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08135/1.009, allocations: 52.5 MB / 238.3 MB, free: 4.434 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.563e-06/1.563e-06, allocations: 3.938 kB / 239.6 MB, free: 3.176 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.239e-05/2.396e-05, allocations: 7.859 kB / 239.6 MB, free: 3.168 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.008654/0.008678, allocations: 11.46 MB / 251 MB, free: 7.656 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004441/0.01312, allocations: 3.315 MB / 254.3 MB, free: 4.332 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004507/0.01357, allocations: 43.81 kB / 254.4 MB, free: 4.289 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008933/0.01446, allocations: 0.6478 MB / 255 MB, free: 3.637 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008523/0.01532, allocations: 0.7597 MB / 255.8 MB, free: 2.871 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004094/0.01572, allocations: 411.4 kB / 256.2 MB, free: 2.469 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.001336/0.01706, allocations: 2.346 MB / 258.5 MB, free: 116 kB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005858/0.01765, allocations: 0.6263 MB / 259.2 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00107/0.01872, allocations: 1.501 MB / 260.7 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005668/0.01928, allocations: 0.7127 MB / 261.4 MB, free: 13.18 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001554/0.01944, allocations: 216 kB / 261.6 MB, free: 12.97 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002643/0.0197, allocations: 251.9 kB / 261.8 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001751/0.01988, allocations: 330.9 kB / 262.2 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004275/0.02031, allocations: 0.5927 MB / 262.8 MB, free: 11.81 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009685/0.02127, allocations: 1.319 MB / 264.1 MB, free: 10.48 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.498e-05/0.02129, allocations: 4 kB / 264.1 MB, free: 10.48 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.02129, allocations: 0 / 264.1 MB, free: 10.48 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.454e-05/0.02131, allocations: 0 / 264.1 MB, free: 10.48 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.002011/0.02333, allocations: 2.367 MB / 266.4 MB, free: 8.07 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.77e-05/0.02335, allocations: 12.03 kB / 266.5 MB, free: 8.059 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004366/0.02379, allocations: 397.8 kB / 266.8 MB, free: 7.652 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009002/0.02469, allocations: 0.7295 MB / 267.6 MB, free: 6.891 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.665e-05/0.02475, allocations: 115.5 kB / 267.7 MB, free: 6.777 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001145/0.02486, allocations: 164.3 kB / 267.8 MB, free: 6.617 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008908/0.02575, allocations: 1.178 MB / 269 MB, free: 5.34 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.629e-05/0.02579, allocations: 19.88 kB / 269 MB, free: 5.32 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.949e-05/0.02585, allocations: 60 kB / 269.1 MB, free: 5.262 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.192e-05/0.02587, allocations: 40 kB / 269.1 MB, free: 5.223 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004225/0.02629, allocations: 378.3 kB / 269.5 MB, free: 4.844 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1109/0.1372, allocations: 5.122 MB / 274.6 MB, free: 24.12 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003741/0.1376, allocations: 228.2 kB / 274.9 MB, free: 24.1 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001514/0.1377, allocations: 105.8 kB / 275 MB, free: 24.09 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.65e-05/0.1378, allocations: 9.766 kB / 275 MB, free: 24.09 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002695/0.138, allocations: 247.1 kB / 275.2 MB, free: 23.95 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 1.884e-06/0.138, allocations: 0 / 275.2 MB, free: 23.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001596/0.1396, allocations: 0.9425 MB / 276.2 MB, free: 23.76 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.04e-05/0.1397, allocations: 63.61 kB / 276.2 MB, free: 23.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000824/0.1405, allocations: 0.967 MB / 277.2 MB, free: 23.54 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.468e-05/0.1405, allocations: 35.86 kB / 277.2 MB, free: 23.51 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003306/0.1408, allocations: 0.7841 MB / 278 MB, free: 23.05 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.445e-05/0.1409, allocations: 213 kB / 278.2 MB, free: 22.91 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001616/0.1411, allocations: 223.8 kB / 278.4 MB, free: 22.88 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.07e-05/0.1411, allocations: 355.5 kB / 278.8 MB, free: 22.57 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001267/0.1413, allocations: 118 kB / 278.9 MB, free: 22.54 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003003/0.1416, allocations: 0.8032 MB / 279.7 MB, free: 21.66 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005605/0.1421, allocations: 0.8984 MB / 280.6 MB, free: 20.95 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.518e-06/0.1421, allocations: 6.062 kB / 280.6 MB, free: 20.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0008203/0.143, allocations: 0.8048 MB / 281.4 MB, free: 20.82 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.615e-05/0.143, allocations: 44.5 kB / 281.4 MB, free: 20.78 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.313e-05/0.143, allocations: 18.81 kB / 281.5 MB, free: 20.78 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001866/0.1432, allocations: 60.23 kB / 281.5 MB, free: 20.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006361/0.1439, allocations: 298.8 kB / 281.8 MB, free: 20.77 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007879/0.1446, allocations: 2.355 MB / 284.2 MB, free: 18.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004525/0.1451, allocations: 65.53 kB / 284.2 MB, free: 18.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.613e-05/0.1451, allocations: 54.94 kB / 284.3 MB, free: 18.5 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.0001929/0.1453, allocations: 199.6 kB / 284.5 MB, free: 18.37 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.672e-05/0.1454, allocations: 89.78 kB / 284.6 MB, free: 18.37 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003278/0.1457, allocations: 325.7 kB / 284.9 MB, free: 18.29 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.318e-06/0.1458, allocations: 10.53 kB / 284.9 MB, free: 18.29 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.1458, allocations: 0.8906 kB / 284.9 MB, free: 18.29 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.1458, allocations: 3.484 kB / 284.9 MB, free: 18.29 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001102/0.1469, allocations: 1.011 MB / 285.9 MB, free: 17.9 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/0.1469, allocations: 8.094 kB / 285.9 MB, free: 17.9 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000269/0.1471, allocations: 114.5 kB / 286 MB, free: 17.89 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001664/0.1473, allocations: 109.6 kB / 286.1 MB, free: 17.83 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.921e-05/0.1474, allocations: 42.95 kB / 286.2 MB, free: 17.81 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.829e-05/0.1474, allocations: 14.66 kB / 286.2 MB, free: 17.81 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006358/0.148, allocations: 2.321 MB / 288.5 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/0.1481, allocations: 4.219 kB / 288.5 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004958/0.1485, allocations: 0.5747 MB / 289.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.306e-05/0.1486, allocations: 16.19 kB / 289.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002128/0.1488, allocations: 24.81 kB / 289.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.849e-05/0.1489, allocations: 56.72 kB / 289.2 MB, free: 15.24 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.388e-05/0.1489, allocations: 14.91 kB / 289.2 MB, free: 15.24 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003533/0.1493, allocations: 465.5 kB / 289.7 MB, free: 15.19 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1493, allocations: 4 kB / 289.7 MB, free: 15.19 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0007301/0.15, allocations: 297.4 kB / 290 MB, free: 15.19 MB / 266.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.0001651/0.1502, allocations: 112 kB / 290.1 MB, free: 15.11 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005822/0.1507, allocations: 0.7667 MB / 290.8 MB, free: 14.7 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-05/0.1508, allocations: 21.06 kB / 290.9 MB, free: 14.7 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001983/0.151, allocations: 371 kB / 291.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007875/0.1518, allocations: 411.5 kB / 291.6 MB, free: 14.41 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01296/0.1647, allocations: 2.43 MB / 294 MB, free: 13.13 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001833/0.1649, allocations: 243.9 kB / 294.3 MB, free: 13.04 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004566/0.1654, allocations: 152.7 kB / 294.4 MB, free: 13 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005611/0.1659, allocations: 319.4 kB / 294.7 MB, free: 12.95 MB / 266.7 MB Notification: Performance of SimCode: time 1.463e-06/0.1659, allocations: 4 kB / 294.8 MB, free: 12.95 MB / 266.7 MB Notification: Performance of Templates: time 0.01984/0.1858, allocations: 16.36 MB / 311.1 MB, free: 15.41 MB / 282.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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9833453353494406]