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.000913/0.0009131, allocations: 183 kB / 18.04 MB, free: 3.75 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.346/1.346, allocations: 205.4 MB / 224.2 MB, free: 9.008 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.0008215/0.0008216, allocations: 86.34 kB / 272.5 MB, free: 8.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002891/0.0002891, allocations: 8 kB / 329.5 MB, free: 15.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2287/0.229, allocations: 47.58 MB / 377 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1041/0.3332, allocations: 94.99 MB / 472 MB, free: 1.508 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002479/0.3335, allocations: 83.95 kB / 472.1 MB, free: 1.426 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2587/0.5922, allocations: 44.48 MB / 0.5045 GB, free: 94.04 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.5922, allocations: 0 / 0.5045 GB, free: 94.04 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.454e-05/0.5923, allocations: 37.22 kB / 0.5045 GB, free: 94.04 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.002597/0.5949, allocations: 1.814 MB / 0.5063 GB, free: 93.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/0.5949, allocations: 7.938 kB / 0.5063 GB, free: 93.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000773/0.5957, allocations: 287.9 kB / 0.5066 GB, free: 92.96 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001836/0.5976, allocations: 1.249 MB / 0.5078 GB, free: 92.53 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.262e-05/0.5976, allocations: 121.8 kB / 0.5079 GB, free: 92.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001733/0.5978, allocations: 158.1 kB / 0.5081 GB, free: 92.52 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002193/0.6, allocations: 1.507 MB / 0.5095 GB, free: 92.32 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.205e-05/0.6001, allocations: 11.81 kB / 0.5095 GB, free: 92.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001104/0.6002, allocations: 70 kB / 0.5096 GB, free: 92.3 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.162e-05/0.6002, allocations: 38.66 kB / 0.5096 GB, free: 92.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001775/0.602, allocations: 1.067 MB / 0.5107 GB, free: 92.29 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006228/0.6083, allocations: 6.406 MB / 0.5169 GB, free: 88.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001315/0.6096, allocations: 0.6336 MB / 0.5176 GB, free: 88.39 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007395/0.6103, allocations: 471.6 kB / 0.518 GB, free: 88.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.849e-05/0.6104, allocations: 8.406 kB / 0.518 GB, free: 88.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.831e-05/0.6104, allocations: 39.12 kB / 0.518 GB, free: 88.18 MB / 378.7 MB Notification: Performance of pre-optimization done (n=66): time 2.495e-06/0.6104, allocations: 3.938 kB / 0.5181 GB, free: 88.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=72): time 0.004354/0.6148, allocations: 2.504 MB / 0.5205 GB, free: 86.81 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.267e-05/0.6148, allocations: 111.2 kB / 0.5206 GB, free: 86.68 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001436/0.6163, allocations: 1.249 MB / 0.5218 GB, free: 86.16 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.757e-05/0.6163, allocations: 41.42 kB / 0.5219 GB, free: 86.12 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003552/0.6167, allocations: 0.8557 MB / 0.5227 GB, free: 85.45 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001133/0.6168, allocations: 269.5 kB / 0.523 GB, free: 85.25 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.552e-05/0.6169, allocations: 23.09 kB / 0.523 GB, free: 85.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.075e-05/0.6169, allocations: 356.6 kB / 0.5233 GB, free: 84.9 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005027/0.6174, allocations: 296.5 kB / 0.5236 GB, free: 84.79 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006506/0.6181, allocations: 0.7426 MB / 0.5243 GB, free: 84.09 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00125/0.6194, allocations: 1.109 MB / 0.5254 GB, free: 83.17 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.79e-06/0.6194, allocations: 3.438 kB / 0.5254 GB, free: 83.17 MB / 378.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.002023/0.6214, allocations: 1.312 MB / 0.5267 GB, free: 82.61 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.905e-05/0.6214, allocations: 11 kB / 0.5267 GB, free: 82.61 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/0.6215, allocations: 19.22 kB / 0.5267 GB, free: 82.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004211/0.6219, allocations: 146.3 kB / 0.5269 GB, free: 82.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007647/0.6227, allocations: 267.4 kB / 0.5271 GB, free: 82.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002609/0.6253, allocations: 4.319 MB / 0.5313 GB, free: 78.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008497/0.6261, allocations: 69.73 kB / 0.5314 GB, free: 78.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.391e-05/0.6262, allocations: 57.36 kB / 0.5315 GB, free: 78.34 MB / 378.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 () * 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.0005519/0.6268, allocations: 351.6 kB / 0.5318 GB, free: 78.08 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000141/0.6269, allocations: 136.2 kB / 0.5319 GB, free: 78.01 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001546/0.6285, allocations: 0.8766 MB / 0.5328 GB, free: 77.62 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.933e-06/0.6285, allocations: 11.59 kB / 0.5328 GB, free: 77.62 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.6285, allocations: 3.094 kB / 0.5328 GB, free: 77.62 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.6285, allocations: 3.562 kB / 0.5328 GB, free: 77.62 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003156/0.6317, allocations: 2.349 MB / 0.5351 GB, free: 76.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.6317, allocations: 7.469 kB / 0.5351 GB, free: 76.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000578/0.6323, allocations: 129.7 kB / 0.5352 GB, free: 76.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003887/0.6327, allocations: 151.9 kB / 0.5354 GB, free: 76.35 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.798e-05/0.6328, allocations: 15.84 kB / 0.5354 GB, free: 76.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002935/0.6357, allocations: 4.458 MB / 0.5397 GB, free: 72.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.409e-06/0.6357, allocations: 10.25 kB / 0.5397 GB, free: 72.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002066/0.6378, allocations: 1.354 MB / 0.5411 GB, free: 70.77 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004306/0.6383, allocations: 280.4 kB / 0.5413 GB, free: 70.51 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001449/0.6384, allocations: 19.8 kB / 0.5414 GB, free: 70.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005817/0.639, allocations: 43.41 kB / 0.5414 GB, free: 70.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.6391, allocations: 62.53 kB / 0.5415 GB, free: 70.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.576e-05/0.6392, allocations: 24 kB / 0.5415 GB, free: 70.39 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001/0.6402, allocations: 0.8304 MB / 0.5423 GB, free: 69.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6402, allocations: 4 kB / 0.5423 GB, free: 69.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001193/0.6414, allocations: 379.9 kB / 0.5427 GB, free: 69.3 MB / 378.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 () * 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.0004273/0.6418, allocations: 393.9 kB / 0.543 GB, free: 69 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001554/0.6434, allocations: 1.139 MB / 0.5441 GB, free: 67.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.14e-06/0.6434, allocations: 4 kB / 0.5441 GB, free: 67.9 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008449/0.6442, allocations: 0.7177 MB / 0.5448 GB, free: 67.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002194/0.6464, allocations: 342.7 kB / 0.5452 GB, free: 66.92 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004715/0.6512, allocations: 3.584 MB / 0.5487 GB, free: 63.57 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005459/0.6517, allocations: 1.211 MB / 0.5499 GB, free: 62.52 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007947/0.6525, allocations: 179.8 kB / 0.55 GB, free: 62.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001979/0.6528, allocations: 91 kB / 0.5501 GB, free: 62.3 MB / 378.7 MB Notification: Performance of SimCode: time 1.032e-06/0.6528, allocations: 0 / 0.5501 GB, free: 62.3 MB / 378.7 MB Notification: Performance of Templates: time 0.02853/0.6813, allocations: 19.38 MB / 0.569 GB, free: 43.22 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/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_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches