Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001063/0.001063, allocations: 181.7 kB / 16.39 MB, free: 5.762 MB / 13.93 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: 223.2 MB / 240.3 MB, free: 10.15 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009544/0.0009542, allocations: 86.86 kB / 291.5 MB, free: 10.73 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002591/0.0002592, allocations: 11.94 kB / 351.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2396/0.2399, allocations: 50.41 MB / 401.5 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1127/0.3526, allocations: 99.36 MB / 0.4891 GB, free: 13.08 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002422/0.3529, allocations: 91.95 kB / 0.4892 GB, free: 12.99 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2608/0.6137, allocations: 27.52 MB / 0.5161 GB, free: 93.39 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.6138, allocations: 3.938 kB / 0.5161 GB, free: 93.39 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001106/0.6139, allocations: 26.25 kB / 0.5161 GB, free: 93.39 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002817/0.6167, allocations: 1.315 MB / 0.5174 GB, free: 92.52 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.6168, allocations: 7.062 kB / 0.5174 GB, free: 92.52 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008174/0.6176, allocations: 191.6 kB / 0.5176 GB, free: 92.45 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002/0.6196, allocations: 0.8528 MB / 0.5184 GB, free: 91.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.105e-05/0.6197, allocations: 73.78 kB / 0.5185 GB, free: 91.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001879/0.6199, allocations: 93.19 kB / 0.5186 GB, free: 91.85 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001533/0.6214, allocations: 0.9336 MB / 0.5195 GB, free: 91.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.672e-05/0.6215, allocations: 7.812 kB / 0.5195 GB, free: 91.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.128e-05/0.6216, allocations: 39.41 kB / 0.5195 GB, free: 91.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.816e-05/0.6216, allocations: 27.09 kB / 0.5196 GB, free: 91.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001165/0.6228, allocations: 0.6195 MB / 0.5202 GB, free: 91.12 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00492/0.6277, allocations: 4.162 MB / 0.5242 GB, free: 88.04 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007912/0.6285, allocations: 375.7 kB / 0.5246 GB, free: 87.85 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.136e-05/0.6286, allocations: 7.875 kB / 0.5246 GB, free: 87.85 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.732e-05/0.6286, allocations: 42.55 kB / 0.5246 GB, free: 87.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 2.585e-06/0.6286, allocations: 0 / 0.5246 GB, free: 87.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.002074/0.6307, allocations: 1.296 MB / 0.5259 GB, free: 86.65 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.425e-05/0.6307, allocations: 81.11 kB / 0.526 GB, free: 86.55 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008681/0.6316, allocations: 0.7483 MB / 0.5267 GB, free: 85.79 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.537e-05/0.6316, allocations: 33.7 kB / 0.5268 GB, free: 85.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000255/0.6319, allocations: 0.5905 MB / 0.5273 GB, free: 85.15 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.425e-05/0.632, allocations: 151.9 kB / 0.5275 GB, free: 85 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.282e-05/0.632, allocations: 16 kB / 0.5275 GB, free: 84.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.252e-05/0.6321, allocations: 333.9 kB / 0.5278 GB, free: 84.65 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002691/0.6324, allocations: 161.9 kB / 0.528 GB, free: 84.49 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000343/0.6327, allocations: 484.8 kB / 0.5284 GB, free: 83.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003512/0.6331, allocations: 235.8 kB / 0.5286 GB, free: 83.64 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.74e-06/0.6331, allocations: 4 kB / 0.5287 GB, free: 83.64 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001005/0.6341, allocations: 0.7351 MB / 0.5294 GB, free: 82.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006492/0.6347, allocations: 4.091 MB / 0.5334 GB, free: 78.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/0.6348, allocations: 12 kB / 0.5334 GB, free: 78.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001643/0.6349, allocations: 36.84 kB / 0.5334 GB, free: 78.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005289/0.6355, allocations: 167.7 kB / 0.5336 GB, free: 78.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007404/0.6362, allocations: 1.292 MB / 0.5348 GB, free: 76.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006694/0.6369, allocations: 40.14 kB / 0.5349 GB, free: 76.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.975e-05/0.637, allocations: 39.95 kB / 0.5349 GB, free: 76.77 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.007e-05/0.637, allocations: 4 kB / 0.5349 GB, free: 76.77 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008469/0.6378, allocations: 0.6257 MB / 0.5355 GB, free: 76.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.779e-05/0.6379, allocations: 12 kB / 0.5355 GB, free: 76.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.11e-05/0.638, allocations: 36.8 kB / 0.5356 GB, free: 76.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004736/0.6384, allocations: 168.1 kB / 0.5357 GB, free: 75.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006026/0.6391, allocations: 1.298 MB / 0.537 GB, free: 74.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005306/0.6396, allocations: 36.16 kB / 0.537 GB, free: 74.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.918e-05/0.6396, allocations: 32 kB / 0.5371 GB, free: 74.43 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004331/0.6401, allocations: 348.8 kB / 0.5374 GB, free: 74.08 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001228/0.6402, allocations: 90.88 kB / 0.5375 GB, free: 73.99 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007155/0.6409, allocations: 427.4 kB / 0.5379 GB, free: 73.56 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.641, allocations: 4 kB / 0.5379 GB, free: 73.56 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.495e-06/0.641, allocations: 4 kB / 0.5379 GB, free: 73.55 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.641, allocations: 0 / 0.5379 GB, free: 73.55 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001713/0.6427, allocations: 1.327 MB / 0.5392 GB, free: 72.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.6427, allocations: 7.984 kB / 0.5392 GB, free: 72.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003399/0.6431, allocations: 80.12 kB / 0.5393 GB, free: 72.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.42e-05/0.6431, allocations: 20.84 kB / 0.5393 GB, free: 72.05 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.468e-05/0.6432, allocations: 12 kB / 0.5393 GB, free: 72.04 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005578/0.6437, allocations: 1.284 MB / 0.5406 GB, free: 70.61 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.6437, allocations: 0 / 0.5406 GB, free: 70.61 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008387/0.6446, allocations: 0.7803 MB / 0.5413 GB, free: 69.75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002454/0.6448, allocations: 199.9 kB / 0.5415 GB, free: 69.53 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.311e-05/0.6449, allocations: 8 kB / 0.5415 GB, free: 69.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003537/0.6453, allocations: 23.98 kB / 0.5415 GB, free: 69.5 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.604e-05/0.6454, allocations: 35.84 kB / 0.5416 GB, free: 69.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.065e-05/0.6454, allocations: 16 kB / 0.5416 GB, free: 69.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005823/0.646, allocations: 0.5663 MB / 0.5421 GB, free: 68.87 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.646, allocations: 0 / 0.5421 GB, free: 68.87 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001132/0.6471, allocations: 387.9 kB / 0.5425 GB, free: 68.49 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003611/0.6475, allocations: 309.7 kB / 0.5428 GB, free: 68.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001222/0.6487, allocations: 0.9579 MB / 0.5438 GB, free: 67.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.6488, allocations: 1.812 kB / 0.5438 GB, free: 67.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000316/0.6491, allocations: 282.9 kB / 0.544 GB, free: 66.94 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008866/0.65, allocations: 213.8 kB / 0.5442 GB, free: 66.73 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002515/0.6525, allocations: 2.2 MB / 0.5464 GB, free: 64.48 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003893/0.6529, allocations: 1.048 MB / 0.5474 GB, free: 63.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005211/0.6534, allocations: 131.4 kB / 0.5475 GB, free: 63.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001275/0.6536, allocations: 59.44 kB / 0.5476 GB, free: 63.21 MB / 378.7 MB Notification: Performance of SimCode: time 3.3e-07/0.6536, allocations: 0 / 0.5476 GB, free: 63.21 MB / 378.7 MB Notification: Performance of Templates: time 0.0178/0.6714, allocations: 11.59 MB / 0.5589 GB, free: 51.75 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches