Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001036/0.001036, allocations: 196.9 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.295/1.295, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007968/0.0007971, allocations: 86.64 kB / 292.1 MB, free: 5.953 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.053e-05/2.056e-05, allocations: 4 kB / 350.5 MB, free: 2.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0835/0.08353, allocations: 51.49 MB / 402 MB, free: 14.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3145/0.3981, allocations: 100.1 MB / 0.4904 GB, free: 5.695 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002312/0.3984, allocations: 85.23 kB / 0.4904 GB, free: 5.652 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07387/0.4722, allocations: 27.57 MB / 0.5174 GB, free: 11.37 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4723, allocations: 0 / 0.5174 GB, free: 11.37 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.598e-05/0.4724, allocations: 27.94 kB / 0.5174 GB, free: 11.34 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.002148/0.4745, allocations: 1.148 MB / 0.5185 GB, free: 10.16 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.798e-05/0.4746, allocations: 8.031 kB / 0.5185 GB, free: 10.15 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007134/0.4753, allocations: 196.8 kB / 0.5187 GB, free: 9.957 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001758/0.4771, allocations: 0.8321 MB / 0.5195 GB, free: 9.082 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.748e-05/0.4771, allocations: 74 kB / 0.5196 GB, free: 9.012 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001659/0.4773, allocations: 103.9 kB / 0.5197 GB, free: 8.91 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00164/0.479, allocations: 0.8992 MB / 0.5206 GB, free: 7.969 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.525e-05/0.479, allocations: 15.91 kB / 0.5206 GB, free: 7.953 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.917e-05/0.4791, allocations: 39.98 kB / 0.5206 GB, free: 7.914 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.283e-05/0.4792, allocations: 24 kB / 0.5206 GB, free: 7.891 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001145/0.4803, allocations: 0.5858 MB / 0.5212 GB, free: 7.305 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005573/0.4859, allocations: 4.147 MB / 0.5253 GB, free: 2.93 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008059/0.4867, allocations: 368.6 kB / 0.5256 GB, free: 2.566 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002248/0.487, allocations: 140.8 kB / 0.5258 GB, free: 2.426 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.762e-05/0.487, allocations: 8 kB / 0.5258 GB, free: 2.418 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/0.4871, allocations: 46.45 kB / 0.5258 GB, free: 2.363 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 2.585e-06/0.4871, allocations: 0 / 0.5258 GB, free: 2.363 MB / 394.7 MB Notification: Performance of matching and sorting (n=40): time 0.001819/0.4889, allocations: 1.055 MB / 0.5268 GB, free: 1.254 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.601e-05/0.4889, allocations: 85.11 kB / 0.5269 GB, free: 1.152 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001058/0.49, allocations: 0.7369 MB / 0.5276 GB, free: 400 kB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.613e-05/0.4901, allocations: 33.7 kB / 0.5277 GB, free: 360 kB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003988/0.4905, allocations: 0.5954 MB / 0.5282 GB, free: 15.75 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001189/0.4906, allocations: 142 kB / 0.5284 GB, free: 15.61 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.672e-05/0.4906, allocations: 16 kB / 0.5284 GB, free: 15.59 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001131/0.4907, allocations: 333.9 kB / 0.5287 GB, free: 15.26 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002536/0.491, allocations: 149.5 kB / 0.5289 GB, free: 15.11 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004543/0.4915, allocations: 454.7 kB / 0.5293 GB, free: 14.52 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003784/0.4919, allocations: 232.1 kB / 0.5295 GB, free: 14.29 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.065e-06/0.4919, allocations: 7.953 kB / 0.5295 GB, free: 14.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001113/0.493, allocations: 0.7128 MB / 0.5302 GB, free: 13.57 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001387/0.4944, allocations: 4.087 MB / 0.5342 GB, free: 9.16 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.256e-05/0.4944, allocations: 12 kB / 0.5342 GB, free: 9.148 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001608/0.4946, allocations: 32.84 kB / 0.5343 GB, free: 9.113 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005839/0.4952, allocations: 179.7 kB / 0.5344 GB, free: 8.938 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008924/0.4961, allocations: 1.294 MB / 0.5357 GB, free: 7.516 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006441/0.4967, allocations: 39.89 kB / 0.5357 GB, free: 7.477 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.36e-05/0.4968, allocations: 32 kB / 0.5358 GB, free: 7.445 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.949e-06/0.4968, allocations: 4 kB / 0.5358 GB, free: 7.441 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009088/0.4977, allocations: 0.5942 MB / 0.5363 GB, free: 6.844 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.548e-05/0.4978, allocations: 12 kB / 0.5364 GB, free: 6.832 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.707e-05/0.4979, allocations: 32.84 kB / 0.5364 GB, free: 6.797 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005265/0.4984, allocations: 164.3 kB / 0.5365 GB, free: 6.637 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008591/0.4993, allocations: 1.299 MB / 0.5378 GB, free: 5.199 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005487/0.4998, allocations: 32.16 kB / 0.5378 GB, free: 5.168 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.163e-05/0.4999, allocations: 32 kB / 0.5379 GB, free: 5.137 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.0001721/0.5001, allocations: 158.7 kB / 0.538 GB, free: 4.977 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001589/0.5002, allocations: 90.88 kB / 0.5381 GB, free: 4.887 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007972/0.501, allocations: 402.7 kB / 0.5385 GB, free: 4.488 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/0.5011, allocations: 8 kB / 0.5385 GB, free: 4.48 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.995e-06/0.5011, allocations: 0 / 0.5385 GB, free: 4.48 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.5011, allocations: 4 kB / 0.5385 GB, free: 4.477 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00207/0.5032, allocations: 1.317 MB / 0.5398 GB, free: 3.078 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/0.5032, allocations: 0 / 0.5398 GB, free: 3.078 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003724/0.5036, allocations: 71.91 kB / 0.5399 GB, free: 3.008 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.046e-05/0.5037, allocations: 24.84 kB / 0.5399 GB, free: 2.98 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.996e-05/0.5037, allocations: 8 kB / 0.5399 GB, free: 2.973 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008656/0.5046, allocations: 1.277 MB / 0.5411 GB, free: 1.566 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.5046, allocations: 0 / 0.5411 GB, free: 1.566 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009165/0.5055, allocations: 0.7508 MB / 0.5419 GB, free: 0.7305 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003017/0.5058, allocations: 200 kB / 0.5421 GB, free: 0.5156 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001154/0.506, allocations: 12 kB / 0.5421 GB, free: 0.5039 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000387/0.5064, allocations: 19.98 kB / 0.5421 GB, free: 496 kB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.021e-05/0.5064, allocations: 31.86 kB / 0.5421 GB, free: 464 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.408e-05/0.5065, allocations: 16 kB / 0.5421 GB, free: 448 kB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0007674/0.5072, allocations: 0.5588 MB / 0.5427 GB, free: 15.86 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.5072, allocations: 0 / 0.5427 GB, free: 15.86 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001437/0.5087, allocations: 380 kB / 0.543 GB, free: 15.49 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.0004522/0.5092, allocations: 288.8 kB / 0.5433 GB, free: 15.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001464/0.5106, allocations: 0.9653 MB / 0.5443 GB, free: 14.21 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/0.5106, allocations: 0 / 0.5443 GB, free: 14.21 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003479/0.511, allocations: 258.5 kB / 0.5445 GB, free: 13.95 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009839/0.512, allocations: 226.8 kB / 0.5447 GB, free: 13.73 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002524/0.5145, allocations: 1.336 MB / 0.546 GB, free: 12.34 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006207/0.5152, allocations: 1.042 MB / 0.547 GB, free: 11.27 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0007828/0.516, allocations: 163.4 kB / 0.5472 GB, free: 11.11 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.777e-05/0.5161, allocations: 51.44 kB / 0.5473 GB, free: 11.06 MB / 426.7 MB Notification: Performance of SimCode: time 7.21e-07/0.5161, allocations: 0 / 0.5473 GB, free: 11.06 MB / 426.7 MB Notification: Performance of Templates: time 0.02325/0.5393, allocations: 13.23 MB / 0.5602 GB, free: 13.97 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches