Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001699/0.001699, allocations: 181.2 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.657/1.657, allocations: 205.4 MB / 223.1 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009432/0.0009426, allocations: 92.16 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002937/0.0002938, allocations: 4 kB / 328.2 MB, free: 15.53 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3628/0.3632, allocations: 47.57 MB / 375.8 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1412/0.5044, allocations: 94.85 MB / 470.7 MB, free: 1.781 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003621/0.5049, allocations: 83.95 kB / 470.7 MB, free: 1.699 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.375/0.8799, allocations: 44.66 MB / 0.5033 GB, free: 93.77 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.88, allocations: 3.625 kB / 0.5033 GB, free: 93.77 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.442e-05/0.8801, allocations: 34.72 kB / 0.5034 GB, free: 93.77 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.003106/0.8832, allocations: 1.831 MB / 0.5052 GB, free: 92.8 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.981e-05/0.8832, allocations: 8.5 kB / 0.5052 GB, free: 92.8 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008443/0.8841, allocations: 286.1 kB / 0.5054 GB, free: 92.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00222/0.8863, allocations: 1.209 MB / 0.5066 GB, free: 92.31 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.162e-05/0.8864, allocations: 118.5 kB / 0.5067 GB, free: 92.31 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001954/0.8866, allocations: 157 kB / 0.5069 GB, free: 92.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002328/0.889, allocations: 1.499 MB / 0.5083 GB, free: 92.1 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.557e-05/0.889, allocations: 7.875 kB / 0.5083 GB, free: 92.09 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001204/0.8892, allocations: 65.94 kB / 0.5084 GB, free: 92.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.539e-05/0.8892, allocations: 34.94 kB / 0.5084 GB, free: 92.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001909/0.8911, allocations: 1.073 MB / 0.5095 GB, free: 92.07 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007025/0.8981, allocations: 6.414 MB / 0.5158 GB, free: 88.48 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00147/0.8996, allocations: 0.6318 MB / 0.5164 GB, free: 88.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.61e-05/0.8997, allocations: 10.36 kB / 0.5164 GB, free: 88.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.767e-05/0.8997, allocations: 46.62 kB / 0.5164 GB, free: 88.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 3.547e-06/0.8997, allocations: 0 / 0.5164 GB, free: 88.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=72): time 0.004472/0.9042, allocations: 2.494 MB / 0.5189 GB, free: 86.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.953e-05/0.9043, allocations: 110.8 kB / 0.519 GB, free: 86.68 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001241/0.9055, allocations: 1.097 MB / 0.52 GB, free: 86.21 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.069e-05/0.9056, allocations: 36.64 kB / 0.5201 GB, free: 86.18 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004093/0.906, allocations: 0.8586 MB / 0.5209 GB, free: 85.5 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001251/0.9061, allocations: 258.6 kB / 0.5212 GB, free: 85.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.911e-05/0.9062, allocations: 30.84 kB / 0.5212 GB, free: 85.28 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.592e-05/0.9063, allocations: 356 kB / 0.5215 GB, free: 84.95 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005067/0.9068, allocations: 291.9 kB / 0.5218 GB, free: 84.85 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000677/0.9075, allocations: 0.746 MB / 0.5225 GB, free: 84.15 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006169/0.9081, allocations: 407 kB / 0.5229 GB, free: 83.96 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.422e-06/0.9081, allocations: 9.844 kB / 0.5229 GB, free: 83.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001994/0.9101, allocations: 1.311 MB / 0.5242 GB, free: 83.4 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.9101, allocations: 11.25 kB / 0.5242 GB, free: 83.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.658e-05/0.9102, allocations: 18.22 kB / 0.5242 GB, free: 83.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004802/0.9107, allocations: 152.7 kB / 0.5244 GB, free: 83.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007873/0.9115, allocations: 258.8 kB / 0.5246 GB, free: 83.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002942/0.9144, allocations: 4.351 MB / 0.5289 GB, free: 79.15 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009891/0.9154, allocations: 59.27 kB / 0.5289 GB, free: 79.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.185e-05/0.9155, allocations: 59.05 kB / 0.529 GB, free: 79.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked 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.0007474/0.9162, allocations: 360.2 kB / 0.5293 GB, free: 78.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001569/0.9164, allocations: 138 kB / 0.5295 GB, free: 78.77 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001639/0.9181, allocations: 0.877 MB / 0.5303 GB, free: 78.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/0.9181, allocations: 7.031 kB / 0.5303 GB, free: 78.39 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.9181, allocations: 0 / 0.5303 GB, free: 78.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.9181, allocations: 7.375 kB / 0.5303 GB, free: 78.39 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003531/0.9216, allocations: 2.351 MB / 0.5326 GB, free: 77.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.9217, allocations: 7.266 kB / 0.5326 GB, free: 77.19 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005482/0.9222, allocations: 126.3 kB / 0.5328 GB, free: 77.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004241/0.9226, allocations: 142.7 kB / 0.5329 GB, free: 77.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.48e-05/0.9227, allocations: 24.84 kB / 0.5329 GB, free: 77.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003456/0.9262, allocations: 4.497 MB / 0.5373 GB, free: 72.9 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.9262, allocations: 3.844 kB / 0.5373 GB, free: 72.9 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002735/0.9289, allocations: 1.554 MB / 0.5388 GB, free: 71.87 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007691/0.9297, allocations: 276.9 kB / 0.5391 GB, free: 71.65 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000148/0.9299, allocations: 26.11 kB / 0.5391 GB, free: 71.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006263/0.9305, allocations: 42.03 kB / 0.5392 GB, free: 71.62 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.9307, allocations: 57.11 kB / 0.5392 GB, free: 71.61 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.456e-05/0.9307, allocations: 25.09 kB / 0.5392 GB, free: 71.61 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00129/0.932, allocations: 0.8329 MB / 0.5401 GB, free: 70.95 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.932, allocations: 0 / 0.5401 GB, free: 70.95 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00169/0.9337, allocations: 375.3 kB / 0.5404 GB, free: 70.58 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 () * Number of clocked 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.0006264/0.9344, allocations: 405.7 kB / 0.5408 GB, free: 70.26 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001854/0.9362, allocations: 1.135 MB / 0.5419 GB, free: 69.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.9362, allocations: 4 kB / 0.5419 GB, free: 69.17 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008925/0.9371, allocations: 0.7225 MB / 0.5426 GB, free: 68.46 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00153/0.9387, allocations: 333.4 kB / 0.5429 GB, free: 68.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006044/0.9447, allocations: 3.576 MB / 0.5464 GB, free: 64.86 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007406/0.9455, allocations: 1.249 MB / 0.5476 GB, free: 63.8 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0009546/0.9465, allocations: 175.1 kB / 0.5478 GB, free: 63.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002244/0.9467, allocations: 98.56 kB / 0.5479 GB, free: 63.59 MB / 378.7 MB Notification: Performance of SimCode: time 2.134e-06/0.9467, allocations: 0 / 0.5479 GB, free: 63.59 MB / 378.7 MB Notification: Performance of Templates: time 0.03484/0.9816, allocations: 19.08 MB / 0.5665 GB, free: 44.93 MB / 378.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches