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.001677/0.001677, allocations: 180.6 kB / 16.39 MB, free: 5.762 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.34/1.34, allocations: 223.2 MB / 240.3 MB, free: 10.17 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008713/0.000871, allocations: 93.17 kB / 291.5 MB, free: 10.72 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002327/0.0002326, allocations: 4 kB / 351.2 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2062/0.2064, allocations: 50.41 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1148/0.3213, allocations: 99.36 MB / 0.4892 GB, free: 13.06 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002633/0.3216, allocations: 91.94 kB / 0.4893 GB, free: 12.97 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2643/0.586, allocations: 27.53 MB / 0.5162 GB, free: 93.36 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.586, allocations: 0 / 0.5162 GB, free: 93.36 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.412e-05/0.5861, allocations: 21.62 kB / 0.5162 GB, free: 93.36 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: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.002912/0.589, allocations: 1.322 MB / 0.5175 GB, free: 92.48 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.602e-05/0.5891, allocations: 8.469 kB / 0.5175 GB, free: 92.48 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003095/0.5894, allocations: 150.3 kB / 0.5176 GB, free: 92.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007198/0.5902, allocations: 188.7 kB / 0.5178 GB, free: 92.31 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00174/0.5919, allocations: 0.8512 MB / 0.5187 GB, free: 91.78 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.932e-05/0.592, allocations: 71.81 kB / 0.5187 GB, free: 91.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001472/0.5921, allocations: 104.1 kB / 0.5188 GB, free: 91.71 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/0.5936, allocations: 0.9301 MB / 0.5197 GB, free: 91.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.454e-05/0.5937, allocations: 7.406 kB / 0.5197 GB, free: 91.25 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.742e-05/0.5938, allocations: 38.91 kB / 0.5198 GB, free: 91.22 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.957e-05/0.5938, allocations: 23.12 kB / 0.5198 GB, free: 91.22 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001165/0.595, allocations: 0.623 MB / 0.5204 GB, free: 90.98 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005268/0.6003, allocations: 4.165 MB / 0.5245 GB, free: 87.91 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008683/0.6012, allocations: 381 kB / 0.5248 GB, free: 87.71 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.241e-05/0.6012, allocations: 3.875 kB / 0.5248 GB, free: 87.71 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.164e-05/0.6013, allocations: 34.41 kB / 0.5249 GB, free: 87.67 MB / 378.7 MB Notification: Performance of pre-optimization done (n=37): time 3.246e-06/0.6013, allocations: 0 / 0.5249 GB, free: 87.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=40): time 0.0027/0.604, allocations: 1.304 MB / 0.5261 GB, free: 86.47 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.604e-05/0.604, allocations: 81.11 kB / 0.5262 GB, free: 86.38 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001128/0.6052, allocations: 0.7522 MB / 0.527 GB, free: 85.6 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.107e-05/0.6052, allocations: 37.7 kB / 0.527 GB, free: 85.56 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003004/0.6055, allocations: 0.5882 MB / 0.5276 GB, free: 84.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.009e-05/0.6056, allocations: 148.6 kB / 0.5277 GB, free: 84.82 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.278e-05/0.6057, allocations: 12 kB / 0.5277 GB, free: 84.81 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.059e-05/0.6057, allocations: 337.9 kB / 0.528 GB, free: 84.47 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002816/0.606, allocations: 157.9 kB / 0.5282 GB, free: 84.32 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003998/0.6064, allocations: 488.8 kB / 0.5287 GB, free: 83.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003995/0.6068, allocations: 239.8 kB / 0.5289 GB, free: 83.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.347e-06/0.6068, allocations: 4 kB / 0.5289 GB, free: 83.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001198/0.6081, allocations: 0.7354 MB / 0.5296 GB, free: 82.71 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006875/0.6088, allocations: 4.095 MB / 0.5336 GB, free: 78.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.544e-05/0.6088, allocations: 8 kB / 0.5336 GB, free: 78.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001722/0.609, allocations: 32.84 kB / 0.5336 GB, free: 78.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005448/0.6095, allocations: 171.7 kB / 0.5338 GB, free: 78.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007944/0.6103, allocations: 1.292 MB / 0.5351 GB, free: 76.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006743/0.611, allocations: 39.8 kB / 0.5351 GB, free: 76.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.775e-05/0.6111, allocations: 43.98 kB / 0.5352 GB, free: 76.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.355e-06/0.6111, allocations: 8.156 kB / 0.5352 GB, free: 76.58 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008585/0.6119, allocations: 0.6222 MB / 0.5358 GB, free: 75.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.508e-05/0.612, allocations: 12 kB / 0.5358 GB, free: 75.94 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.188e-05/0.6121, allocations: 36.84 kB / 0.5358 GB, free: 75.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004874/0.6126, allocations: 167.7 kB / 0.536 GB, free: 75.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006403/0.6132, allocations: 1.288 MB / 0.5372 GB, free: 74.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006117/0.6138, allocations: 31.91 kB / 0.5373 GB, free: 74.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.055e-05/0.6139, allocations: 36 kB / 0.5373 GB, free: 74.25 MB / 378.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 () * Number of clocked 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.0005543/0.6145, allocations: 345.5 kB / 0.5376 GB, free: 73.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001697/0.6146, allocations: 94.86 kB / 0.5377 GB, free: 73.81 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008078/0.6155, allocations: 415.5 kB / 0.5381 GB, free: 73.39 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.989e-06/0.6155, allocations: 4 kB / 0.5381 GB, free: 73.39 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.6155, allocations: 4 kB / 0.5381 GB, free: 73.39 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.36e-05/0.6155, allocations: 3.984 kB / 0.5381 GB, free: 73.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00198/0.6175, allocations: 1.333 MB / 0.5394 GB, free: 71.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.6175, allocations: 0 / 0.5394 GB, free: 71.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003556/0.6179, allocations: 75.89 kB / 0.5395 GB, free: 71.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.498e-05/0.618, allocations: 24.84 kB / 0.5395 GB, free: 71.88 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.946e-05/0.618, allocations: 12.16 kB / 0.5395 GB, free: 71.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006444/0.6187, allocations: 1.284 MB / 0.5408 GB, free: 70.45 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/0.6187, allocations: 8.281 kB / 0.5408 GB, free: 70.44 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009702/0.6197, allocations: 0.7843 MB / 0.5416 GB, free: 69.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000356/0.6201, allocations: 199.9 kB / 0.5418 GB, free: 69.35 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001474/0.6202, allocations: 12 kB / 0.5418 GB, free: 69.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004127/0.6206, allocations: 15.98 kB / 0.5418 GB, free: 69.32 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.584e-05/0.6207, allocations: 39.86 kB / 0.5418 GB, free: 69.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-05/0.6207, allocations: 15.98 kB / 0.5418 GB, free: 69.27 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007246/0.6215, allocations: 0.5702 MB / 0.5424 GB, free: 68.69 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.6215, allocations: 0 / 0.5424 GB, free: 68.69 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001374/0.6229, allocations: 379.9 kB / 0.5428 GB, free: 68.32 MB / 378.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 () * Number of clocked 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.001574/0.6244, allocations: 2.014 MB / 0.5447 GB, free: 66.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001521/0.626, allocations: 0.9628 MB / 0.5457 GB, free: 65.27 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.626, allocations: 0 / 0.5457 GB, free: 65.27 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003417/0.6263, allocations: 284 kB / 0.5459 GB, free: 64.98 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001061/0.6274, allocations: 216.3 kB / 0.5461 GB, free: 64.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008917/0.6363, allocations: 12.36 MB / 0.5582 GB, free: 51.99 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004799/0.6369, allocations: 1.044 MB / 0.5592 GB, free: 50.92 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0006451/0.6375, allocations: 127.5 kB / 0.5593 GB, free: 50.79 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000412/0.638, allocations: 403.3 kB / 0.5597 GB, free: 50.39 MB / 378.7 MB Notification: Performance of SimCode: time 8.12e-07/0.638, allocations: 0 / 0.5597 GB, free: 50.39 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04215/0.6801, allocations: 20.66 MB / 0.5799 GB, free: 30.06 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000162/0.6804, allocations: 221.2 kB / 0.5801 GB, free: 29.82 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.549/3.229, allocations: 0 / 0.5801 GB, free: 29.82 MB / 378.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