Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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_CurrentControlled,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled",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.001042/0.001042, allocations: 177.1 kB / 13.64 MB, free: 1.672 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.328/1.328, allocations: 221.4 MB / 235.5 MB, free: 2.949 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.0008254/0.0008254, allocations: 98.33 kB / 286.5 MB, free: 244 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.146e-05/3.148e-05, allocations: 8 kB / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08505/0.0851, allocations: 50.41 MB / 394.3 MB, free: 1.773 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3229/0.4081, allocations: 99.29 MB / 493.6 MB, free: 4.184 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002798/0.4084, allocations: 89.45 kB / 493.7 MB, free: 4.098 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07184/0.4803, allocations: 27.53 MB / 0.509 GB, free: 8.395 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.4803, allocations: 0.875 kB / 0.509 GB, free: 8.395 MB / 394.7 MB Notification: Performance of Transformations before backend: time 6.96e-05/0.4804, allocations: 27.94 kB / 0.5091 GB, free: 8.367 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.001866/0.4822, allocations: 1.157 MB / 0.5102 GB, free: 7.16 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.4823, allocations: 12.03 kB / 0.5102 GB, free: 7.148 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001623/0.4825, allocations: 148.1 kB / 0.5103 GB, free: 6.996 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005863/0.4831, allocations: 190.3 kB / 0.5105 GB, free: 6.809 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001431/0.4845, allocations: 0.8438 MB / 0.5114 GB, free: 5.922 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.566e-05/0.4846, allocations: 66 kB / 0.5114 GB, free: 5.859 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001386/0.4847, allocations: 107.9 kB / 0.5115 GB, free: 5.754 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001422/0.4862, allocations: 0.9031 MB / 0.5124 GB, free: 4.809 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.121e-05/0.4862, allocations: 7.984 kB / 0.5124 GB, free: 4.801 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.726e-05/0.4863, allocations: 40 kB / 0.5124 GB, free: 4.762 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.013e-05/0.4863, allocations: 24 kB / 0.5125 GB, free: 4.738 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009865/0.4873, allocations: 0.5858 MB / 0.513 GB, free: 4.152 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005225/0.4925, allocations: 4.161 MB / 0.5171 GB, free: 15.75 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007832/0.4934, allocations: 357.7 kB / 0.5174 GB, free: 15.4 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002479/0.4936, allocations: 144.8 kB / 0.5176 GB, free: 15.25 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.064e-05/0.4937, allocations: 7.984 kB / 0.5176 GB, free: 15.25 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.511e-05/0.4937, allocations: 38.5 kB / 0.5176 GB, free: 15.2 MB / 410.7 MB Notification: Performance of pre-optimization done (n=37): time 3.016e-06/0.4937, allocations: 0 / 0.5176 GB, free: 15.2 MB / 410.7 MB Notification: Performance of matching and sorting (n=40): time 0.001782/0.4955, allocations: 1.053 MB / 0.5187 GB, free: 14.09 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.468e-05/0.4956, allocations: 85.11 kB / 0.5187 GB, free: 13.99 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009269/0.4965, allocations: 0.7408 MB / 0.5195 GB, free: 13.22 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.89e-05/0.4965, allocations: 33.7 kB / 0.5195 GB, free: 13.18 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003477/0.4969, allocations: 0.5915 MB / 0.5201 GB, free: 12.58 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.005e-05/0.497, allocations: 142 kB / 0.5202 GB, free: 12.44 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.644e-05/0.497, allocations: 16 kB / 0.5202 GB, free: 12.43 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.83e-05/0.4971, allocations: 333.9 kB / 0.5205 GB, free: 12.09 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002297/0.4974, allocations: 149.5 kB / 0.5207 GB, free: 11.95 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004496/0.4978, allocations: 458.7 kB / 0.5211 GB, free: 11.35 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003404/0.4982, allocations: 228.1 kB / 0.5213 GB, free: 11.13 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.4982, allocations: 4 kB / 0.5213 GB, free: 11.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001019/0.4992, allocations: 0.7042 MB / 0.522 GB, free: 10.41 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001223/0.5004, allocations: 4.085 MB / 0.526 GB, free: 6.004 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/0.5005, allocations: 16 kB / 0.526 GB, free: 5.988 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001687/0.5006, allocations: 36.84 kB / 0.5261 GB, free: 5.949 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000596/0.5012, allocations: 175.7 kB / 0.5262 GB, free: 5.777 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009453/0.5022, allocations: 1.288 MB / 0.5275 GB, free: 4.359 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006271/0.5028, allocations: 31.98 kB / 0.5275 GB, free: 4.328 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.399e-05/0.5029, allocations: 39.94 kB / 0.5276 GB, free: 4.289 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.706e-06/0.5029, allocations: 4 kB / 0.5276 GB, free: 4.285 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008743/0.5038, allocations: 0.5947 MB / 0.5281 GB, free: 3.688 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.271e-05/0.5038, allocations: 15.98 kB / 0.5282 GB, free: 3.672 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.138e-05/0.5039, allocations: 40.88 kB / 0.5282 GB, free: 3.629 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004998/0.5044, allocations: 167.8 kB / 0.5284 GB, free: 3.465 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008013/0.5052, allocations: 1.288 MB / 0.5296 GB, free: 2.043 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006146/0.5059, allocations: 28 kB / 0.5296 GB, free: 2.016 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.448e-05/0.5059, allocations: 47.88 kB / 0.5297 GB, free: 1.969 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * 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.0001601/0.5061, allocations: 152.7 kB / 0.5298 GB, free: 1.812 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001335/0.5062, allocations: 94.83 kB / 0.5299 GB, free: 1.719 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007429/0.507, allocations: 399.4 kB / 0.5303 GB, free: 1.32 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.507, allocations: 4 kB / 0.5303 GB, free: 1.316 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.507, allocations: 4 kB / 0.5303 GB, free: 1.312 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.507, allocations: 4.031 kB / 0.5303 GB, free: 1.309 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002047/0.5091, allocations: 1.305 MB / 0.5316 GB, free: 15.92 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.5091, allocations: 0 / 0.5316 GB, free: 15.92 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003648/0.5095, allocations: 75.91 kB / 0.5317 GB, free: 15.85 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001328/0.5096, allocations: 25.06 kB / 0.5317 GB, free: 15.82 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.865e-05/0.5097, allocations: 15.95 kB / 0.5317 GB, free: 15.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008143/0.5105, allocations: 1.268 MB / 0.5329 GB, free: 14.4 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.015e-06/0.5105, allocations: 4 kB / 0.5329 GB, free: 14.4 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008328/0.5113, allocations: 0.7415 MB / 0.5337 GB, free: 13.57 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003243/0.5117, allocations: 204 kB / 0.5339 GB, free: 13.35 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.662e-05/0.5118, allocations: 12 kB / 0.5339 GB, free: 13.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003688/0.5121, allocations: 15.98 kB / 0.5339 GB, free: 13.32 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.198e-05/0.5122, allocations: 31.91 kB / 0.5339 GB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.589e-05/0.5123, allocations: 16.08 kB / 0.5339 GB, free: 13.28 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007272/0.513, allocations: 0.5627 MB / 0.5345 GB, free: 12.7 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.513, allocations: 4 kB / 0.5345 GB, free: 12.7 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001226/0.5142, allocations: 383.9 kB / 0.5349 GB, free: 12.32 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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.001594/0.5158, allocations: 1.957 MB / 0.5368 GB, free: 10.29 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001409/0.5173, allocations: 0.956 MB / 0.5377 GB, free: 9.305 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.5173, allocations: 0 / 0.5377 GB, free: 9.305 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003519/0.5176, allocations: 266.4 kB / 0.538 GB, free: 9.031 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009888/0.5186, allocations: 222.2 kB / 0.5382 GB, free: 8.816 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002728/0.5214, allocations: 1.508 MB / 0.5396 GB, free: 7.242 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005684/0.522, allocations: 1.038 MB / 0.5407 GB, free: 6.176 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0007179/0.5227, allocations: 171.4 kB / 0.5408 GB, free: 6.004 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004071/0.5231, allocations: 387.3 kB / 0.5412 GB, free: 5.625 MB / 426.7 MB Notification: Performance of SimCode: time 5.11e-07/0.5231, allocations: 0 / 0.5412 GB, free: 5.625 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2331/0.7562, allocations: 21.87 MB / 0.5625 GB, free: 115.9 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001577/0.7564, allocations: 194.9 kB / 0.5627 GB, free: 115.7 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.593/3.349, allocations: 0 / 0.5627 GB, free: 115.7 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_CurrentControlled.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat does not exist to compare? outputFormat=mat