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.001366/0.001366, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.287/1.287, allocations: 227.2 MB / 245 MB, free: 5.918 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009063/0.0009062, allocations: 94.78 kB / 297.3 MB, free: 5.949 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002374/0.0002374, allocations: 4 kB / 358 MB, free: 9.211 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2053/0.2056, allocations: 51.49 MB / 409.5 MB, free: 26.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2974/0.503, allocations: 119.8 MB / 0.5169 GB, free: 47.06 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002004/0.5032, allocations: 84.83 kB / 0.517 GB, free: 47.06 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1002/0.6034, allocations: 47.07 MB / 0.563 GB, free: 31.76 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.6034, allocations: 0 / 0.563 GB, free: 31.76 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000139/0.6036, allocations: 51.22 kB / 0.563 GB, free: 31.75 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: 469 * Number of variables: 469 Notification: Performance of Generate backend data structure: time 0.004043/0.6076, allocations: 2.175 MB / 0.5651 GB, free: 30.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.433e-05/0.6077, allocations: 7.719 kB / 0.5652 GB, free: 30.39 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004139/0.6081, allocations: 261.5 kB / 0.5654 GB, free: 30.3 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008125/0.6089, allocations: 300.6 kB / 0.5657 GB, free: 30.16 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002155/0.6111, allocations: 1.255 MB / 0.5669 GB, free: 29.49 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000211/0.6113, allocations: 254.8 kB / 0.5672 GB, free: 29.39 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002323/0.6116, allocations: 197.7 kB / 0.5673 GB, free: 29.38 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00324/0.6148, allocations: 1.901 MB / 0.5692 GB, free: 28.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.683e-05/0.6149, allocations: 11.3 kB / 0.5692 GB, free: 28.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000139/0.615, allocations: 76.06 kB / 0.5693 GB, free: 28.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.365e-05/0.6151, allocations: 45.53 kB / 0.5693 GB, free: 28.84 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003177/0.6182, allocations: 1.637 MB / 0.5709 GB, free: 28.3 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008969/0.6272, allocations: 7.374 MB / 0.5781 GB, free: 22.34 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002133/0.6294, allocations: 1.306 MB / 0.5794 GB, free: 21.21 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.538e-05/0.6295, allocations: 16.42 kB / 0.5794 GB, free: 21.2 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.937e-05/0.6295, allocations: 43.44 kB / 0.5795 GB, free: 21.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 2.274e-06/0.6295, allocations: 0 / 0.5795 GB, free: 21.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.03434/0.6638, allocations: 8.824 MB / 0.5881 GB, free: 12.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.592e-05/0.6639, allocations: 90.11 kB / 0.5882 GB, free: 12.29 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002618/0.6665, allocations: 1.202 MB / 0.5893 GB, free: 11.08 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001176/0.6667, allocations: 49.7 kB / 0.5894 GB, free: 11.03 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006358/0.6673, allocations: 0.9708 MB / 0.5903 GB, free: 10.04 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003157/0.6677, allocations: 394.4 kB / 0.5907 GB, free: 9.652 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001124/0.6678, allocations: 32 kB / 0.5907 GB, free: 9.621 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.6679, allocations: 369.8 kB / 0.5911 GB, free: 9.254 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002383/0.6703, allocations: 0.7847 MB / 0.5919 GB, free: 8.469 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002551/0.6729, allocations: 1.219 MB / 0.5931 GB, free: 7.062 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00239/0.6753, allocations: 0.8183 MB / 0.5939 GB, free: 6.242 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.171e-05/0.6753, allocations: 4 kB / 0.5939 GB, free: 6.238 MB / 378.7 MB Notification: Performance of matching and sorting (n=195) (initialization): time 0.005885/0.6812, allocations: 2.163 MB / 0.596 GB, free: 4.062 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001549/0.6827, allocations: 5.401 MB / 0.6012 GB, free: 14.33 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.985e-05/0.6828, allocations: 16 kB / 0.6013 GB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000233/0.683, allocations: 36.86 kB / 0.6013 GB, free: 14.28 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002498/0.6855, allocations: 447.3 kB / 0.6017 GB, free: 13.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001522/0.6871, allocations: 1.307 MB / 0.603 GB, free: 12.4 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002072/0.6892, allocations: 168 kB / 0.6032 GB, free: 12.24 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001559/0.6893, allocations: 71.94 kB / 0.6032 GB, free: 12.17 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.041e-05/0.6894, allocations: 4 kB / 0.6032 GB, free: 12.16 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004114/0.6935, allocations: 1.875 MB / 0.6051 GB, free: 10.29 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.875e-05/0.6935, allocations: 12 kB / 0.6051 GB, free: 10.27 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001162/0.6937, allocations: 48.8 kB / 0.6051 GB, free: 10.22 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00166/0.6953, allocations: 411.9 kB / 0.6055 GB, free: 9.82 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009533/0.6963, allocations: 1.303 MB / 0.6068 GB, free: 8.379 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001554/0.6979, allocations: 144.1 kB / 0.6069 GB, free: 8.238 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00015/0.698, allocations: 60 kB / 0.607 GB, free: 8.18 MB / 394.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 () * Number of clocked 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.001072/0.6991, allocations: 492.5 kB / 0.6074 GB, free: 7.688 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003649/0.6995, allocations: 162 kB / 0.6076 GB, free: 7.527 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003894/0.7034, allocations: 1.631 MB / 0.6092 GB, free: 5.875 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.328e-06/0.7034, allocations: 8 kB / 0.6092 GB, free: 5.867 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.7034, allocations: 0 / 0.6092 GB, free: 5.867 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.275e-05/0.7034, allocations: 7.984 kB / 0.6092 GB, free: 5.859 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007857/0.7113, allocations: 3.946 MB / 0.6131 GB, free: 1.719 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-05/0.7113, allocations: 8 kB / 0.6131 GB, free: 1.711 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001141/0.7125, allocations: 295.7 kB / 0.6134 GB, free: 1.422 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001147/0.7126, allocations: 36.84 kB / 0.6134 GB, free: 1.383 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.405e-05/0.7127, allocations: 28 kB / 0.6134 GB, free: 1.355 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008454/0.7136, allocations: 1.311 MB / 0.6147 GB, free: 15.91 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.01e-05/0.7136, allocations: 15.89 kB / 0.6147 GB, free: 15.9 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004817/0.7184, allocations: 2.985 MB / 0.6176 GB, free: 12.47 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007986/0.7192, allocations: 331 kB / 0.6179 GB, free: 12.12 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002772/0.7195, allocations: 35.98 kB / 0.618 GB, free: 12.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001125/0.7206, allocations: 147.9 kB / 0.6181 GB, free: 11.95 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002485/0.7209, allocations: 136.2 kB / 0.6182 GB, free: 11.81 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.724e-05/0.721, allocations: 40 kB / 0.6183 GB, free: 11.77 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00172/0.7227, allocations: 0.9044 MB / 0.6192 GB, free: 10.87 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.7227, allocations: 0 / 0.6192 GB, free: 10.87 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002281/0.725, allocations: 0.6913 MB / 0.6198 GB, free: 10.18 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 () * Number of clocked 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.006321/0.7313, allocations: 6.609 MB / 0.6263 GB, free: 3.258 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006046/0.7374, allocations: 2.965 MB / 0.6292 GB, free: 284 kB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.648e-06/0.7374, allocations: 4 kB / 0.6292 GB, free: 280 kB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001634/0.7391, allocations: 0.7744 MB / 0.63 GB, free: 15.49 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001652/0.7407, allocations: 326.3 kB / 0.6303 GB, free: 15.18 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02488/0.7656, allocations: 20.63 MB / 0.6504 GB, free: 9.645 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001528/0.7672, allocations: 1.368 MB / 0.6517 GB, free: 8.238 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001864/0.7691, allocations: 292.7 kB / 0.652 GB, free: 7.945 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001109/0.7702, allocations: 0.7492 MB / 0.6528 GB, free: 7.195 MB / 442.7 MB Notification: Performance of SimCode: time 7.21e-07/0.7702, allocations: 0 / 0.6528 GB, free: 7.195 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2118/0.982, allocations: 36.66 MB / 0.6886 GB, free: 126.8 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001626/0.9822, allocations: 227.1 kB / 0.6888 GB, free: 126.5 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.951/3.933, allocations: 0 / 0.6888 GB, free: 126.5 MB / 458.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