Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.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_Temperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009537/0.0009534, allocations: 195.7 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.252/1.252, allocations: 226.5 MB / 245.3 MB, free: 6.52 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007523/0.0007526, allocations: 95.2 kB / 297.4 MB, free: 6.68 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002066/0.0002066, allocations: 4 kB / 357.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1812/0.1814, allocations: 51.3 MB / 408.7 MB, free: 27.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09902/0.2805, allocations: 95.85 MB / 0.4927 GB, free: 11.71 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002574/0.2808, allocations: 87.95 kB / 0.4928 GB, free: 11.63 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2018/0.4826, allocations: 23.87 MB / 0.5161 GB, free: 91.06 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.4826, allocations: 0 / 0.5161 GB, free: 91.06 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.577e-05/0.4827, allocations: 18.88 kB / 0.5161 GB, free: 91.06 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: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.00141/0.4841, allocations: 1.128 MB / 0.5172 GB, free: 90.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.957e-05/0.4841, allocations: 7.062 kB / 0.5172 GB, free: 90.29 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005828/0.4847, allocations: 190.1 kB / 0.5174 GB, free: 90.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008739/0.4856, allocations: 0.69 MB / 0.5181 GB, free: 89.76 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.42e-05/0.4856, allocations: 66.25 kB / 0.5181 GB, free: 89.73 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.993e-05/0.4857, allocations: 86.8 kB / 0.5182 GB, free: 89.7 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001095/0.4868, allocations: 0.8215 MB / 0.519 GB, free: 89.3 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.71e-05/0.4869, allocations: 3.906 kB / 0.519 GB, free: 89.3 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.096e-05/0.4869, allocations: 42.28 kB / 0.5191 GB, free: 89.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.317e-05/0.487, allocations: 20.72 kB / 0.5191 GB, free: 89.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008835/0.4879, allocations: 0.5571 MB / 0.5196 GB, free: 89.07 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003093/0.491, allocations: 3.662 MB / 0.5232 GB, free: 86.45 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004212/0.4914, allocations: 250 kB / 0.5234 GB, free: 86.34 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002075/0.4916, allocations: 123.1 kB / 0.5236 GB, free: 86.29 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.709e-05/0.4916, allocations: 15.5 kB / 0.5236 GB, free: 86.29 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.38e-05/0.4917, allocations: 34.44 kB / 0.5236 GB, free: 86.25 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.863e-06/0.4917, allocations: 0 / 0.5236 GB, free: 86.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.001603/0.4933, allocations: 1.104 MB / 0.5247 GB, free: 85.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.504e-05/0.4933, allocations: 80.89 kB / 0.5248 GB, free: 85.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007219/0.494, allocations: 0.781 MB / 0.5255 GB, free: 85.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/0.4941, allocations: 33.7 kB / 0.5255 GB, free: 84.98 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001961/0.4943, allocations: 0.5089 MB / 0.526 GB, free: 84.53 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.752e-05/0.4943, allocations: 98.19 kB / 0.5261 GB, free: 84.45 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.857e-05/0.4944, allocations: 11.81 kB / 0.5261 GB, free: 84.44 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.477e-05/0.4944, allocations: 333.7 kB / 0.5265 GB, free: 84.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000235/0.4946, allocations: 134.1 kB / 0.5266 GB, free: 84.05 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003062/0.495, allocations: 433.4 kB / 0.527 GB, free: 83.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005799/0.4955, allocations: 0.5983 MB / 0.5276 GB, free: 82.9 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.4956, allocations: 0 / 0.5276 GB, free: 82.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.0008296/0.4964, allocations: 0.6344 MB / 0.5282 GB, free: 82.26 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.4964, allocations: 12 kB / 0.5282 GB, free: 82.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.4964, allocations: 8 kB / 0.5282 GB, free: 82.24 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001152/0.4966, allocations: 32.84 kB / 0.5283 GB, free: 82.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003896/0.497, allocations: 151.7 kB / 0.5284 GB, free: 82.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005766/0.4975, allocations: 1.299 MB / 0.5297 GB, free: 80.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004022/0.498, allocations: 44.05 kB / 0.5297 GB, free: 80.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.055e-05/0.498, allocations: 28 kB / 0.5297 GB, free: 80.55 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (75): * Single equations (assignments): 74 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002451/0.4982, allocations: 237.5 kB / 0.53 GB, free: 80.31 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.784e-05/0.4983, allocations: 83.06 kB / 0.5301 GB, free: 80.23 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005709/0.4989, allocations: 350.7 kB / 0.5304 GB, free: 79.87 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.4989, allocations: 7.938 kB / 0.5304 GB, free: 79.86 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.4989, allocations: 0 / 0.5304 GB, free: 79.86 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.4989, allocations: 7.922 kB / 0.5304 GB, free: 79.86 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001255/0.5002, allocations: 1.122 MB / 0.5315 GB, free: 78.66 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.5002, allocations: 4 kB / 0.5315 GB, free: 78.66 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002605/0.5005, allocations: 68.12 kB / 0.5316 GB, free: 78.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.877e-05/0.5006, allocations: 24.84 kB / 0.5316 GB, free: 78.56 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.985e-05/0.5006, allocations: 11.94 kB / 0.5316 GB, free: 78.55 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005214/0.5011, allocations: 1.274 MB / 0.5328 GB, free: 77.14 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.5011, allocations: 0 / 0.5328 GB, free: 77.14 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000719/0.5019, allocations: 0.6001 MB / 0.5334 GB, free: 76.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001725/0.502, allocations: 184.1 kB / 0.5336 GB, free: 76.3 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.188e-05/0.5021, allocations: 8 kB / 0.5336 GB, free: 76.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003259/0.5025, allocations: 31.92 kB / 0.5336 GB, free: 76.26 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.932e-05/0.5025, allocations: 27.91 kB / 0.5337 GB, free: 76.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.583e-05/0.5025, allocations: 8 kB / 0.5337 GB, free: 76.23 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005105/0.5031, allocations: 0.5264 MB / 0.5342 GB, free: 75.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5031, allocations: 4 kB / 0.5342 GB, free: 75.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006379/0.5037, allocations: 203.9 kB / 0.5344 GB, free: 75.5 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.phi,dcpm.inertiaRotor.w,dcpm.la.i) * 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 (28): * Single equations (assignments): 27 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003256/0.504, allocations: 334.1 kB / 0.5347 GB, free: 75.2 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006869/0.5047, allocations: 484.4 kB / 0.5352 GB, free: 74.72 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.5048, allocations: 0 / 0.5352 GB, free: 74.72 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003015/0.5051, allocations: 247.3 kB / 0.5354 GB, free: 74.46 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001103/0.5062, allocations: 218.8 kB / 0.5356 GB, free: 74.25 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001747/0.5079, allocations: 1.836 MB / 0.5374 GB, free: 72.36 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002815/0.5082, allocations: 0.9529 MB / 0.5383 GB, free: 71.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/0.5084, allocations: 59.44 kB / 0.5384 GB, free: 71.32 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.5084, allocations: 0 / 0.5384 GB, free: 71.32 MB / 378.7 MB Notification: Performance of Templates: time 0.01295/0.5213, allocations: 15.26 MB / 0.5533 GB, free: 56.09 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Temperature/DCPM_Temperature.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Temperature.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches