Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 221.3 MB / 235.5 MB, free: 2.953 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009098/0.0009096, allocations: 95.55 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.688e-05/2.716e-05, allocations: 0 / 343.9 MB, free: 4.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1018, allocations: 50.42 MB / 394.4 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3355/0.4374, allocations: 95.92 MB / 490.3 MB, free: 7.539 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002207/0.4377, allocations: 85.55 kB / 490.4 MB, free: 7.457 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1147/0.5524, allocations: 44.72 MB / 0.5225 GB, free: 10.42 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.5524, allocations: 0 / 0.5225 GB, free: 10.42 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.86e-05/0.5525, allocations: 36 kB / 0.5226 GB, free: 10.39 MB / 410.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.002486/0.555, allocations: 1.605 MB / 0.5241 GB, free: 8.73 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.198e-05/0.555, allocations: 12.03 kB / 0.5241 GB, free: 8.719 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002455/0.5553, allocations: 223.9 kB / 0.5244 GB, free: 8.488 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008257/0.5561, allocations: 281.5 kB / 0.5246 GB, free: 8.211 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002186/0.5583, allocations: 1.204 MB / 0.5258 GB, free: 6.949 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.463e-05/0.5584, allocations: 119.1 kB / 0.5259 GB, free: 6.832 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002122/0.5586, allocations: 159.9 kB / 0.5261 GB, free: 6.676 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002402/0.561, allocations: 1.43 MB / 0.5275 GB, free: 5.184 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.113e-05/0.5611, allocations: 15.84 kB / 0.5275 GB, free: 5.168 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001259/0.5612, allocations: 64 kB / 0.5275 GB, free: 5.105 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.836e-05/0.5613, allocations: 36 kB / 0.5276 GB, free: 5.07 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001687/0.563, allocations: 0.9637 MB / 0.5285 GB, free: 4.102 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007927/0.5709, allocations: 6.408 MB / 0.5348 GB, free: 13.38 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001251/0.5722, allocations: 0.5608 MB / 0.5353 GB, free: 12.81 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007026/0.5729, allocations: 415 kB / 0.5357 GB, free: 12.4 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.015e-05/0.573, allocations: 16.7 kB / 0.5357 GB, free: 12.38 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.43e-05/0.573, allocations: 43.12 kB / 0.5358 GB, free: 12.33 MB / 426.7 MB Notification: Performance of pre-optimization done (n=66): time 2.876e-06/0.573, allocations: 3.938 kB / 0.5358 GB, free: 12.33 MB / 426.7 MB Notification: Performance of matching and sorting (n=72): time 0.003075/0.5761, allocations: 1.795 MB / 0.5375 GB, free: 10.47 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.425e-05/0.5762, allocations: 111.6 kB / 0.5376 GB, free: 10.34 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001394/0.5776, allocations: 1.086 MB / 0.5387 GB, free: 9.238 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.354e-05/0.5776, allocations: 41.64 kB / 0.5387 GB, free: 9.191 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005602/0.5782, allocations: 0.8686 MB / 0.5396 GB, free: 8.312 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000172/0.5784, allocations: 260.3 kB / 0.5398 GB, free: 8.055 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.957e-05/0.5784, allocations: 20 kB / 0.5399 GB, free: 8.035 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.5786, allocations: 349.9 kB / 0.5402 GB, free: 7.688 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004178/0.579, allocations: 250.6 kB / 0.5404 GB, free: 7.441 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006746/0.5797, allocations: 0.6993 MB / 0.5411 GB, free: 6.531 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005813/0.5803, allocations: 377.9 kB / 0.5415 GB, free: 6.164 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.064e-06/0.5803, allocations: 4 kB / 0.5415 GB, free: 6.16 MB / 426.7 MB Notification: Performance of matching and sorting (n=146) (initialization): time 0.001905/0.5822, allocations: 1.216 MB / 0.5427 GB, free: 4.922 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.488e-05/0.5822, allocations: 12 kB / 0.5427 GB, free: 4.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.697e-05/0.5823, allocations: 16 kB / 0.5427 GB, free: 4.895 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003903/0.5826, allocations: 119.1 kB / 0.5428 GB, free: 4.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008388/0.5835, allocations: 267.5 kB / 0.5431 GB, free: 4.508 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2103/0.7938, allocations: 4.209 MB / 0.5472 GB, free: 106.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001295/0.7951, allocations: 68.28 kB / 0.5472 GB, free: 106.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.151e-05/0.7952, allocations: 55.34 kB / 0.5473 GB, free: 106.9 MB / 426.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.0001979/0.7954, allocations: 180.2 kB / 0.5475 GB, free: 106.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001826/0.7956, allocations: 136.2 kB / 0.5476 GB, free: 106.8 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001691/0.7973, allocations: 0.7823 MB / 0.5483 GB, free: 106.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.338e-06/0.7973, allocations: 11.97 kB / 0.5484 GB, free: 106.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.7973, allocations: 1.219 kB / 0.5484 GB, free: 106.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-06/0.7974, allocations: 5.547 kB / 0.5484 GB, free: 106.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003516/0.8009, allocations: 2.261 MB / 0.5506 GB, free: 106.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.8009, allocations: 4.219 kB / 0.5506 GB, free: 106.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005922/0.8015, allocations: 132.8 kB / 0.5507 GB, free: 106.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003419/0.8018, allocations: 116.2 kB / 0.5508 GB, free: 106.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.622e-05/0.8019, allocations: 18.41 kB / 0.5508 GB, free: 106.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002628/0.8045, allocations: 4.328 MB / 0.5551 GB, free: 102.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/0.8046, allocations: 6.469 kB / 0.5551 GB, free: 102.4 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00183/0.8064, allocations: 1.432 MB / 0.5565 GB, free: 101.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004921/0.8069, allocations: 278.9 kB / 0.5567 GB, free: 101.7 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001493/0.8071, allocations: 26.2 kB / 0.5568 GB, free: 101.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000612/0.8077, allocations: 48.34 kB / 0.5568 GB, free: 101.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001323/0.8078, allocations: 59.95 kB / 0.5569 GB, free: 101.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.293e-05/0.8079, allocations: 26.86 kB / 0.5569 GB, free: 101.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001242/0.8091, allocations: 0.8165 MB / 0.5577 GB, free: 101.6 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.8091, allocations: 3.094 kB / 0.5577 GB, free: 101.6 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001446/0.8106, allocations: 374.8 kB / 0.558 GB, free: 101.6 MB / 426.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.002493/0.8131, allocations: 3.256 MB / 0.5612 GB, free: 99.45 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001462/0.8146, allocations: 1.053 MB / 0.5623 GB, free: 99.11 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.8146, allocations: 0.9375 kB / 0.5623 GB, free: 99.11 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008288/0.8154, allocations: 0.6791 MB / 0.5629 GB, free: 98.77 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001523/0.817, allocations: 336.3 kB / 0.5632 GB, free: 98.76 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005011/0.822, allocations: 2.538 MB / 0.5657 GB, free: 97.93 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007443/0.8227, allocations: 1.248 MB / 0.5669 GB, free: 97.2 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0007802/0.8235, allocations: 179 kB / 0.5671 GB, free: 97.16 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006712/0.8242, allocations: 0.6212 MB / 0.5677 GB, free: 97.15 MB / 426.7 MB Notification: Performance of SimCode: time 6.92e-07/0.8242, allocations: 0 / 0.5677 GB, free: 97.15 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04998/0.8742, allocations: 32.6 MB / 0.5996 GB, free: 93.99 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001585/0.8744, allocations: 206.1 kB / 0.5997 GB, free: 93.76 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.941/3.816, allocations: 0 / 0.5997 GB, free: 93.76 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat does not exist to compare? outputFormat=mat