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.001569/0.001569, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.287/1.287, allocations: 225.6 MB / 234.8 MB, free: 3.25 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008995/0.0008996, allocations: 98.39 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.032e-05/2.033e-05, allocations: 4 kB / 343.7 MB, free: 8.301 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1228/0.1229, allocations: 51.47 MB / 395.2 MB, free: 4.781 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3606/0.4835, allocations: 99.43 MB / 494.6 MB, free: 10.05 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002172/0.4837, allocations: 89.45 kB / 494.7 MB, free: 10.01 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06861/0.5524, allocations: 27.18 MB / 0.5096 GB, free: 3.758 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.5524, allocations: 0 / 0.5096 GB, free: 3.758 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.778e-05/0.5525, allocations: 35.5 kB / 0.5097 GB, free: 3.727 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.001669/0.5542, allocations: 1.148 MB / 0.5108 GB, free: 2.535 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.5542, allocations: 8.031 kB / 0.5108 GB, free: 2.527 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006094/0.5548, allocations: 194.3 kB / 0.511 GB, free: 2.336 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001425/0.5563, allocations: 0.836 MB / 0.5118 GB, free: 1.457 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.985e-05/0.5563, allocations: 28 kB / 0.5118 GB, free: 1.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.5564, allocations: 67.91 kB / 0.5119 GB, free: 1.363 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009471/0.5574, allocations: 0.5234 MB / 0.5124 GB, free: 0.8398 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001296/0.5587, allocations: 0.7663 MB / 0.5132 GB, free: 36 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.294e-05/0.5587, allocations: 11.84 kB / 0.5132 GB, free: 24 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.357e-05/0.5588, allocations: 0 / 0.5132 GB, free: 24 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.002e-05/0.5588, allocations: 24 kB / 0.5132 GB, free: 0 / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004742/0.5636, allocations: 3.966 MB / 0.5171 GB, free: 11.82 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007223/0.5643, allocations: 332.6 kB / 0.5174 GB, free: 11.48 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002/0.5645, allocations: 138.1 kB / 0.5175 GB, free: 11.35 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.984e-05/0.5646, allocations: 4 kB / 0.5175 GB, free: 11.35 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.585e-05/0.5646, allocations: 46.5 kB / 0.5176 GB, free: 11.29 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 1.743e-06/0.5646, allocations: 0 / 0.5176 GB, free: 11.29 MB / 394.7 MB Notification: Performance of matching and sorting (n=40): time 0.001475/0.5661, allocations: 0.9862 MB / 0.5185 GB, free: 10.25 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.011e-05/0.5661, allocations: 81.11 kB / 0.5186 GB, free: 10.16 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007899/0.5669, allocations: 0.6334 MB / 0.5192 GB, free: 9.516 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.974e-05/0.567, allocations: 25.7 kB / 0.5192 GB, free: 9.484 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000384/0.5674, allocations: 0.5991 MB / 0.5198 GB, free: 8.875 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.774e-05/0.5675, allocations: 145.9 kB / 0.52 GB, free: 8.73 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.1e-05/0.5675, allocations: 0 / 0.52 GB, free: 8.73 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.5676, allocations: 330 kB / 0.5203 GB, free: 8.402 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002072/0.5679, allocations: 129.6 kB / 0.5204 GB, free: 8.277 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004674/0.5683, allocations: 442.1 kB / 0.5208 GB, free: 7.695 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003392/0.5687, allocations: 219.8 kB / 0.521 GB, free: 7.48 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/0.5687, allocations: 4 kB / 0.521 GB, free: 7.477 MB / 394.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001007/0.5697, allocations: 0.6192 MB / 0.5216 GB, free: 6.848 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001553/0.5713, allocations: 4.089 MB / 0.5256 GB, free: 2.438 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.403e-05/0.5713, allocations: 11.94 kB / 0.5256 GB, free: 2.426 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001444/0.5714, allocations: 40.86 kB / 0.5257 GB, free: 2.383 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005782/0.572, allocations: 163.7 kB / 0.5258 GB, free: 2.223 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008779/0.5729, allocations: 1.24 MB / 0.5271 GB, free: 0.8711 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004862/0.5734, allocations: 20 kB / 0.5271 GB, free: 0.8516 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.559e-05/0.5735, allocations: 39.98 kB / 0.5271 GB, free: 0.8125 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.725e-06/0.5735, allocations: 6.5 kB / 0.5271 GB, free: 0.8086 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007509/0.5742, allocations: 0.4929 MB / 0.5276 GB, free: 320 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.5743, allocations: 12.88 kB / 0.5276 GB, free: 308 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.128e-05/0.5744, allocations: 40.84 kB / 0.5277 GB, free: 264 kB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005467/0.5749, allocations: 171.7 kB / 0.5278 GB, free: 92 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008876/0.5758, allocations: 1.233 MB / 0.529 GB, free: 14.74 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003927/0.5762, allocations: 19.98 kB / 0.529 GB, free: 14.72 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.312e-05/0.5763, allocations: 36 kB / 0.5291 GB, free: 14.69 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.0001319/0.5764, allocations: 140.7 kB / 0.5292 GB, free: 14.54 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001199/0.5765, allocations: 90.83 kB / 0.5293 GB, free: 14.45 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006443/0.5772, allocations: 362.1 kB / 0.5296 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.5772, allocations: 4 kB / 0.5296 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.305e-06/0.5772, allocations: 0 / 0.5296 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.5772, allocations: 0 / 0.5296 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001592/0.5788, allocations: 1.153 MB / 0.5308 GB, free: 12.87 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.5788, allocations: 11.92 kB / 0.5308 GB, free: 12.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003467/0.5792, allocations: 67.91 kB / 0.5308 GB, free: 12.79 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.1e-05/0.5793, allocations: 24.84 kB / 0.5309 GB, free: 12.76 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.161e-05/0.5793, allocations: 8.219 kB / 0.5309 GB, free: 12.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007276/0.58, allocations: 1.225 MB / 0.5321 GB, free: 11.41 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.411e-06/0.5801, allocations: 11.22 kB / 0.5321 GB, free: 11.4 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007558/0.5808, allocations: 0.7069 MB / 0.5328 GB, free: 10.61 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002071/0.581, allocations: 188 kB / 0.533 GB, free: 10.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.879e-05/0.5811, allocations: 12 kB / 0.533 GB, free: 10.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003366/0.5815, allocations: 11.98 kB / 0.533 GB, free: 10.38 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.312e-05/0.5815, allocations: 23.97 kB / 0.533 GB, free: 10.36 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.49e-05/0.5816, allocations: 12 kB / 0.533 GB, free: 10.35 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005428/0.5821, allocations: 483.1 kB / 0.5335 GB, free: 9.879 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.5821, allocations: 0 / 0.5335 GB, free: 9.879 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001087/0.5832, allocations: 316 kB / 0.5338 GB, free: 9.57 MB / 410.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.0003485/0.5836, allocations: 266.1 kB / 0.534 GB, free: 9.305 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001156/0.5847, allocations: 0.8709 MB / 0.5349 GB, free: 8.414 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.5848, allocations: 0 / 0.5349 GB, free: 8.414 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002876/0.585, allocations: 254.5 kB / 0.5351 GB, free: 8.156 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000917/0.586, allocations: 203.1 kB / 0.5353 GB, free: 7.965 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002088/0.5881, allocations: 1.304 MB / 0.5366 GB, free: 6.617 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000541/0.5886, allocations: 1.045 MB / 0.5376 GB, free: 5.539 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006936/0.5893, allocations: 162.2 kB / 0.5378 GB, free: 5.379 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.801e-05/0.5894, allocations: 43.44 kB / 0.5378 GB, free: 5.336 MB / 410.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5894, allocations: 3.938 kB / 0.5378 GB, free: 5.332 MB / 410.7 MB Notification: Performance of Templates: time 0.01712/0.6066, allocations: 10.14 MB / 0.5477 GB, free: 11.32 MB / 426.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