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.001498/0.001498, allocations: 189.2 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.001/2.001, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001096/0.001096, allocations: 92.53 kB / 270.9 MB, free: 8.387 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003769/0.0003771, allocations: 15.98 kB / 327 MB, free: 216 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3142/0.3146, allocations: 47.57 MB / 374.5 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1498/0.4645, allocations: 94.85 MB / 469.4 MB, free: 1.891 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003402/0.4649, allocations: 87.95 kB / 469.5 MB, free: 1.805 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4456/0.9105, allocations: 44.65 MB / 0.5021 GB, free: 93.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.9105, allocations: 0 / 0.5021 GB, free: 93.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001085/0.9107, allocations: 39.06 kB / 0.5021 GB, free: 93.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.004762/0.9154, allocations: 1.833 MB / 0.5039 GB, free: 92.36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.319e-05/0.9155, allocations: 12.69 kB / 0.5039 GB, free: 92.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001378/0.9169, allocations: 286.3 kB / 0.5042 GB, free: 92.25 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003375/0.9203, allocations: 1.206 MB / 0.5054 GB, free: 91.86 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.069e-05/0.9204, allocations: 113.5 kB / 0.5055 GB, free: 91.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003003/0.9207, allocations: 156.4 kB / 0.5056 GB, free: 91.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003544/0.9243, allocations: 1.495 MB / 0.5071 GB, free: 91.65 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.844e-05/0.9244, allocations: 17.47 kB / 0.5071 GB, free: 91.64 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000188/0.9246, allocations: 62.5 kB / 0.5072 GB, free: 91.64 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.059e-05/0.9246, allocations: 38.62 kB / 0.5072 GB, free: 91.64 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00311/0.9277, allocations: 1.063 MB / 0.5082 GB, free: 91.62 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01105/0.9388, allocations: 6.414 MB / 0.5145 GB, free: 88.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002396/0.9412, allocations: 0.6457 MB / 0.5151 GB, free: 87.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.137e-05/0.9413, allocations: 10.55 kB / 0.5151 GB, free: 87.83 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.983e-05/0.9414, allocations: 38.84 kB / 0.5152 GB, free: 87.79 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 3.106e-06/0.9414, allocations: 0 / 0.5152 GB, free: 87.79 MB / 378.7 MB Notification: Performance of matching and sorting (n=72): time 0.007527/0.9489, allocations: 2.485 MB / 0.5176 GB, free: 86.41 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.193e-05/0.949, allocations: 110.1 kB / 0.5177 GB, free: 86.29 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002064/0.9511, allocations: 1.104 MB / 0.5188 GB, free: 85.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.266e-05/0.9512, allocations: 37.48 kB / 0.5188 GB, free: 85.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005158/0.9517, allocations: 0.8401 MB / 0.5196 GB, free: 85.08 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002045/0.9519, allocations: 259.8 kB / 0.5199 GB, free: 84.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.82e-05/0.952, allocations: 23.94 kB / 0.5199 GB, free: 84.86 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.198e-05/0.9521, allocations: 353.4 kB / 0.5203 GB, free: 84.53 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009273/0.9531, allocations: 296.3 kB / 0.5205 GB, free: 84.43 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001142/0.9542, allocations: 0.7429 MB / 0.5213 GB, free: 83.72 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001097/0.9553, allocations: 415.2 kB / 0.5217 GB, free: 83.53 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.088e-05/0.9554, allocations: 9.562 kB / 0.5217 GB, free: 83.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.003343/0.9587, allocations: 1.226 MB / 0.5229 GB, free: 83.01 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.818e-05/0.9588, allocations: 13 kB / 0.5229 GB, free: 83.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.257e-05/0.9588, allocations: 14.72 kB / 0.5229 GB, free: 83.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007473/0.9596, allocations: 150.2 kB / 0.523 GB, free: 82.96 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001551/0.9611, allocations: 259.6 kB / 0.5233 GB, free: 82.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004304/0.9654, allocations: 4.345 MB / 0.5275 GB, free: 78.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001683/0.9672, allocations: 65.38 kB / 0.5276 GB, free: 78.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.699e-05/0.9673, allocations: 55.53 kB / 0.5276 GB, free: 78.74 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.000849/0.9681, allocations: 357.1 kB / 0.528 GB, free: 78.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002349/0.9684, allocations: 138.9 kB / 0.5281 GB, free: 78.39 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002732/0.9711, allocations: 0.8815 MB / 0.529 GB, free: 78.01 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.448e-06/0.9712, allocations: 10.75 kB / 0.529 GB, free: 78.01 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.9712, allocations: 3.844 kB / 0.529 GB, free: 78.01 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/0.9712, allocations: 3.234 kB / 0.529 GB, free: 78.01 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005503/0.9767, allocations: 2.351 MB / 0.5313 GB, free: 76.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.744e-06/0.9767, allocations: 0 / 0.5313 GB, free: 76.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001073/0.9778, allocations: 133 kB / 0.5314 GB, free: 76.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000724/0.9786, allocations: 142.9 kB / 0.5315 GB, free: 76.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.13e-05/0.9787, allocations: 19.11 kB / 0.5316 GB, free: 76.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004876/0.9835, allocations: 4.5 MB / 0.536 GB, free: 72.53 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/0.9836, allocations: 7.531 kB / 0.536 GB, free: 72.53 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003772/0.9874, allocations: 1.559 MB / 0.5375 GB, free: 71.49 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000644/0.988, allocations: 278.9 kB / 0.5378 GB, free: 71.27 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002558/0.9883, allocations: 23.52 kB / 0.5378 GB, free: 71.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/0.9894, allocations: 44.7 kB / 0.5378 GB, free: 71.24 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001577/0.9896, allocations: 57.5 kB / 0.5379 GB, free: 71.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.696e-05/0.9896, allocations: 21.06 kB / 0.5379 GB, free: 71.23 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00161/0.9913, allocations: 0.832 MB / 0.5387 GB, free: 70.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.9913, allocations: 4 kB / 0.5387 GB, free: 70.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001784/0.9931, allocations: 379.4 kB / 0.5391 GB, free: 70.62 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.0005882/0.9937, allocations: 382.2 kB / 0.5394 GB, free: 70.32 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00261/0.9963, allocations: 1.142 MB / 0.5406 GB, free: 69.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.9963, allocations: 4 kB / 0.5406 GB, free: 69.22 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001399/0.9977, allocations: 0.714 MB / 0.5413 GB, free: 68.52 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002404/1, allocations: 341.1 kB / 0.5416 GB, free: 68.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007437/1.008, allocations: 3.624 MB / 0.5451 GB, free: 64.86 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007775/1.008, allocations: 1.249 MB / 0.5463 GB, free: 63.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004708/1.009, allocations: 98.81 kB / 0.5464 GB, free: 63.71 MB / 378.7 MB Notification: Performance of SimCode: time 9.51e-07/1.009, allocations: 0 / 0.5464 GB, free: 63.71 MB / 378.7 MB Notification: Performance of Templates: time 0.05382/1.063, allocations: 39.86 MB / 0.5854 GB, free: 24.38 MB / 378.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