Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001595/0.001595, allocations: 176.4 kB / 8.347 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.258/1.258, allocations: 221.5 MB / 230.3 MB, free: 7.508 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.0008182/0.0008182, allocations: 94.09 kB / 281.2 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.553e-05/1.556e-05, allocations: 4 kB / 337 MB, free: 10.01 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08219/0.08222, allocations: 50.42 MB / 387.5 MB, free: 7.547 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3001/0.3823, allocations: 95.25 MB / 482.7 MB, free: 15.54 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002243/0.3826, allocations: 79.95 kB / 482.8 MB, free: 15.46 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.117/0.4996, allocations: 44.12 MB / 0.5146 GB, free: 3.039 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.4996, allocations: 448 / 0.5146 GB, free: 3.039 MB / 394.7 MB Notification: Performance of Transformations before backend: time 8.921e-05/0.4997, allocations: 40 kB / 0.5146 GB, free: 3 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.002638/0.5023, allocations: 1.597 MB / 0.5162 GB, free: 1.352 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.5024, allocations: 11.98 kB / 0.5162 GB, free: 1.34 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008942/0.5033, allocations: 285.5 kB / 0.5164 GB, free: 1.059 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002219/0.5055, allocations: 1.208 MB / 0.5176 GB, free: 15.79 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.508e-05/0.5056, allocations: 51.94 kB / 0.5177 GB, free: 15.74 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001708/0.5058, allocations: 91.91 kB / 0.5178 GB, free: 15.65 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001659/0.5074, allocations: 0.877 MB / 0.5186 GB, free: 14.77 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002061/0.5095, allocations: 1.209 MB / 0.5198 GB, free: 13.5 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.051e-05/0.5096, allocations: 19.83 kB / 0.5198 GB, free: 13.48 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.337e-05/0.5097, allocations: 4 kB / 0.5198 GB, free: 13.48 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.705e-05/0.5097, allocations: 36 kB / 0.5199 GB, free: 13.44 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007912/0.5176, allocations: 6.105 MB / 0.5258 GB, free: 7.047 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001106/0.5188, allocations: 0.5328 MB / 0.5263 GB, free: 6.5 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006574/0.5194, allocations: 401.2 kB / 0.5267 GB, free: 6.109 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.617e-05/0.5195, allocations: 12.55 kB / 0.5267 GB, free: 6.098 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.7e-05/0.5195, allocations: 43.12 kB / 0.5268 GB, free: 6.047 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 2.835e-06/0.5195, allocations: 0 / 0.5268 GB, free: 6.047 MB / 410.7 MB Notification: Performance of matching and sorting (n=72): time 0.002856/0.5224, allocations: 1.658 MB / 0.5284 GB, free: 4.328 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.851e-05/0.5225, allocations: 115.5 kB / 0.5285 GB, free: 4.191 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001379/0.5239, allocations: 0.9014 MB / 0.5294 GB, free: 3.281 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.74e-05/0.5239, allocations: 25.7 kB / 0.5294 GB, free: 3.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006409/0.5246, allocations: 0.8636 MB / 0.5303 GB, free: 2.375 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000194/0.5248, allocations: 256.2 kB / 0.5305 GB, free: 2.121 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.235e-05/0.5248, allocations: 3.938 kB / 0.5305 GB, free: 2.117 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.525, allocations: 349.9 kB / 0.5308 GB, free: 1.77 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004302/0.5254, allocations: 230.6 kB / 0.5311 GB, free: 1.543 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007269/0.5261, allocations: 0.6656 MB / 0.5317 GB, free: 0.6641 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005876/0.5267, allocations: 348.2 kB / 0.532 GB, free: 332 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.438e-06/0.5268, allocations: 8 kB / 0.532 GB, free: 324 kB / 410.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002318/0.5291, allocations: 1.06 MB / 0.5331 GB, free: 15.23 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.633e-05/0.5291, allocations: 13.56 kB / 0.5331 GB, free: 15.22 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.997e-05/0.5292, allocations: 16.59 kB / 0.5331 GB, free: 15.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00044/0.5296, allocations: 126.5 kB / 0.5332 GB, free: 15.07 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001092/0.5307, allocations: 263.6 kB / 0.5335 GB, free: 14.81 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003395/0.5341, allocations: 4.061 MB / 0.5374 GB, free: 10.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00104/0.5352, allocations: 39.88 kB / 0.5375 GB, free: 10.37 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.524e-05/0.5353, allocations: 60 kB / 0.5375 GB, free: 10.31 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: dcpm2.core.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (139): * Single equations (assignments): 136 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.00025/0.5355, allocations: 144.6 kB / 0.5377 GB, free: 10.16 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001708/0.5357, allocations: 130.4 kB / 0.5378 GB, free: 10.03 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001395/0.5371, allocations: 0.7107 MB / 0.5385 GB, free: 9.297 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.037e-05/0.5371, allocations: 8 kB / 0.5385 GB, free: 9.289 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.045e-06/0.5371, allocations: 0 / 0.5385 GB, free: 9.289 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.668e-06/0.5372, allocations: 3.984 kB / 0.5385 GB, free: 9.285 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003175/0.5403, allocations: 2.006 MB / 0.5405 GB, free: 7.184 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.884e-06/0.5404, allocations: 7.953 kB / 0.5405 GB, free: 7.176 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005957/0.541, allocations: 136.3 kB / 0.5406 GB, free: 7.043 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003373/0.5413, allocations: 118.6 kB / 0.5407 GB, free: 6.918 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.711e-05/0.5414, allocations: 8 kB / 0.5407 GB, free: 6.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00325/0.5446, allocations: 4.163 MB / 0.5448 GB, free: 2.398 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.693e-06/0.5446, allocations: 7.938 kB / 0.5448 GB, free: 2.391 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00187/0.5465, allocations: 1.351 MB / 0.5461 GB, free: 0.9023 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006411/0.5472, allocations: 263.5 kB / 0.5464 GB, free: 0.625 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001511/0.5473, allocations: 8 kB / 0.5464 GB, free: 0.6172 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005982/0.548, allocations: 31.97 kB / 0.5464 GB, free: 0.5859 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.5481, allocations: 68.38 kB / 0.5465 GB, free: 0.5195 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.125e-05/0.5481, allocations: 28.12 kB / 0.5465 GB, free: 0.4922 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.2108/0.7589, allocations: 0.6529 MB / 0.5471 GB, free: 111.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.61e-07/0.759, allocations: 0 / 0.5471 GB, free: 111.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001816/0.7608, allocations: 304.3 kB / 0.5474 GB, free: 111.3 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.000465/0.7613, allocations: 338.2 kB / 0.5478 GB, free: 111.2 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001375/0.7626, allocations: 0.9846 MB / 0.5487 GB, free: 110.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.7627, allocations: 1.688 kB / 0.5487 GB, free: 110.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007229/0.7634, allocations: 0.6348 MB / 0.5493 GB, free: 110.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001325/0.7647, allocations: 289.6 kB / 0.5496 GB, free: 110.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004119/0.7689, allocations: 2.251 MB / 0.5518 GB, free: 109.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007419/0.7696, allocations: 1.247 MB / 0.553 GB, free: 109.2 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.000761/0.7704, allocations: 169.6 kB / 0.5532 GB, free: 109.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001947/0.7706, allocations: 89.03 kB / 0.5533 GB, free: 109.2 MB / 426.7 MB Notification: Performance of SimCode: time 6.41e-07/0.7706, allocations: 0.9375 kB / 0.5533 GB, free: 109.2 MB / 426.7 MB Notification: Performance of Templates: time 0.02723/0.7978, allocations: 14.99 MB / 0.5679 GB, free: 108.3 MB / 426.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches