Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.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.PositionControlledDCPM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM",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.001296/0.001296, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.47/1.47, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008422/0.0008422, allocations: 78.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.505e-05/4.507e-05, allocations: 0 / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1189, allocations: 47.58 MB / 370.1 MB, free: 1.605 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3335/0.4525, allocations: 117.2 MB / 487.4 MB, free: 8.434 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002451/0.4528, allocations: 84.64 kB / 487.4 MB, free: 8.391 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.123/0.5758, allocations: 47.11 MB / 0.522 GB, free: 10.09 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.5759, allocations: 0 / 0.522 GB, free: 10.09 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001851/0.5761, allocations: 48 kB / 0.5221 GB, free: 10.04 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: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.004821/0.5809, allocations: 1.937 MB / 0.524 GB, free: 8.055 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.048e-05/0.581, allocations: 11.97 kB / 0.524 GB, free: 8.043 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007005/0.5817, allocations: 262 kB / 0.5242 GB, free: 7.777 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001323/0.583, allocations: 305 kB / 0.5245 GB, free: 7.477 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003202/0.5862, allocations: 1.261 MB / 0.5257 GB, free: 6.16 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000338/0.5866, allocations: 260.8 kB / 0.526 GB, free: 5.887 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004434/0.587, allocations: 199.7 kB / 0.5262 GB, free: 5.691 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003842/0.5909, allocations: 1.773 MB / 0.5279 GB, free: 3.863 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.768e-05/0.591, allocations: 0 / 0.5279 GB, free: 3.863 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001546/0.5911, allocations: 80 kB / 0.528 GB, free: 3.785 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-05/0.5912, allocations: 52 kB / 0.528 GB, free: 3.734 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002609/0.5938, allocations: 1.365 MB / 0.5294 GB, free: 2.367 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2125/0.8063, allocations: 7.466 MB / 0.5367 GB, free: 98.89 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00186/0.8082, allocations: 1.131 MB / 0.5378 GB, free: 98.48 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005463/0.8088, allocations: 366.5 kB / 0.5381 GB, free: 98.48 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.885e-05/0.8089, allocations: 11.55 kB / 0.5381 GB, free: 98.48 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.665e-05/0.8089, allocations: 50.69 kB / 0.5382 GB, free: 98.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=84): time 3.116e-06/0.8089, allocations: 1.531 kB / 0.5382 GB, free: 98.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=111): time 0.01068/0.8196, allocations: 4.637 MB / 0.5427 GB, free: 97.55 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.553e-05/0.8197, allocations: 93.58 kB / 0.5428 GB, free: 97.46 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001959/0.8216, allocations: 1.202 MB / 0.544 GB, free: 97.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.847e-05/0.8217, allocations: 45.2 kB / 0.544 GB, free: 97.27 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007163/0.8225, allocations: 0.9818 MB / 0.545 GB, free: 96.93 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003491/0.8228, allocations: 388.1 kB / 0.5453 GB, free: 96.73 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.907e-05/0.8229, allocations: 31.12 kB / 0.5454 GB, free: 96.73 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.823, allocations: 362.4 kB / 0.5457 GB, free: 96.43 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009125/0.8239, allocations: 0.5439 MB / 0.5463 GB, free: 96.42 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001119/0.8251, allocations: 0.9812 MB / 0.5472 GB, free: 95.91 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009573/0.826, allocations: 0.5828 MB / 0.5478 GB, free: 95.9 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-05/0.8261, allocations: 3.844 kB / 0.5478 GB, free: 95.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.003079/0.8291, allocations: 1.691 MB / 0.5494 GB, free: 95.74 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001345/0.8305, allocations: 5.414 MB / 0.5547 GB, free: 90.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.973e-05/0.8306, allocations: 14.05 kB / 0.5547 GB, free: 90.21 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00025/0.8308, allocations: 44.52 kB / 0.5548 GB, free: 90.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002056/0.8329, allocations: 440.3 kB / 0.5552 GB, free: 90.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008622/0.8338, allocations: 1.292 MB / 0.5565 GB, free: 88.95 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001929/0.8357, allocations: 182.4 kB / 0.5566 GB, free: 88.94 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001366/0.8359, allocations: 60.84 kB / 0.5567 GB, free: 88.94 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/0.8359, allocations: 4.062 kB / 0.5567 GB, free: 88.94 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002503/0.8384, allocations: 1.497 MB / 0.5582 GB, free: 88.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.996e-05/0.8384, allocations: 15.19 kB / 0.5582 GB, free: 88.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001079/0.8385, allocations: 49.83 kB / 0.5582 GB, free: 88.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001634/0.8402, allocations: 408.7 kB / 0.5586 GB, free: 88.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000649/0.8408, allocations: 1.297 MB / 0.5599 GB, free: 87.65 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001683/0.8425, allocations: 147.6 kB / 0.56 GB, free: 87.64 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/0.8426, allocations: 61.19 kB / 0.5601 GB, free: 87.64 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 6 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase,speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (194): * Single equations (assignments): 193 * 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.0003529/0.843, allocations: 208.5 kB / 0.5603 GB, free: 87.52 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002578/0.8433, allocations: 163 kB / 0.5604 GB, free: 87.43 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001987/0.8453, allocations: 1.173 MB / 0.5616 GB, free: 87.34 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.804e-06/0.8453, allocations: 10.38 kB / 0.5616 GB, free: 87.34 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.041e-06/0.8453, allocations: 4.578 kB / 0.5616 GB, free: 87.34 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.348e-05/0.8453, allocations: 5.016 kB / 0.5616 GB, free: 87.34 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005373/0.8507, allocations: 3.572 MB / 0.5651 GB, free: 85.9 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.167e-06/0.8507, allocations: 10.16 kB / 0.5651 GB, free: 85.9 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001106/0.8518, allocations: 292.7 kB / 0.5654 GB, free: 85.87 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001066/0.852, allocations: 41.45 kB / 0.5654 GB, free: 85.85 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.997e-05/0.852, allocations: 40.7 kB / 0.5654 GB, free: 85.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005827/0.8526, allocations: 1.291 MB / 0.5667 GB, free: 84.52 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.702e-06/0.8527, allocations: 14.5 kB / 0.5667 GB, free: 84.52 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002208/0.8549, allocations: 2.367 MB / 0.569 GB, free: 82.51 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006283/0.8555, allocations: 335.6 kB / 0.5694 GB, free: 82.26 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001833/0.8557, allocations: 33.09 kB / 0.5694 GB, free: 82.25 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001066/0.8568, allocations: 152.6 kB / 0.5695 GB, free: 82.22 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002077/0.857, allocations: 132.4 kB / 0.5697 GB, free: 82.18 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.508e-05/0.8571, allocations: 45.28 kB / 0.5697 GB, free: 82.18 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001134/0.8582, allocations: 0.8945 MB / 0.5706 GB, free: 81.8 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.8582, allocations: 0 / 0.5706 GB, free: 81.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002031/0.8603, allocations: 0.6935 MB / 0.5713 GB, free: 81.72 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 11 (loadInertia.phi,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,speedController.integrator.y) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 109 * 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.003002/0.8633, allocations: 6.01 MB / 0.5771 GB, free: 76.43 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003401/0.8667, allocations: 2.375 MB / 0.5794 GB, free: 75.29 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.091e-05/0.8667, allocations: 3.125 kB / 0.5794 GB, free: 75.29 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008403/0.8676, allocations: 0.567 MB / 0.58 GB, free: 74.99 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001685/0.8693, allocations: 337.8 kB / 0.5803 GB, free: 74.88 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00598/0.8753, allocations: 3.088 MB / 0.5833 GB, free: 73.28 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007185/0.876, allocations: 1.383 MB / 0.5847 GB, free: 72.54 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001924/0.8779, allocations: 354.2 kB / 0.585 GB, free: 72.44 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008127/0.8788, allocations: 0.7348 MB / 0.5857 GB, free: 71.84 MB / 410.7 MB Notification: Performance of SimCode: time 1.412e-06/0.8788, allocations: 0 / 0.5857 GB, free: 71.84 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06001/0.9388, allocations: 39.06 MB / 0.6239 GB, free: 52.38 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001538/0.939, allocations: 206.7 kB / 0.6241 GB, free: 52.15 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.148/4.087, allocations: 0 / 0.6241 GB, free: 52.15 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat does not exist to compare? outputFormat=mat