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.0009428/0.0009427, allocations: 174 kB / 13.63 MB, free: 1.684 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.225/1.225, allocations: 221.3 MB / 235.5 MB, free: 2.945 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.0009061/0.0009061, allocations: 93 kB / 286.5 MB, free: 224 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.455e-05/2.457e-05, allocations: 0 / 343.8 MB, free: 4.305 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08666/0.0867, allocations: 50.42 MB / 394.3 MB, free: 1.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.308/0.3948, allocations: 99.28 MB / 493.5 MB, free: 4.207 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000254/0.3951, allocations: 87.78 kB / 493.6 MB, free: 4.125 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07256/0.4677, allocations: 27.53 MB / 0.5089 GB, free: 8.426 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4677, allocations: 4 kB / 0.5089 GB, free: 8.422 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.789e-05/0.4678, allocations: 28.88 kB / 0.509 GB, free: 8.395 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.001734/0.4696, allocations: 1.146 MB / 0.5101 GB, free: 7.199 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/0.4696, allocations: 12.03 kB / 0.5101 GB, free: 7.188 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006086/0.4702, allocations: 186.3 kB / 0.5103 GB, free: 7.004 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001576/0.4718, allocations: 0.8476 MB / 0.5111 GB, free: 6.113 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.321e-05/0.4719, allocations: 66 kB / 0.5112 GB, free: 6.051 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000149/0.4721, allocations: 107.9 kB / 0.5113 GB, free: 5.945 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00161/0.4737, allocations: 0.903 MB / 0.5122 GB, free: 5 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.892e-05/0.4737, allocations: 7.984 kB / 0.5122 GB, free: 4.992 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.492e-05/0.4738, allocations: 40 kB / 0.5122 GB, free: 4.953 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.503e-05/0.4738, allocations: 24 kB / 0.5122 GB, free: 4.93 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001097/0.4749, allocations: 0.5858 MB / 0.5128 GB, free: 4.344 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005515/0.4805, allocations: 4.161 MB / 0.5169 GB, free: 15.95 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008139/0.4813, allocations: 355.3 kB / 0.5172 GB, free: 15.59 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002285/0.4816, allocations: 144.8 kB / 0.5173 GB, free: 15.45 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.08e-05/0.4816, allocations: 4 kB / 0.5173 GB, free: 15.44 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.673e-05/0.4817, allocations: 34.56 kB / 0.5174 GB, free: 15.4 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 3.086e-06/0.4817, allocations: 0 / 0.5174 GB, free: 15.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=40): time 0.001882/0.4836, allocations: 1.064 MB / 0.5184 GB, free: 14.28 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.931e-05/0.4836, allocations: 81.11 kB / 0.5185 GB, free: 14.18 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009887/0.4846, allocations: 0.737 MB / 0.5192 GB, free: 13.42 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.071e-05/0.4847, allocations: 33.7 kB / 0.5192 GB, free: 13.38 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003845/0.4851, allocations: 0.5991 MB / 0.5198 GB, free: 12.77 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001156/0.4852, allocations: 142 kB / 0.52 GB, free: 12.63 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.78e-05/0.4852, allocations: 16 kB / 0.52 GB, free: 12.61 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.4854, allocations: 341.9 kB / 0.5203 GB, free: 12.27 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002426/0.4856, allocations: 141.6 kB / 0.5204 GB, free: 12.14 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004383/0.4861, allocations: 462.6 kB / 0.5209 GB, free: 11.54 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00035/0.4864, allocations: 220.1 kB / 0.5211 GB, free: 11.32 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.36e-06/0.4864, allocations: 4 kB / 0.5211 GB, free: 11.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001023/0.4875, allocations: 0.7078 MB / 0.5218 GB, free: 10.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001283/0.4887, allocations: 4.095 MB / 0.5258 GB, free: 6.184 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/0.4888, allocations: 8 kB / 0.5258 GB, free: 6.176 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001757/0.489, allocations: 36.84 kB / 0.5258 GB, free: 6.137 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005919/0.4896, allocations: 167.7 kB / 0.526 GB, free: 5.973 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009332/0.4905, allocations: 1.299 MB / 0.5273 GB, free: 4.543 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005747/0.4911, allocations: 31.98 kB / 0.5273 GB, free: 4.512 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.402e-05/0.4912, allocations: 40.16 kB / 0.5273 GB, free: 4.473 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.327e-06/0.4912, allocations: 4 kB / 0.5273 GB, free: 4.469 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000922/0.4921, allocations: 0.5945 MB / 0.5279 GB, free: 3.871 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.4921, allocations: 12 kB / 0.5279 GB, free: 3.859 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.218e-05/0.4922, allocations: 36.84 kB / 0.528 GB, free: 3.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000533/0.4928, allocations: 175.7 kB / 0.5281 GB, free: 3.648 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008948/0.4937, allocations: 1.28 MB / 0.5294 GB, free: 2.234 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005354/0.4942, allocations: 28 kB / 0.5294 GB, free: 2.207 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.671e-05/0.4943, allocations: 43.98 kB / 0.5294 GB, free: 2.164 MB / 410.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 () * 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.0001624/0.4944, allocations: 152.8 kB / 0.5296 GB, free: 2.008 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001303/0.4946, allocations: 98.77 kB / 0.5297 GB, free: 1.91 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007689/0.4954, allocations: 399.3 kB / 0.5301 GB, free: 1.512 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.4954, allocations: 4 kB / 0.5301 GB, free: 1.508 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.435e-06/0.4954, allocations: 0 / 0.5301 GB, free: 1.508 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.4954, allocations: 48 / 0.5301 GB, free: 1.508 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001844/0.4972, allocations: 1.309 MB / 0.5313 GB, free: 120 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.787e-06/0.4973, allocations: 0 / 0.5313 GB, free: 120 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003629/0.4976, allocations: 80.12 kB / 0.5314 GB, free: 40 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.256e-05/0.4977, allocations: 24.84 kB / 0.5314 GB, free: 12 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.503e-05/0.4978, allocations: 11.95 kB / 0.5315 GB, free: 0 / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008608/0.4986, allocations: 1.272 MB / 0.5327 GB, free: 14.59 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.4987, allocations: 4.031 kB / 0.5327 GB, free: 14.59 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008847/0.4995, allocations: 0.7454 MB / 0.5334 GB, free: 13.76 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003186/0.4999, allocations: 200 kB / 0.5336 GB, free: 13.54 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.943e-05/0.5, allocations: 12 kB / 0.5336 GB, free: 13.53 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003709/0.5003, allocations: 15.98 kB / 0.5336 GB, free: 13.52 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.905e-05/0.5004, allocations: 31.91 kB / 0.5337 GB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.316e-05/0.5005, allocations: 19.94 kB / 0.5337 GB, free: 13.46 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007461/0.5012, allocations: 0.5666 MB / 0.5342 GB, free: 12.88 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5012, allocations: 0 / 0.5342 GB, free: 12.88 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001401/0.5026, allocations: 387.9 kB / 0.5346 GB, free: 12.5 MB / 426.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 () * 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.0005733/0.5032, allocations: 291.2 kB / 0.5349 GB, free: 12.21 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001606/0.5048, allocations: 0.9566 MB / 0.5358 GB, free: 11.23 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.5049, allocations: 0 / 0.5358 GB, free: 11.23 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00034/0.5052, allocations: 275 kB / 0.5361 GB, free: 10.95 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001009/0.5062, allocations: 223.2 kB / 0.5363 GB, free: 10.74 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002364/0.5086, allocations: 1.334 MB / 0.5376 GB, free: 9.352 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000557/0.5092, allocations: 1.05 MB / 0.5386 GB, free: 8.273 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0007637/0.5099, allocations: 163.4 kB / 0.5388 GB, free: 8.109 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.53e-05/0.51, allocations: 47.44 kB / 0.5388 GB, free: 8.062 MB / 426.7 MB Notification: Performance of SimCode: time 5.81e-07/0.5101, allocations: 3.938 kB / 0.5388 GB, free: 8.059 MB / 426.7 MB Notification: Performance of Templates: time 0.2092/0.7192, allocations: 13.22 MB / 0.5517 GB, free: 116 MB / 426.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