Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001084/0.001084, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001438/0.002522, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001047/0.001047, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0013/0.002347, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9574/0.9574, allocations: 177.4 MB / 189.9 MB, free: 4.836 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08391/1.041, allocations: 53.86 MB / 243.7 MB, free: 14.91 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 245 MB, free: 13.64 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.826e-05/1.984e-05, allocations: 2.312 kB / 245 MB, free: 13.64 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.01231/0.01233, allocations: 11.49 MB / 256.5 MB, free: 2.094 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004869/0.0172, allocations: 3.339 MB / 259.9 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003916/0.01759, allocations: 43.81 kB / 259.9 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000825/0.01841, allocations: 0.6478 MB / 260.5 MB, free: 14.05 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007924/0.0192, allocations: 0.7519 MB / 261.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004011/0.01961, allocations: 407.4 kB / 261.7 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001311/0.02092, allocations: 2.342 MB / 264 MB, free: 10.54 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005909/0.02151, allocations: 0.6302 MB / 264.7 MB, free: 9.844 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0011/0.02261, allocations: 1.508 MB / 266.2 MB, free: 8.312 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005548/0.02316, allocations: 0.7167 MB / 266.9 MB, free: 7.594 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001586/0.02332, allocations: 216 kB / 267.1 MB, free: 7.383 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002788/0.0236, allocations: 259.9 kB / 267.4 MB, free: 7.129 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001772/0.02378, allocations: 326.9 kB / 267.7 MB, free: 6.809 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004159/0.02419, allocations: 0.5927 MB / 268.3 MB, free: 6.215 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009414/0.02513, allocations: 1.319 MB / 269.6 MB, free: 4.891 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.403e-05/0.02515, allocations: 0 / 269.6 MB, free: 4.891 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.91e-07/0.02515, allocations: 0 / 269.6 MB, free: 4.891 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.048e-05/0.02517, allocations: 0 / 269.6 MB, free: 4.891 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.002098/0.02727, allocations: 2.371 MB / 272 MB, free: 2.477 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.82e-05/0.0273, allocations: 8.625 kB / 272 MB, free: 2.469 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004387/0.02773, allocations: 401.8 kB / 272.4 MB, free: 2.059 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007836/0.02852, allocations: 0.7411 MB / 273.1 MB, free: 1.285 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.439e-05/0.02857, allocations: 111.5 kB / 273.2 MB, free: 1.176 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002363/0.02881, allocations: 168.3 kB / 273.4 MB, free: 1.012 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09714/0.1259, allocations: 1.171 MB / 274.5 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.986e-05/0.126, allocations: 3.469 kB / 274.5 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.106e-05/0.1261, allocations: 66.08 kB / 274.6 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.475e-05/0.1261, allocations: 36.81 kB / 274.6 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006402/0.1267, allocations: 387.7 kB / 275 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004448/0.1312, allocations: 5.125 MB / 280.2 MB, free: 9.121 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003314/0.1315, allocations: 222.3 kB / 280.4 MB, free: 9.098 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001409/0.1317, allocations: 105.4 kB / 280.5 MB, free: 9.09 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.511e-05/0.1317, allocations: 9.688 kB / 280.5 MB, free: 9.086 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002564/0.1319, allocations: 251 kB / 280.7 MB, free: 8.945 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 3.657e-06/0.1319, allocations: 3.469 kB / 280.7 MB, free: 8.945 MB / 266.7 MB Notification: Performance of matching and sorting (n=56): time 0.001511/0.1335, allocations: 0.9392 MB / 281.7 MB, free: 8.68 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.468e-05/0.1335, allocations: 63.22 kB / 281.7 MB, free: 8.617 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008176/0.1343, allocations: 0.9637 MB / 282.7 MB, free: 8.441 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.493e-05/0.1343, allocations: 36.02 kB / 282.7 MB, free: 8.41 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003504/0.1347, allocations: 0.7809 MB / 283.5 MB, free: 8.027 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.998e-05/0.1348, allocations: 214.8 kB / 283.7 MB, free: 7.906 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001665/0.135, allocations: 223.8 kB / 283.9 MB, free: 7.875 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 5.378e-05/0.135, allocations: 357.5 kB / 284.3 MB, free: 7.566 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/0.1351, allocations: 122.8 kB / 284.4 MB, free: 7.531 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003073/0.1354, allocations: 0.8033 MB / 285.2 MB, free: 6.652 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005445/0.136, allocations: 0.9005 MB / 286.1 MB, free: 5.938 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.278e-06/0.136, allocations: 5.812 kB / 286.1 MB, free: 5.938 MB / 266.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0008206/0.1368, allocations: 0.8021 MB / 286.9 MB, free: 5.805 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.33e-05/0.1368, allocations: 40.98 kB / 287 MB, free: 5.773 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.133e-05/0.1369, allocations: 18.81 kB / 287 MB, free: 5.773 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001432/0.137, allocations: 64.97 kB / 287 MB, free: 5.754 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000539/0.1375, allocations: 308.4 kB / 287.3 MB, free: 5.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007782/0.1383, allocations: 2.341 MB / 289.7 MB, free: 3.496 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004651/0.1388, allocations: 64.61 kB / 289.7 MB, free: 3.488 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.585e-05/0.1388, allocations: 53.97 kB / 289.8 MB, free: 3.488 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.0002008/0.139, allocations: 202.5 kB / 290 MB, free: 3.355 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.256e-05/0.1391, allocations: 90.77 kB / 290.1 MB, free: 3.352 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003575/0.1395, allocations: 331.2 kB / 290.4 MB, free: 3.277 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.1395, allocations: 9.438 kB / 290.4 MB, free: 3.273 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.1395, allocations: 1.375 kB / 290.4 MB, free: 3.273 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.1395, allocations: 2.906 kB / 290.4 MB, free: 3.273 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001049/0.1405, allocations: 1.002 MB / 291.4 MB, free: 2.918 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.1405, allocations: 3.75 kB / 291.4 MB, free: 2.918 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000262/0.1408, allocations: 128.6 kB / 291.6 MB, free: 2.91 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000169/0.141, allocations: 113.9 kB / 291.7 MB, free: 2.844 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.782e-05/0.1411, allocations: 42.28 kB / 291.7 MB, free: 2.824 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.634e-05/0.1411, allocations: 13.94 kB / 291.7 MB, free: 2.824 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006027/0.1417, allocations: 2.317 MB / 294 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.1417, allocations: 6.797 kB / 294 MB, free: 0.5664 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003932/0.1421, allocations: 0.5686 MB / 294.6 MB, free: 288 kB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.887e-05/0.1422, allocations: 18.92 kB / 294.6 MB, free: 288 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002097/0.1424, allocations: 30.77 kB / 294.7 MB, free: 284 kB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.395e-05/0.1424, allocations: 53.95 kB / 294.7 MB, free: 280 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.391e-05/0.1424, allocations: 14.28 kB / 294.7 MB, free: 280 kB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002991/0.1427, allocations: 465.4 kB / 295.2 MB, free: 232 kB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1427, allocations: 0 / 295.2 MB, free: 232 kB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006774/0.1434, allocations: 303 kB / 295.5 MB, free: 228 kB / 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.0001561/0.1436, allocations: 112.9 kB / 295.6 MB, free: 156 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005815/0.1442, allocations: 0.7503 MB / 296.3 MB, free: 15.82 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.459e-05/0.1442, allocations: 29.84 kB / 296.4 MB, free: 15.81 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002082/0.1444, allocations: 379.5 kB / 296.7 MB, free: 15.57 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007147/0.1451, allocations: 421 kB / 297.2 MB, free: 15.53 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0134/0.1585, allocations: 2.421 MB / 299.6 MB, free: 14.26 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001977/0.1587, allocations: 240 kB / 299.8 MB, free: 14.17 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004424/0.1592, allocations: 153 kB / 300 MB, free: 14.13 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003887/0.1595, allocations: 328.1 kB / 300.3 MB, free: 14.07 MB / 282.7 MB Notification: Performance of SimCode: time 1.272e-06/0.1595, allocations: 0 / 300.3 MB, free: 14.07 MB / 282.7 MB Notification: Performance of Templates: time 0.02216/0.1817, allocations: 16.37 MB / 316.7 MB, free: 136 kB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 3.010327285155654]