Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002189/0.002189, allocations: 177.7 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.126/2.126, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001139/0.001139, allocations: 88.78 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.36e-05/2.388e-05, allocations: 0 / 314.9 MB, free: 9.055 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3517, allocations: 47.57 MB / 362.4 MB, free: 45.84 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1972/0.5489, allocations: 114.7 MB / 477.1 MB, free: 3.562 MB / 363.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003736/0.5494, allocations: 87.94 kB / 477.2 MB, free: 3.477 MB / 363.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.4521/1.002, allocations: 38.67 MB / 0.5038 GB, free: 102.2 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.685e-06/1.002, allocations: 3.047 kB / 0.5038 GB, free: 102.2 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0001944/1.002, allocations: 38.06 kB / 0.5038 GB, free: 102.2 MB / 395.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.005838/1.008, allocations: 1.528 MB / 0.5053 GB, free: 101.5 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.903e-05/1.008, allocations: 10.28 kB / 0.5053 GB, free: 101.5 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001787/1.01, allocations: 245.8 kB / 0.5055 GB, free: 101.4 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004084/1.014, allocations: 1.074 MB / 0.5066 GB, free: 101 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001099/1.014, allocations: 48.22 kB / 0.5066 GB, free: 101 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004611/1.014, allocations: 89.59 kB / 0.5067 GB, free: 101 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003285/1.018, allocations: 0.7975 MB / 0.5075 GB, free: 101 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004247/1.022, allocations: 1.152 MB / 0.5086 GB, free: 100.9 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.261e-05/1.022, allocations: 8.281 kB / 0.5086 GB, free: 100.9 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001655/1.022, allocations: 3.5 kB / 0.5086 GB, free: 100.9 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.757e-05/1.022, allocations: 36.53 kB / 0.5087 GB, free: 100.9 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0138/1.036, allocations: 5.939 MB / 0.5145 GB, free: 98.36 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00168/1.038, allocations: 0.6084 MB / 0.5151 GB, free: 98.14 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004876/1.038, allocations: 193.1 kB / 0.5152 GB, free: 98.13 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.907e-05/1.038, allocations: 8.656 kB / 0.5153 GB, free: 98.13 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.627e-05/1.038, allocations: 41.22 kB / 0.5153 GB, free: 98.09 MB / 395.1 MB Notification: Performance of pre-optimization done (n=51): time 3.897e-06/1.038, allocations: 0 / 0.5153 GB, free: 98.09 MB / 395.1 MB Notification: Performance of matching and sorting (n=54): time 0.003912/1.042, allocations: 1.268 MB / 0.5165 GB, free: 97.5 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.37e-05/1.043, allocations: 87.09 kB / 0.5166 GB, free: 97.41 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002054/1.045, allocations: 0.8122 MB / 0.5174 GB, free: 97.25 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001449/1.045, allocations: 30.36 kB / 0.5174 GB, free: 97.22 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006497/1.045, allocations: 0.8139 MB / 0.5182 GB, free: 96.74 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002672/1.046, allocations: 191.6 kB / 0.5184 GB, free: 96.62 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.236e-05/1.046, allocations: 1.938 kB / 0.5184 GB, free: 96.62 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001081/1.046, allocations: 348.6 kB / 0.5188 GB, free: 96.3 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005376/1.046, allocations: 189.3 kB / 0.5189 GB, free: 96.3 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007435/1.047, allocations: 0.5685 MB / 0.5195 GB, free: 95.8 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000727/1.048, allocations: 289.2 kB / 0.5198 GB, free: 95.79 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.388e-05/1.048, allocations: 4.156 kB / 0.5198 GB, free: 95.79 MB / 395.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002072/1.05, allocations: 0.7537 MB / 0.5205 GB, free: 95.7 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00118/1.051, allocations: 5.139 MB / 0.5255 GB, free: 90.3 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-05/1.051, allocations: 13.19 kB / 0.5255 GB, free: 90.3 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002888/1.052, allocations: 41.95 kB / 0.5256 GB, free: 90.3 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001625/1.053, allocations: 231.6 kB / 0.5258 GB, free: 90.3 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00109/1.054, allocations: 1.246 MB / 0.527 GB, free: 89.09 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001514/1.056, allocations: 41.31 kB / 0.5271 GB, free: 89.08 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001863/1.056, allocations: 47.75 kB / 0.5271 GB, free: 89.08 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/1.056, allocations: 6.812 kB / 0.5271 GB, free: 89.08 MB / 395.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001945/1.058, allocations: 0.6587 MB / 0.5277 GB, free: 88.98 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.27e-05/1.058, allocations: 12.97 kB / 0.5278 GB, free: 88.98 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001471/1.058, allocations: 43.91 kB / 0.5278 GB, free: 88.97 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001345/1.06, allocations: 216.1 kB / 0.528 GB, free: 88.96 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008949/1.061, allocations: 1.243 MB / 0.5292 GB, free: 87.75 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007829/1.062, allocations: 24.55 kB / 0.5292 GB, free: 87.75 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.737e-05/1.062, allocations: 43.16 kB / 0.5293 GB, free: 87.75 MB / 395.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * 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.0003088/1.062, allocations: 149.7 kB / 0.5294 GB, free: 87.61 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001258/1.063, allocations: 453.1 kB / 0.5299 GB, free: 87.51 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002446/1.064, allocations: 108.6 kB / 0.53 GB, free: 87.45 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001213/1.065, allocations: 468.6 kB / 0.5304 GB, free: 87.38 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/1.065, allocations: 7.922 kB / 0.5304 GB, free: 87.38 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/1.065, allocations: 0 / 0.5304 GB, free: 87.38 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/1.065, allocations: 3.656 kB / 0.5304 GB, free: 87.38 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003823/1.069, allocations: 1.564 MB / 0.532 GB, free: 86.57 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/1.069, allocations: 0 / 0.532 GB, free: 86.57 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001003/1.07, allocations: 121.4 kB / 0.5321 GB, free: 86.55 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001487/1.07, allocations: 18.42 kB / 0.5321 GB, free: 86.54 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.567e-05/1.07, allocations: 8.891 kB / 0.5321 GB, free: 86.54 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000875/1.071, allocations: 1.227 MB / 0.5333 GB, free: 85.3 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/1.071, allocations: 3.469 kB / 0.5333 GB, free: 85.3 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001732/1.073, allocations: 0.8765 MB / 0.5341 GB, free: 84.71 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006856/1.073, allocations: 228.1 kB / 0.5344 GB, free: 84.52 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002083/1.074, allocations: 6.031 kB / 0.5344 GB, free: 84.52 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009025/1.075, allocations: 39.08 kB / 0.5344 GB, free: 84.51 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001142/1.075, allocations: 31.16 kB / 0.5344 GB, free: 84.5 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.645e-05/1.075, allocations: 19.66 kB / 0.5345 GB, free: 84.5 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.001207/1.076, allocations: 0.5958 MB / 0.535 GB, free: 84.2 MB / 395.1 MB Notification: Performance of sort global known variables: time 5.41e-07/1.076, allocations: 0 / 0.535 GB, free: 84.2 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.002711/1.079, allocations: 428.9 kB / 0.5354 GB, free: 84.2 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,currentController.integrator.y,loadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 52 * 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.002553/1.081, allocations: 2.144 MB / 0.5375 GB, free: 82.54 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.002463/1.084, allocations: 1.082 MB / 0.5386 GB, free: 82 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/1.084, allocations: 0 / 0.5386 GB, free: 82 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000579/1.084, allocations: 301.7 kB / 0.5389 GB, free: 81.83 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002083/1.087, allocations: 234 kB / 0.5391 GB, free: 81.77 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006339/1.093, allocations: 2.045 MB / 0.5411 GB, free: 80.78 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008376/1.094, allocations: 1.204 MB / 0.5423 GB, free: 80.05 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001052/1.095, allocations: 0.5656 MB / 0.5428 GB, free: 79.59 MB / 395.1 MB Notification: Performance of SimCode: time 1.533e-06/1.095, allocations: 3.406 kB / 0.5428 GB, free: 79.59 MB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.079/4.173, allocations: 28.95 MB / 0.5711 GB, free: 67.51 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_ControlledDCDrives_CurrentControlledDCPM.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat does not exist to compare? outputFormat=mat