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.002036/0.002036, allocations: 193.4 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.368/1.368, allocations: 225.6 MB / 234.8 MB, free: 3.219 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009448/0.0009448, allocations: 102.7 kB / 286.7 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.124e-05/4.131e-05, allocations: 4 kB / 343.8 MB, free: 8.164 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1166, allocations: 51.48 MB / 395.3 MB, free: 4.648 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4099/0.5266, allocations: 119.1 MB / 0.5023 GB, free: 6.195 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002529/0.5269, allocations: 88.64 kB / 0.5024 GB, free: 6.148 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1192/0.6462, allocations: 46.19 MB / 0.5475 GB, free: 12.87 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.746e-06/0.6462, allocations: 0 / 0.5475 GB, free: 12.87 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003338/0.6466, allocations: 51.94 kB / 0.5476 GB, free: 12.82 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.006638/0.6532, allocations: 1.913 MB / 0.5494 GB, free: 10.86 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.603e-05/0.6533, allocations: 8.031 kB / 0.5494 GB, free: 10.85 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001961/0.6553, allocations: 297 kB / 0.5497 GB, free: 10.55 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003955/0.6592, allocations: 1.241 MB / 0.5509 GB, free: 9.258 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002896/0.6596, allocations: 200.8 kB / 0.5511 GB, free: 9.043 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003902/0.66, allocations: 112 kB / 0.5512 GB, free: 8.934 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002932/0.6629, allocations: 1.253 MB / 0.5524 GB, free: 7.68 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003236/0.6661, allocations: 1.492 MB / 0.5539 GB, free: 6.133 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.821e-05/0.6662, allocations: 7.906 kB / 0.5539 GB, free: 6.125 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001356/0.6664, allocations: 4 kB / 0.5539 GB, free: 6.121 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.651e-05/0.6664, allocations: 44 kB / 0.554 GB, free: 6.078 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01128/0.6777, allocations: 7.041 MB / 0.5608 GB, free: 14.75 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002061/0.6798, allocations: 1.103 MB / 0.5619 GB, free: 13.56 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005164/0.6804, allocations: 347.2 kB / 0.5622 GB, free: 13.22 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.587e-05/0.6805, allocations: 8.781 kB / 0.5622 GB, free: 13.21 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.965e-05/0.6805, allocations: 39.34 kB / 0.5623 GB, free: 13.16 MB / 442.7 MB Notification: Performance of pre-optimization done (n=84): time 3.046e-06/0.6805, allocations: 0 / 0.5623 GB, free: 13.16 MB / 442.7 MB Notification: Performance of matching and sorting (n=111): time 0.01046/0.691, allocations: 4.389 MB / 0.5666 GB, free: 8.684 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.624e-05/0.6911, allocations: 98.41 kB / 0.5667 GB, free: 8.57 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001598/0.6927, allocations: 0.9924 MB / 0.5676 GB, free: 7.566 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.313e-05/0.6928, allocations: 29.7 kB / 0.5677 GB, free: 7.531 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005986/0.6934, allocations: 0.9736 MB / 0.5686 GB, free: 6.543 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002805/0.6937, allocations: 374.4 kB / 0.569 GB, free: 6.172 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.336e-05/0.6938, allocations: 0 / 0.569 GB, free: 6.172 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.6939, allocations: 365.9 kB / 0.5693 GB, free: 5.809 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007763/0.6947, allocations: 0.5156 MB / 0.5698 GB, free: 5.293 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001035/0.6957, allocations: 0.9382 MB / 0.5707 GB, free: 4.172 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008339/0.6966, allocations: 0.5528 MB / 0.5713 GB, free: 3.621 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.785e-06/0.6966, allocations: 4 kB / 0.5713 GB, free: 3.617 MB / 442.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.002558/0.6992, allocations: 1.527 MB / 0.5728 GB, free: 2.078 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.295/0.9942, allocations: 5.358 MB / 0.578 GB, free: 88.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.486e-05/0.9943, allocations: 13.28 kB / 0.578 GB, free: 88.96 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002601/0.9945, allocations: 41.89 kB / 0.5781 GB, free: 88.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002181/0.9967, allocations: 441.7 kB / 0.5785 GB, free: 88.96 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007716/0.9975, allocations: 1.247 MB / 0.5797 GB, free: 87.78 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001714/0.9992, allocations: 137 kB / 0.5798 GB, free: 87.78 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/0.9994, allocations: 67.31 kB / 0.5799 GB, free: 87.77 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.306e-06/0.9994, allocations: 9.531 kB / 0.5799 GB, free: 87.77 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002128/1.002, allocations: 1.309 MB / 0.5812 GB, free: 87.74 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/1.002, allocations: 12 kB / 0.5812 GB, free: 87.74 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.285e-05/1.002, allocations: 41.12 kB / 0.5812 GB, free: 87.73 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001604/1.003, allocations: 417 kB / 0.5816 GB, free: 87.73 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005683/1.004, allocations: 1.256 MB / 0.5829 GB, free: 86.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001411/1.005, allocations: 110.7 kB / 0.583 GB, free: 86.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001038/1.005, allocations: 61.22 kB / 0.583 GB, free: 86.55 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.0003088/1.006, allocations: 153.5 kB / 0.5832 GB, free: 86.44 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001496/1.007, allocations: 0.9987 MB / 0.5841 GB, free: 86.38 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001897/1.007, allocations: 151.9 kB / 0.5843 GB, free: 86.38 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001698/1.009, allocations: 1.075 MB / 0.5853 GB, free: 86.29 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.767e-06/1.009, allocations: 9.938 kB / 0.5853 GB, free: 86.29 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/1.009, allocations: 3.953 kB / 0.5854 GB, free: 86.28 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.045e-05/1.009, allocations: 8.266 kB / 0.5854 GB, free: 86.28 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005876/1.015, allocations: 3.22 MB / 0.5885 GB, free: 85.63 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-05/1.015, allocations: 9.25 kB / 0.5885 GB, free: 85.63 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001137/1.016, allocations: 285.2 kB / 0.5888 GB, free: 85.63 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001131/1.016, allocations: 39.48 kB / 0.5888 GB, free: 85.62 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.429e-05/1.016, allocations: 22.58 kB / 0.5888 GB, free: 85.62 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007674/1.017, allocations: 1.235 MB / 0.59 GB, free: 84.44 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.337e-05/1.017, allocations: 18.25 kB / 0.5901 GB, free: 84.44 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002427/1.02, allocations: 2.255 MB / 0.5923 GB, free: 83.04 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005256/1.02, allocations: 320.4 kB / 0.5926 GB, free: 82.88 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001691/1.02, allocations: 19.52 kB / 0.5926 GB, free: 82.88 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001013/1.021, allocations: 134.1 kB / 0.5927 GB, free: 82.88 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002215/1.022, allocations: 127.4 kB / 0.5928 GB, free: 82.88 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-05/1.022, allocations: 41.12 kB / 0.5929 GB, free: 82.88 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001077/1.023, allocations: 0.7272 MB / 0.5936 GB, free: 82.77 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.934e-06/1.023, allocations: 0 / 0.5936 GB, free: 82.77 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002064/1.025, allocations: 0.5687 MB / 0.5941 GB, free: 82.77 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.003374/1.028, allocations: 5.868 MB / 0.5999 GB, free: 78.12 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003424/1.032, allocations: 2.228 MB / 0.6021 GB, free: 77.84 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.488e-05/1.032, allocations: 3.312 kB / 0.6021 GB, free: 77.84 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008127/1.033, allocations: 0.5341 MB / 0.6026 GB, free: 77.7 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001692/1.034, allocations: 290.4 kB / 0.6029 GB, free: 77.69 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006172/1.04, allocations: 2.916 MB / 0.6057 GB, free: 76.48 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000823/1.041, allocations: 1.384 MB / 0.6071 GB, free: 75.73 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001969/1.043, allocations: 334.9 kB / 0.6074 GB, free: 75.64 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009092/1.044, allocations: 0.7354 MB / 0.6081 GB, free: 75.63 MB / 442.7 MB Notification: Performance of SimCode: time 1.042e-06/1.044, allocations: 4 kB / 0.6081 GB, free: 75.62 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08816/1.132, allocations: 32.75 MB / 0.6401 GB, free: 73.62 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002157/1.133, allocations: 173.9 kB / 0.6402 GB, free: 73.43 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.152/4.284, allocations: 2.656 kB / 0.6402 GB, free: 73.43 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