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.0008891/0.0008891, allocations: 84.25 kB / 22.21 MB, free: 2.285 MB / 18.57 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.0009159/0.0009159, allocations: 161.2 kB / 25.61 MB, free: 8.891 MB / 18.57 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 1.021/1.021, allocations: 177 MB / 205.9 MB, free: 4.457 MB / 186.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.363e-06/1.363e-06, allocations: 0 / 274.1 MB, free: 4.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.582e-05/1.718e-05, allocations: 3.812 kB / 274.1 MB, free: 4.266 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic): time 0.008655/0.008672, allocations: 11.37 MB / 285.5 MB, free: 8.844 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00479/0.01346, allocations: 3.191 MB / 288.7 MB, free: 5.652 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005688/0.01403, allocations: 43.81 kB / 288.7 MB, free: 5.609 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001091/0.01512, allocations: 0.6245 MB / 289.4 MB, free: 4.98 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001001/0.01612, allocations: 0.7558 MB / 290.1 MB, free: 4.219 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005077/0.01663, allocations: 407.4 kB / 290.5 MB, free: 3.82 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001591/0.01822, allocations: 2.338 MB / 292.9 MB, free: 1.477 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006808/0.0189, allocations: 0.6029 MB / 293.5 MB, free: 0.8203 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00116/0.02006, allocations: 1.337 MB / 294.8 MB, free: 15.48 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006867/0.02075, allocations: 0.7126 MB / 295.5 MB, free: 14.77 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001919/0.02094, allocations: 216 kB / 295.7 MB, free: 14.55 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002671/0.02121, allocations: 248 kB / 296 MB, free: 14.31 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002203/0.02143, allocations: 438.3 kB / 296.4 MB, free: 13.88 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000481/0.02191, allocations: 0.6976 MB / 297.1 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00105/0.02296, allocations: 1.385 MB / 298.5 MB, free: 11.79 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.846e-06/0.02296, allocations: 0 / 298.5 MB, free: 11.79 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.82e-07/0.02296, allocations: 0 / 298.5 MB, free: 11.79 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.979e-05/0.02298, allocations: 3.984 kB / 298.5 MB, free: 11.79 MB / 282.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.002/0.02498, allocations: 2.154 MB / 300.6 MB, free: 9.578 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.983e-05/0.02501, allocations: 12.03 kB / 300.6 MB, free: 9.566 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005113/0.02552, allocations: 387.6 kB / 301 MB, free: 9.188 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008967/0.02642, allocations: 0.9401 MB / 302 MB, free: 8.211 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.925e-05/0.02648, allocations: 115.5 kB / 302.1 MB, free: 8.098 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001354/0.02662, allocations: 172.2 kB / 302.2 MB, free: 7.93 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001029/0.02764, allocations: 1.197 MB / 303.4 MB, free: 6.613 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.394e-05/0.02768, allocations: 4 kB / 303.4 MB, free: 6.609 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.297e-05/0.02775, allocations: 64 kB / 303.5 MB, free: 6.547 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.461e-05/0.02778, allocations: 36 kB / 303.5 MB, free: 6.512 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005092/0.02828, allocations: 446 kB / 304 MB, free: 6.066 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004375/0.03266, allocations: 6.473 MB / 310.4 MB, free: 15.24 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002954/0.03295, allocations: 253.3 kB / 310.7 MB, free: 14.98 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000132/0.03309, allocations: 116 kB / 310.8 MB, free: 14.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.49e-05/0.03311, allocations: 12.44 kB / 310.8 MB, free: 14.85 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000227/0.03334, allocations: 263.3 kB / 311.1 MB, free: 14.55 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 1.934e-06/0.03334, allocations: 0 / 311.1 MB, free: 14.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=56): time 0.001182/0.03452, allocations: 1.013 MB / 312.1 MB, free: 13.51 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.912e-05/0.03458, allocations: 162.7 kB / 312.2 MB, free: 13.31 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007184/0.0353, allocations: 1.047 MB / 313.3 MB, free: 12.25 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.622e-05/0.03533, allocations: 33.7 kB / 313.3 MB, free: 12.21 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004788/0.03581, allocations: 0.9733 MB / 314.3 MB, free: 11.22 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/0.03594, allocations: 210.2 kB / 314.5 MB, free: 11.02 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001814/0.03612, allocations: 232.3 kB / 314.7 MB, free: 10.78 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.03627, allocations: 0.5198 MB / 315.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001339/0.0364, allocations: 124.2 kB / 315.4 MB, free: 10.12 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005181/0.03692, allocations: 1.048 MB / 316.4 MB, free: 8.672 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007225/0.03764, allocations: 1.136 MB / 317.6 MB, free: 7.164 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.03765, allocations: 4 kB / 317.6 MB, free: 7.16 MB / 298.7 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.0008972/0.03855, allocations: 0.9841 MB / 318.5 MB, free: 6.152 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.255e-05/0.03858, allocations: 37.7 kB / 318.6 MB, free: 6.109 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/0.03859, allocations: 20 kB / 318.6 MB, free: 6.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001404/0.03873, allocations: 67.34 kB / 318.7 MB, free: 6.016 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000437/0.03917, allocations: 267.8 kB / 318.9 MB, free: 5.754 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001385/0.04056, allocations: 3.453 MB / 322.4 MB, free: 2.074 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003966/0.04095, allocations: 64.19 kB / 322.4 MB, free: 2.012 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.443e-05/0.041, allocations: 59.98 kB / 322.5 MB, free: 1.953 MB / 298.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.0002264/0.04122, allocations: 244 kB / 322.7 MB, free: 1.703 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001052/0.04133, allocations: 135.2 kB / 322.9 MB, free: 1.57 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004061/0.04174, allocations: 408.5 kB / 323.3 MB, free: 1.145 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.04174, allocations: 8 kB / 323.3 MB, free: 1.137 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.984e-06/0.04174, allocations: 0 / 323.3 MB, free: 1.137 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.633e-06/0.04175, allocations: 11.86 kB / 323.3 MB, free: 1.125 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001208/0.04296, allocations: 1.301 MB / 324.6 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.04296, allocations: 4 kB / 324.6 MB, free: 15.71 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000227/0.04319, allocations: 103.8 kB / 324.7 MB, free: 15.61 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.102e-05/0.04328, allocations: 47.36 kB / 324.7 MB, free: 15.55 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.822e-05/0.0433, allocations: 12 kB / 324.8 MB, free: 15.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001209/0.0445, allocations: 3.423 MB / 328.2 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.957e-06/0.04451, allocations: 7.938 kB / 328.2 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005586/0.04507, allocations: 0.7752 MB / 329 MB, free: 11.02 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001975/0.04526, allocations: 167.1 kB / 329.1 MB, free: 10.86 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.176e-05/0.04535, allocations: 27.86 kB / 329.2 MB, free: 10.83 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002382/0.04558, allocations: 19.98 kB / 329.2 MB, free: 10.81 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.562e-05/0.04565, allocations: 47.92 kB / 329.2 MB, free: 10.76 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.931e-05/0.04567, allocations: 19.94 kB / 329.2 MB, free: 10.74 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004175/0.04609, allocations: 0.5752 MB / 329.8 MB, free: 10.16 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04609, allocations: 3.938 kB / 329.8 MB, free: 10.16 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00063/0.04672, allocations: 300 kB / 330.1 MB, free: 9.863 MB / 314.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.000198/0.04692, allocations: 134.7 kB / 330.2 MB, free: 9.723 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007301/0.04765, allocations: 0.8756 MB / 331.1 MB, free: 8.801 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.04765, allocations: 0 / 331.1 MB, free: 8.801 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003082/0.04796, allocations: 497.2 kB / 331.6 MB, free: 8.277 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000799/0.04875, allocations: 311.9 kB / 331.9 MB, free: 7.992 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002594/0.05135, allocations: 2.382 MB / 334.3 MB, free: 5.496 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001522/0.0515, allocations: 232.2 kB / 334.5 MB, free: 5.242 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002836/0.05178, allocations: 150.1 kB / 334.7 MB, free: 5.094 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000433/0.05222, allocations: 378 kB / 335 MB, free: 4.723 MB / 314.7 MB Notification: Performance of SimCode: time 9.82e-07/0.05222, allocations: 0 / 335 MB, free: 4.723 MB / 314.7 MB Notification: Performance of Templates: time 0.0198/0.07201, allocations: 15.88 MB / 350.9 MB, free: 5.094 MB / 330.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 -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.327623418997973]