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.001373/0.001374, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.452/1.452, allocations: 221.5 MB / 230.3 MB, free: 7.57 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.0009027/0.0009027, allocations: 100.6 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.244e-05/2.256e-05, allocations: 0 / 337.1 MB, free: 9.938 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09751/0.09756, allocations: 50.43 MB / 387.6 MB, free: 7.469 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3251/0.4227, allocations: 98.62 MB / 486.2 MB, free: 12.05 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002571/0.423, allocations: 84.98 kB / 486.3 MB, free: 11.97 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0711/0.4942, allocations: 27.15 MB / 0.5014 GB, free: 0.6523 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4942, allocations: 0.875 kB / 0.5014 GB, free: 0.6523 MB / 378.7 MB Notification: Performance of Transformations before backend: time 7.192e-05/0.4943, allocations: 31.98 kB / 0.5014 GB, free: 0.6211 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.001842/0.4961, allocations: 1.148 MB / 0.5025 GB, free: 15.43 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.402e-05/0.4962, allocations: 12.03 kB / 0.5025 GB, free: 15.42 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006079/0.4968, allocations: 182.4 kB / 0.5027 GB, free: 15.24 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001568/0.4984, allocations: 0.8477 MB / 0.5036 GB, free: 14.35 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.293e-05/0.4984, allocations: 32 kB / 0.5036 GB, free: 14.32 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001108/0.4985, allocations: 63.89 kB / 0.5036 GB, free: 14.25 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001013/0.4996, allocations: 0.5195 MB / 0.5041 GB, free: 13.73 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001278/0.5009, allocations: 0.7741 MB / 0.5049 GB, free: 12.92 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.202e-05/0.5009, allocations: 7.984 kB / 0.5049 GB, free: 12.91 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.128e-05/0.501, allocations: 0 / 0.5049 GB, free: 12.91 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.459e-05/0.501, allocations: 24 kB / 0.5049 GB, free: 12.89 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005288/0.5063, allocations: 3.976 MB / 0.5088 GB, free: 8.688 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008009/0.5071, allocations: 331.4 kB / 0.5091 GB, free: 8.355 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002153/0.5074, allocations: 138.5 kB / 0.5093 GB, free: 8.219 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.633e-05/0.5074, allocations: 11.88 kB / 0.5093 GB, free: 8.207 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.548e-05/0.5075, allocations: 38.55 kB / 0.5093 GB, free: 8.16 MB / 394.7 MB Notification: Performance of pre-optimization done (n=37): time 2.214e-06/0.5075, allocations: 0 / 0.5093 GB, free: 8.16 MB / 394.7 MB Notification: Performance of matching and sorting (n=40): time 0.001742/0.5092, allocations: 0.9898 MB / 0.5103 GB, free: 7.113 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.74e-05/0.5093, allocations: 85.09 kB / 0.5104 GB, free: 7.012 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000798/0.5101, allocations: 0.6334 MB / 0.511 GB, free: 6.371 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.31e-05/0.5102, allocations: 25.7 kB / 0.511 GB, free: 6.34 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003851/0.5105, allocations: 0.599 MB / 0.5116 GB, free: 5.73 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000107/0.5107, allocations: 138 kB / 0.5117 GB, free: 5.594 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.032e-05/0.5107, allocations: 0 / 0.5117 GB, free: 5.594 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.5108, allocations: 333.9 kB / 0.512 GB, free: 5.262 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002136/0.511, allocations: 137.5 kB / 0.5122 GB, free: 5.129 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004194/0.5115, allocations: 442.1 kB / 0.5126 GB, free: 4.551 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000313/0.5118, allocations: 207.8 kB / 0.5128 GB, free: 4.348 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.5118, allocations: 0 / 0.5128 GB, free: 4.348 MB / 394.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.0009534/0.5127, allocations: 0.6223 MB / 0.5134 GB, free: 3.715 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001712/0.5145, allocations: 4.089 MB / 0.5174 GB, free: 15.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.019e-05/0.5145, allocations: 12 kB / 0.5174 GB, free: 15.29 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001651/0.5147, allocations: 36.84 kB / 0.5174 GB, free: 15.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005814/0.5153, allocations: 167.7 kB / 0.5176 GB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009119/0.5162, allocations: 1.244 MB / 0.5188 GB, free: 13.73 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005144/0.5167, allocations: 23.89 kB / 0.5188 GB, free: 13.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.512e-05/0.5168, allocations: 36 kB / 0.5189 GB, free: 13.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.405e-06/0.5168, allocations: 9.406 kB / 0.5189 GB, free: 13.67 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007701/0.5176, allocations: 0.4894 MB / 0.5194 GB, free: 13.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.5176, allocations: 16.03 kB / 0.5194 GB, free: 13.16 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.378e-05/0.5177, allocations: 36.84 kB / 0.5194 GB, free: 13.12 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005169/0.5182, allocations: 163.8 kB / 0.5196 GB, free: 12.96 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007774/0.519, allocations: 1.245 MB / 0.5208 GB, free: 11.6 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004657/0.5195, allocations: 12 kB / 0.5208 GB, free: 11.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.161e-05/0.5195, allocations: 36 kB / 0.5208 GB, free: 11.55 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.0001456/0.5197, allocations: 136.7 kB / 0.521 GB, free: 11.41 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005317/0.5202, allocations: 345.4 kB / 0.5213 GB, free: 11.07 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/0.5203, allocations: 90.86 kB / 0.5214 GB, free: 10.98 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006399/0.521, allocations: 367.5 kB / 0.5217 GB, free: 10.61 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.521, allocations: 4 kB / 0.5217 GB, free: 10.61 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.521, allocations: 0 / 0.5217 GB, free: 10.61 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.521, allocations: 0 / 0.5217 GB, free: 10.61 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001545/0.5226, allocations: 1.138 MB / 0.5228 GB, free: 9.398 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.5226, allocations: 0 / 0.5228 GB, free: 9.398 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003676/0.523, allocations: 84.11 kB / 0.5229 GB, free: 9.316 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.659e-05/0.5231, allocations: 28.83 kB / 0.5229 GB, free: 9.285 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.429e-05/0.5231, allocations: 11.92 kB / 0.523 GB, free: 9.273 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000742/0.5238, allocations: 1.225 MB / 0.5242 GB, free: 7.93 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.5239, allocations: 7.969 kB / 0.5242 GB, free: 7.922 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007706/0.5246, allocations: 0.7013 MB / 0.5248 GB, free: 7.133 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002341/0.5249, allocations: 192.1 kB / 0.525 GB, free: 6.926 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.59e-05/0.525, allocations: 0 / 0.525 GB, free: 6.926 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003598/0.5253, allocations: 19.92 kB / 0.525 GB, free: 6.906 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.994e-05/0.5254, allocations: 23.97 kB / 0.5251 GB, free: 6.883 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.985e-05/0.5255, allocations: 16 kB / 0.5251 GB, free: 6.867 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005837/0.5261, allocations: 479.1 kB / 0.5255 GB, free: 6.402 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5261, allocations: 0 / 0.5255 GB, free: 6.402 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001277/0.5273, allocations: 323.9 kB / 0.5259 GB, free: 6.086 MB / 410.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.001609/0.529, allocations: 1.886 MB / 0.5277 GB, free: 4.121 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001337/0.5303, allocations: 0.8679 MB / 0.5285 GB, free: 3.234 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.5303, allocations: 0 / 0.5285 GB, free: 3.234 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000321/0.5307, allocations: 262.4 kB / 0.5288 GB, free: 2.969 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001025/0.5317, allocations: 207.2 kB / 0.529 GB, free: 2.77 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002811/0.5345, allocations: 1.446 MB / 0.5304 GB, free: 1.266 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005503/0.5351, allocations: 1.053 MB / 0.5314 GB, free: 188 kB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000729/0.5358, allocations: 146.9 kB / 0.5316 GB, free: 36 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004255/0.5363, allocations: 383.4 kB / 0.5319 GB, free: 15.66 MB / 426.7 MB Notification: Performance of SimCode: time 4.91e-07/0.5363, allocations: 0 / 0.5319 GB, free: 15.66 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2326/0.7688, allocations: 17.82 MB / 0.5493 GB, free: 118.9 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001636/0.769, allocations: 166.8 kB / 0.5495 GB, free: 118.7 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.44/3.209, allocations: 0 / 0.5495 GB, free: 118.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