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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,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=40000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.412/1.412, allocations: 221.5 MB / 230.3 MB, free: 7.578 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008834/0.0008834, allocations: 99.41 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.684e-05/1.686e-05, allocations: 4 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08642/0.08646, allocations: 50.42 MB / 387.5 MB, free: 7.582 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3056/0.3921, allocations: 95.01 MB / 482.5 MB, free: 15.84 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002681/0.3924, allocations: 75.95 kB / 482.6 MB, free: 15.77 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1311/0.5236, allocations: 40.24 MB / 0.5105 GB, free: 7.238 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.013e-06/0.5236, allocations: 0 / 0.5105 GB, free: 7.238 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.89e-05/0.5237, allocations: 32 kB / 0.5106 GB, free: 7.207 MB / 394.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.002537/0.5262, allocations: 1.562 MB / 0.5121 GB, free: 5.586 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.5263, allocations: 8.031 kB / 0.5121 GB, free: 5.578 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007247/0.527, allocations: 253.6 kB / 0.5123 GB, free: 5.328 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001756/0.5288, allocations: 1.094 MB / 0.5134 GB, free: 4.191 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.643e-05/0.5288, allocations: 48 kB / 0.5135 GB, free: 4.145 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001651/0.529, allocations: 91.91 kB / 0.5135 GB, free: 4.055 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001496/0.5305, allocations: 0.8223 MB / 0.5143 GB, free: 3.23 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002049/0.5326, allocations: 1.208 MB / 0.5155 GB, free: 1.949 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.631e-05/0.5326, allocations: 15.84 kB / 0.5155 GB, free: 1.934 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.561e-05/0.5327, allocations: 4 kB / 0.5155 GB, free: 1.93 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.78e-05/0.5327, allocations: 36 kB / 0.5156 GB, free: 1.895 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008105/0.5409, allocations: 6.354 MB / 0.5218 GB, free: 11.2 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006498/0.5416, allocations: 351.3 kB / 0.5221 GB, free: 10.84 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003095/0.5419, allocations: 188.8 kB / 0.5223 GB, free: 10.66 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.1e-05/0.5419, allocations: 4.438 kB / 0.5223 GB, free: 10.65 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004067/0.5423, allocations: 248.8 kB / 0.5225 GB, free: 10.39 MB / 410.7 MB Notification: Performance of pre-optimization done (n=50): time 3.216e-06/0.5424, allocations: 0 / 0.5225 GB, free: 10.39 MB / 410.7 MB Notification: Performance of matching and sorting (n=56): time 0.002479/0.5448, allocations: 1.506 MB / 0.524 GB, free: 8.816 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.719e-05/0.545, allocations: 188.5 kB / 0.5242 GB, free: 8.59 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001104/0.5461, allocations: 0.8477 MB / 0.525 GB, free: 7.73 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.52e-05/0.5461, allocations: 29.7 kB / 0.525 GB, free: 7.695 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006345/0.5468, allocations: 0.8781 MB / 0.5259 GB, free: 6.805 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001474/0.5469, allocations: 201.2 kB / 0.5261 GB, free: 6.605 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.828e-05/0.5469, allocations: 0 / 0.5261 GB, free: 6.605 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.5471, allocations: 349.9 kB / 0.5264 GB, free: 6.258 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003116/0.5474, allocations: 190.6 kB / 0.5266 GB, free: 6.07 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006788/0.5481, allocations: 0.7463 MB / 0.5273 GB, free: 5.043 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004903/0.5486, allocations: 337.8 kB / 0.5277 GB, free: 4.711 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.815e-06/0.5486, allocations: 7.938 kB / 0.5277 GB, free: 4.703 MB / 410.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001537/0.5502, allocations: 0.9456 MB / 0.5286 GB, free: 3.746 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.682e-05/0.5502, allocations: 41.7 kB / 0.5286 GB, free: 3.699 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.993e-05/0.5502, allocations: 20 kB / 0.5287 GB, free: 3.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000213/0.5505, allocations: 69.66 kB / 0.5287 GB, free: 3.605 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008068/0.5513, allocations: 271.5 kB / 0.529 GB, free: 3.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001745/0.553, allocations: 2.481 MB / 0.5314 GB, free: 0.6289 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009109/0.554, allocations: 44.05 kB / 0.5314 GB, free: 0.5859 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.798e-05/0.5541, allocations: 71.97 kB / 0.5315 GB, free: 0.5156 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000173/0.5542, allocations: 148.5 kB / 0.5317 GB, free: 372 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001395/0.5544, allocations: 118.5 kB / 0.5318 GB, free: 252 kB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008305/0.5552, allocations: 472.3 kB / 0.5322 GB, free: 15.77 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.5552, allocations: 4 kB / 0.5322 GB, free: 15.77 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.5552, allocations: 4 kB / 0.5322 GB, free: 15.76 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/0.5553, allocations: 3.984 kB / 0.5322 GB, free: 15.76 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002333/0.5576, allocations: 1.665 MB / 0.5339 GB, free: 13.99 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.291e-06/0.5576, allocations: 4 kB / 0.5339 GB, free: 13.99 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004327/0.5581, allocations: 99.89 kB / 0.534 GB, free: 13.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001448/0.5582, allocations: 50.16 kB / 0.534 GB, free: 13.84 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.919e-05/0.5583, allocations: 8 kB / 0.534 GB, free: 13.83 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001729/0.56, allocations: 2.446 MB / 0.5364 GB, free: 11.15 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.56, allocations: 8.25 kB / 0.5364 GB, free: 11.14 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001216/0.5612, allocations: 1.012 MB / 0.5374 GB, free: 9.988 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003601/0.5616, allocations: 227.7 kB / 0.5376 GB, free: 9.746 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000128/0.5617, allocations: 7.984 kB / 0.5376 GB, free: 9.738 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004921/0.5622, allocations: 27.98 kB / 0.5376 GB, free: 9.711 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.931e-05/0.5624, allocations: 51.83 kB / 0.5377 GB, free: 9.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.226e-05/0.5624, allocations: 23.98 kB / 0.5377 GB, free: 9.637 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009037/0.5633, allocations: 0.611 MB / 0.5383 GB, free: 9.02 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5633, allocations: 0 / 0.5383 GB, free: 9.02 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001246/0.5646, allocations: 276 kB / 0.5386 GB, free: 8.75 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004687/0.565, allocations: 284.3 kB / 0.5388 GB, free: 8.465 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001293/0.5663, allocations: 0.8132 MB / 0.5396 GB, free: 7.625 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.5664, allocations: 0.6875 kB / 0.5396 GB, free: 7.625 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005356/0.5669, allocations: 427.4 kB / 0.5401 GB, free: 7.188 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.5681, allocations: 270.4 kB / 0.5403 GB, free: 6.926 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003282/0.5714, allocations: 1.855 MB / 0.5421 GB, free: 4.984 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000786/0.5722, allocations: 1.205 MB / 0.5433 GB, free: 3.75 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000676/0.5729, allocations: 162.2 kB / 0.5435 GB, free: 3.59 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002058/0.5731, allocations: 83.42 kB / 0.5435 GB, free: 3.508 MB / 426.7 MB Notification: Performance of SimCode: time 6.11e-07/0.5731, allocations: 0 / 0.5435 GB, free: 3.508 MB / 426.7 MB Notification: Performance of Templates: time 0.2092/0.7823, allocations: 12.24 MB / 0.5555 GB, free: 112.6 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.pipe 2>&1) 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","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStatic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches