Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001097/0.001097, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.439/1.439, allocations: 225.4 MB / 240.1 MB, free: 15.03 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008611/0.0008612, allocations: 95.98 kB / 292.1 MB, free: 6.047 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.387e-05/3.392e-05, allocations: 4 kB / 350.6 MB, free: 2.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1098, allocations: 51.49 MB / 402.1 MB, free: 14.89 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4074/0.5172, allocations: 119.8 MB / 0.5097 GB, free: 2.051 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002796/0.5175, allocations: 90.5 kB / 0.5097 GB, free: 2.004 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.134/0.6516, allocations: 47.04 MB / 0.5557 GB, free: 4.176 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.6516, allocations: 4 kB / 0.5557 GB, free: 4.172 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002326/0.6519, allocations: 44 kB / 0.5557 GB, free: 4.129 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 469 * Number of variables: 469 Notification: Performance of Generate backend data structure: time 0.005282/0.6572, allocations: 1.919 MB / 0.5576 GB, free: 2.168 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.406e-05/0.6572, allocations: 8.031 kB / 0.5576 GB, free: 2.16 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007518/0.658, allocations: 265.9 kB / 0.5579 GB, free: 1.891 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001401/0.6594, allocations: 301 kB / 0.5582 GB, free: 1.594 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004052/0.6635, allocations: 1.245 MB / 0.5594 GB, free: 300 kB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003879/0.6639, allocations: 256.8 kB / 0.5596 GB, free: 24 kB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005102/0.6644, allocations: 192 kB / 0.5598 GB, free: 15.83 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004119/0.6686, allocations: 1.753 MB / 0.5615 GB, free: 14.02 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-05/0.6687, allocations: 15.83 kB / 0.5615 GB, free: 14.01 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002003/0.6689, allocations: 76 kB / 0.5616 GB, free: 13.93 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.319e-05/0.6689, allocations: 48 kB / 0.5616 GB, free: 13.89 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003023/0.672, allocations: 1.353 MB / 0.563 GB, free: 12.53 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01344/0.6854, allocations: 7.377 MB / 0.5702 GB, free: 4.848 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002081/0.6876, allocations: 1.131 MB / 0.5713 GB, free: 3.629 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006156/0.6882, allocations: 363.2 kB / 0.5716 GB, free: 3.273 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.114e-05/0.6883, allocations: 16.78 kB / 0.5716 GB, free: 3.258 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.441e-05/0.6883, allocations: 43.33 kB / 0.5717 GB, free: 3.207 MB / 442.7 MB Notification: Performance of pre-optimization done (n=84): time 2.896e-06/0.6883, allocations: 0 / 0.5717 GB, free: 3.207 MB / 442.7 MB Notification: Performance of matching and sorting (n=111): time 0.2728/0.9611, allocations: 4.623 MB / 0.5762 GB, free: 92.36 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.799e-05/0.9612, allocations: 90.23 kB / 0.5763 GB, free: 92.27 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001756/0.963, allocations: 1.184 MB / 0.5774 GB, free: 92.1 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.293e-05/0.9631, allocations: 45.27 kB / 0.5775 GB, free: 92.07 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006107/0.9637, allocations: 0.9734 MB / 0.5784 GB, free: 91.73 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003154/0.964, allocations: 387.7 kB / 0.5788 GB, free: 91.54 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.785e-05/0.9641, allocations: 29.25 kB / 0.5788 GB, free: 91.54 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001171/0.9642, allocations: 362 kB / 0.5792 GB, free: 91.23 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008041/0.965, allocations: 0.5448 MB / 0.5797 GB, free: 91.23 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00104/0.9661, allocations: 0.9774 MB / 0.5807 GB, free: 90.72 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001014/0.9671, allocations: 0.5842 MB / 0.5812 GB, free: 90.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.744e-06/0.9671, allocations: 2.969 kB / 0.5812 GB, free: 90.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002476/0.9696, allocations: 1.689 MB / 0.5829 GB, free: 90.55 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009422/0.9706, allocations: 5.404 MB / 0.5882 GB, free: 85.03 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.805e-05/0.9706, allocations: 15.25 kB / 0.5882 GB, free: 85.03 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001808/0.9708, allocations: 46.47 kB / 0.5882 GB, free: 85.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001796/0.9726, allocations: 437.2 kB / 0.5886 GB, free: 85.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008105/0.9734, allocations: 1.292 MB / 0.5899 GB, free: 83.77 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001605/0.975, allocations: 173.8 kB / 0.5901 GB, free: 83.77 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001173/0.9752, allocations: 69.41 kB / 0.5901 GB, free: 83.77 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.095e-05/0.9752, allocations: 7.859 kB / 0.5901 GB, free: 83.76 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00241/0.9776, allocations: 1.489 MB / 0.5916 GB, free: 83.72 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.464e-05/0.9776, allocations: 15.89 kB / 0.5916 GB, free: 83.72 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.881e-05/0.9777, allocations: 42.44 kB / 0.5916 GB, free: 83.71 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001538/0.9793, allocations: 414.1 kB / 0.592 GB, free: 83.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006411/0.9799, allocations: 1.297 MB / 0.5933 GB, free: 82.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001414/0.9814, allocations: 147 kB / 0.5934 GB, free: 82.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001049/0.9815, allocations: 59.78 kB / 0.5935 GB, free: 82.46 MB / 442.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.0003253/0.9818, allocations: 207.9 kB / 0.5937 GB, free: 82.36 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002298/0.982, allocations: 161.5 kB / 0.5939 GB, free: 82.27 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002024/0.9841, allocations: 1.171 MB / 0.595 GB, free: 82.18 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/0.9841, allocations: 14.14 kB / 0.595 GB, free: 82.18 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.9841, allocations: 3.219 kB / 0.595 GB, free: 82.18 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.577e-06/0.9841, allocations: 3.281 kB / 0.595 GB, free: 82.18 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005599/0.9897, allocations: 3.547 MB / 0.5985 GB, free: 81.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-05/0.9898, allocations: 12.53 kB / 0.5985 GB, free: 81.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001109/0.9909, allocations: 293.5 kB / 0.5988 GB, free: 81.44 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001076/0.991, allocations: 33.62 kB / 0.5988 GB, free: 81.43 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.223e-05/0.9911, allocations: 34.64 kB / 0.5988 GB, free: 81.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006921/0.9918, allocations: 1.291 MB / 0.6001 GB, free: 80.17 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.037e-05/0.9918, allocations: 17.03 kB / 0.6001 GB, free: 80.17 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00253/0.9943, allocations: 2.362 MB / 0.6024 GB, free: 78.69 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005767/0.9949, allocations: 333.5 kB / 0.6027 GB, free: 78.52 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001695/0.9951, allocations: 38.3 kB / 0.6028 GB, free: 78.52 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001038/0.9961, allocations: 147.6 kB / 0.6029 GB, free: 78.52 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000232/0.9964, allocations: 134.6 kB / 0.603 GB, free: 78.49 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.433e-05/0.9965, allocations: 39.66 kB / 0.6031 GB, free: 78.49 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001204/0.9977, allocations: 0.8878 MB / 0.604 GB, free: 78.38 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.9977, allocations: 0 / 0.604 GB, free: 78.38 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002349/1, allocations: 0.6807 MB / 0.6046 GB, free: 78.38 MB / 442.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.003468/1.004, allocations: 5.999 MB / 0.6105 GB, free: 73.64 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003643/1.007, allocations: 2.373 MB / 0.6128 GB, free: 73.29 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.647e-06/1.007, allocations: 3.391 kB / 0.6128 GB, free: 73.29 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009279/1.008, allocations: 0.5739 MB / 0.6134 GB, free: 73.14 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001756/1.01, allocations: 331.9 kB / 0.6137 GB, free: 73.12 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006498/1.016, allocations: 3.042 MB / 0.6166 GB, free: 71.9 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00101/1.017, allocations: 1.378 MB / 0.618 GB, free: 71.15 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002047/1.02, allocations: 347.4 kB / 0.6183 GB, free: 71.06 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001002/1.021, allocations: 0.7342 MB / 0.619 GB, free: 71.05 MB / 442.7 MB Notification: Performance of SimCode: time 1.833e-06/1.021, allocations: 4 kB / 0.619 GB, free: 71.05 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0798/1.1, allocations: 38.72 MB / 0.6569 GB, free: 68.7 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002326/1.101, allocations: 203.5 kB / 0.6571 GB, free: 68.48 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.278/4.379, allocations: 3.953 kB / 0.6571 GB, free: 68.48 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_ControlledDCDrives_PositionControlledDCPM.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM_res.mat does not exist to compare? outputFormat=mat