Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001494/0.001494, allocations: 182.4 kB / 13.66 MB, free: 1.664 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.921/1.921, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001062/0.001062, allocations: 90.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.278e-05/2.283e-05, allocations: 0 / 321.5 MB, free: 17.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08947/0.08951, allocations: 47.58 MB / 369.1 MB, free: 2.203 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4175/0.5071, allocations: 94.75 MB / 463.8 MB, free: 14.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003019/0.5075, allocations: 83.92 kB / 463.9 MB, free: 14.63 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1899/0.6974, allocations: 44.71 MB / 0.4967 GB, free: 3.352 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.6975, allocations: 0 / 0.4967 GB, free: 3.352 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001289/0.6976, allocations: 32 kB / 0.4967 GB, free: 3.32 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.004689/0.7023, allocations: 1.605 MB / 0.4983 GB, free: 1.664 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.824e-05/0.7024, allocations: 8.031 kB / 0.4983 GB, free: 1.656 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001564/0.704, allocations: 289.8 kB / 0.4986 GB, free: 1.371 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003816/0.7078, allocations: 1.208 MB / 0.4998 GB, free: 108 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001385/0.708, allocations: 111.1 kB / 0.4999 GB, free: 15.99 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003717/0.7084, allocations: 163.9 kB / 0.5 GB, free: 15.83 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003875/0.7123, allocations: 1.43 MB / 0.5014 GB, free: 14.34 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.247e-05/0.7124, allocations: 15.83 kB / 0.5015 GB, free: 14.33 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002112/0.7126, allocations: 64 kB / 0.5015 GB, free: 14.27 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.349e-05/0.7127, allocations: 40 kB / 0.5016 GB, free: 14.23 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002983/0.7157, allocations: 0.9597 MB / 0.5025 GB, free: 13.26 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01414/0.7298, allocations: 6.412 MB / 0.5088 GB, free: 6.539 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002159/0.732, allocations: 0.5647 MB / 0.5093 GB, free: 5.961 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001197/0.7333, allocations: 419 kB / 0.5097 GB, free: 5.547 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.514e-05/0.7334, allocations: 8.562 kB / 0.5097 GB, free: 5.539 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.649e-05/0.7334, allocations: 47.08 kB / 0.5098 GB, free: 5.484 MB / 394.7 MB Notification: Performance of pre-optimization done (n=66): time 6.512e-06/0.7334, allocations: 3.984 kB / 0.5098 GB, free: 5.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=72): time 0.005213/0.7387, allocations: 1.788 MB / 0.5115 GB, free: 3.629 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.838e-05/0.7388, allocations: 115.5 kB / 0.5116 GB, free: 3.492 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002433/0.7412, allocations: 1.094 MB / 0.5127 GB, free: 2.387 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001395/0.7414, allocations: 37.7 kB / 0.5127 GB, free: 2.344 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007851/0.7422, allocations: 0.835 MB / 0.5135 GB, free: 1.5 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003/0.7425, allocations: 260.3 kB / 0.5138 GB, free: 1.242 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.287e-05/0.7426, allocations: 24 kB / 0.5138 GB, free: 1.219 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.7428, allocations: 362.7 kB / 0.5142 GB, free: 0.8555 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007193/0.7435, allocations: 250.6 kB / 0.5144 GB, free: 0.6133 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001065/0.7446, allocations: 0.7032 MB / 0.5151 GB, free: 15.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009621/0.7456, allocations: 373.9 kB / 0.5154 GB, free: 15.33 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.113e-05/0.7456, allocations: 8 kB / 0.5154 GB, free: 15.32 MB / 410.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.0031/0.7487, allocations: 1.115 MB / 0.5165 GB, free: 14.19 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.265e-05/0.7488, allocations: 11.12 kB / 0.5165 GB, free: 14.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.881e-05/0.7488, allocations: 16.59 kB / 0.5166 GB, free: 14.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006201/0.7494, allocations: 122.5 kB / 0.5167 GB, free: 14.04 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001757/0.7512, allocations: 259.6 kB / 0.5169 GB, free: 13.78 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004762/0.756, allocations: 4.223 MB / 0.521 GB, free: 9.156 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001753/0.7578, allocations: 67.81 kB / 0.5211 GB, free: 9.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001368/0.758, allocations: 52 kB / 0.5212 GB, free: 9.039 MB / 410.7 MB 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.0002968/0.7583, allocations: 184.6 kB / 0.5213 GB, free: 8.852 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002801/0.7586, allocations: 138.3 kB / 0.5215 GB, free: 8.715 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002553/0.7611, allocations: 0.7896 MB / 0.5222 GB, free: 7.895 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.848e-05/0.7612, allocations: 8 kB / 0.5222 GB, free: 7.887 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.031e-06/0.7612, allocations: 0 / 0.5222 GB, free: 7.887 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.585e-05/0.7612, allocations: 3.984 kB / 0.5223 GB, free: 7.883 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006812/0.7681, allocations: 2.256 MB / 0.5245 GB, free: 5.512 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.184e-05/0.7681, allocations: 4 kB / 0.5245 GB, free: 5.508 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001229/0.7694, allocations: 136.3 kB / 0.5246 GB, free: 5.375 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006837/0.7701, allocations: 118.5 kB / 0.5247 GB, free: 5.25 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001593/0.7703, allocations: 27.94 kB / 0.5247 GB, free: 5.223 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005264/0.7755, allocations: 4.32 MB / 0.5289 GB, free: 0.5078 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.989e-06/0.7756, allocations: 7.938 kB / 0.529 GB, free: 0.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.278/1.054, allocations: 1.432 MB / 0.5304 GB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008774/1.055, allocations: 278.3 kB / 0.5306 GB, free: 106 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002534/1.055, allocations: 17.72 kB / 0.5306 GB, free: 106 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001128/1.056, allocations: 42.89 kB / 0.5307 GB, free: 106 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000192/1.056, allocations: 63.36 kB / 0.5307 GB, free: 106 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.593e-05/1.056, allocations: 28.53 kB / 0.5308 GB, free: 106 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001805/1.058, allocations: 0.8147 MB / 0.5316 GB, free: 105.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.82e-07/1.058, allocations: 1.094 kB / 0.5316 GB, free: 105.9 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002098/1.06, allocations: 373.9 kB / 0.5319 GB, free: 105.9 MB / 410.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.0007505/1.061, allocations: 380.5 kB / 0.5323 GB, free: 105.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002385/1.063, allocations: 1.056 MB / 0.5333 GB, free: 105.5 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.587e-06/1.063, allocations: 1.656 kB / 0.5333 GB, free: 105.5 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001284/1.065, allocations: 0.6764 MB / 0.534 GB, free: 105.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002942/1.068, allocations: 333.2 kB / 0.5343 GB, free: 105.1 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007339/1.075, allocations: 2.357 MB / 0.5366 GB, free: 104.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001114/1.076, allocations: 1.248 MB / 0.5378 GB, free: 103.7 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000571/1.077, allocations: 99.28 kB / 0.5379 GB, free: 103.7 MB / 410.7 MB Notification: Performance of SimCode: time 1.513e-06/1.077, allocations: 0 / 0.5379 GB, free: 103.7 MB / 410.7 MB Notification: Performance of Templates: time 0.07256/1.149, allocations: 39.83 MB / 0.5768 GB, free: 96.28 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches