Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001545/0.001545, allocations: 202.8 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.38/1.38, allocations: 225.6 MB / 234.8 MB, free: 3.258 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007953/0.0007953, allocations: 100.7 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.484e-05/1.486e-05, allocations: 4 kB / 343.7 MB, free: 8.289 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09181/0.09184, allocations: 51.47 MB / 395.2 MB, free: 4.773 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2972/0.3891, allocations: 96.07 MB / 491.2 MB, free: 13.3 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002299/0.3894, allocations: 86.27 kB / 491.3 MB, free: 13.26 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1145/0.5039, allocations: 44.16 MB / 0.5229 GB, free: 6.043 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.977e-06/0.504, allocations: 0 / 0.5229 GB, free: 6.043 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001356/0.5041, allocations: 43.88 kB / 0.523 GB, free: 6 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.003474/0.5076, allocations: 1.592 MB / 0.5245 GB, free: 4.359 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.5076, allocations: 12.03 kB / 0.5245 GB, free: 4.348 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001155/0.5088, allocations: 289.8 kB / 0.5248 GB, free: 4.062 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002668/0.5115, allocations: 1.2 MB / 0.526 GB, free: 2.805 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.264e-05/0.5116, allocations: 48 kB / 0.526 GB, free: 2.758 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002551/0.5118, allocations: 99.91 kB / 0.5261 GB, free: 2.66 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001863/0.5137, allocations: 0.8692 MB / 0.527 GB, free: 1.789 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002252/0.516, allocations: 1.221 MB / 0.5282 GB, free: 0.5078 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.51e-05/0.516, allocations: 7.906 kB / 0.5282 GB, free: 0.5 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.852e-05/0.5161, allocations: 4 kB / 0.5282 GB, free: 0.4961 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.779e-05/0.5162, allocations: 36 kB / 0.5282 GB, free: 472 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008317/0.5245, allocations: 6.123 MB / 0.5342 GB, free: 10.05 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001223/0.5257, allocations: 0.5334 MB / 0.5347 GB, free: 9.5 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000692/0.5265, allocations: 395 kB / 0.5351 GB, free: 9.113 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.33e-05/0.5265, allocations: 12.5 kB / 0.5351 GB, free: 9.102 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.497e-05/0.5266, allocations: 43.08 kB / 0.5351 GB, free: 9.051 MB / 410.7 MB Notification: Performance of pre-optimization done (n=66): time 3.056e-06/0.5266, allocations: 4 kB / 0.5351 GB, free: 9.047 MB / 410.7 MB Notification: Performance of matching and sorting (n=72): time 0.003229/0.5298, allocations: 1.654 MB / 0.5368 GB, free: 7.332 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.218e-05/0.5299, allocations: 115.6 kB / 0.5369 GB, free: 7.195 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001272/0.5312, allocations: 0.9013 MB / 0.5378 GB, free: 6.285 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.874e-05/0.5312, allocations: 29.64 kB / 0.5378 GB, free: 6.25 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005253/0.5318, allocations: 0.8597 MB / 0.5386 GB, free: 5.379 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001739/0.5319, allocations: 252.3 kB / 0.5389 GB, free: 5.129 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.522e-05/0.532, allocations: 4 kB / 0.5389 GB, free: 5.125 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.5321, allocations: 353.9 kB / 0.5392 GB, free: 4.773 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003702/0.5325, allocations: 226.6 kB / 0.5394 GB, free: 4.551 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006268/0.5331, allocations: 0.6694 MB / 0.5401 GB, free: 3.672 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005409/0.5337, allocations: 340.3 kB / 0.5404 GB, free: 3.34 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.044e-05/0.5337, allocations: 8 kB / 0.5404 GB, free: 3.332 MB / 410.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001838/0.5355, allocations: 1.068 MB / 0.5414 GB, free: 2.242 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.5356, allocations: 8 kB / 0.5415 GB, free: 2.234 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.078e-05/0.5356, allocations: 23.97 kB / 0.5415 GB, free: 2.211 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003698/0.536, allocations: 118.8 kB / 0.5416 GB, free: 2.086 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008594/0.5369, allocations: 259.6 kB / 0.5418 GB, free: 1.832 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002998/0.5399, allocations: 4.057 MB / 0.5458 GB, free: 13.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008863/0.5408, allocations: 48.08 kB / 0.5458 GB, free: 13.38 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.818e-05/0.5409, allocations: 55.95 kB / 0.5459 GB, free: 13.32 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.0002279/0.5411, allocations: 148.5 kB / 0.546 GB, free: 13.17 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002079/0.5413, allocations: 122.5 kB / 0.5462 GB, free: 13.05 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001401/0.5427, allocations: 0.7184 MB / 0.5469 GB, free: 12.31 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.193e-06/0.5427, allocations: 8 kB / 0.5469 GB, free: 12.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.596e-06/0.5428, allocations: 0 / 0.5469 GB, free: 12.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.227e-06/0.5428, allocations: 3.984 kB / 0.5469 GB, free: 12.3 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003474/0.5463, allocations: 2.01 MB / 0.5488 GB, free: 10.19 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.5463, allocations: 4 kB / 0.5488 GB, free: 10.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00058/0.5469, allocations: 131.8 kB / 0.549 GB, free: 10.05 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003362/0.5472, allocations: 118.8 kB / 0.5491 GB, free: 9.93 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.431e-05/0.5473, allocations: 8 kB / 0.5491 GB, free: 9.922 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003149/0.5504, allocations: 4.163 MB / 0.5532 GB, free: 5.414 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.358e-06/0.5504, allocations: 20.03 kB / 0.5532 GB, free: 5.395 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001811/0.5523, allocations: 1.347 MB / 0.5545 GB, free: 3.91 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004876/0.5528, allocations: 263.5 kB / 0.5547 GB, free: 3.633 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002058/0.553, allocations: 11.94 kB / 0.5547 GB, free: 3.621 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006373/0.5536, allocations: 35.97 kB / 0.5548 GB, free: 3.586 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001161/0.5538, allocations: 60.38 kB / 0.5548 GB, free: 3.527 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.976e-05/0.5538, allocations: 24 kB / 0.5549 GB, free: 3.504 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009921/0.5548, allocations: 0.6634 MB / 0.5555 GB, free: 2.836 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5548, allocations: 4 kB / 0.5555 GB, free: 2.832 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001304/0.5561, allocations: 307.9 kB / 0.5558 GB, free: 2.531 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.0005288/0.5567, allocations: 346.7 kB / 0.5561 GB, free: 2.195 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00155/0.5582, allocations: 0.9765 MB / 0.5571 GB, free: 1.191 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.5582, allocations: 0 / 0.5571 GB, free: 1.191 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000769/0.559, allocations: 0.6412 MB / 0.5577 GB, free: 0.5195 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001416/0.5605, allocations: 294.4 kB / 0.558 GB, free: 244 kB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004519/0.565, allocations: 2.26 MB / 0.5602 GB, free: 13.89 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009092/0.5659, allocations: 1.245 MB / 0.5614 GB, free: 12.62 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.000745/0.5667, allocations: 166.8 kB / 0.5616 GB, free: 12.45 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000216/0.5669, allocations: 83.42 kB / 0.5617 GB, free: 12.37 MB / 442.7 MB Notification: Performance of SimCode: time 4.71e-07/0.5669, allocations: 0 / 0.5617 GB, free: 12.37 MB / 442.7 MB Notification: Performance of Templates: time 0.2158/0.7827, allocations: 14.96 MB / 0.5763 GB, free: 98.64 MB / 442.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches