Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) 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_Synchronous.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_Continuous",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_Continuous",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.001707/0.001707, allocations: 182.4 kB / 13.23 MB, free: 2.086 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.284/2.284, allocations: 205.2 MB / 219 MB, free: 9.199 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.00114/0.00114, allocations: 95.83 kB / 267.1 MB, free: 9.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1131/0.1131, allocations: 12.59 MB / 327.8 MB, free: 12.47 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.486e-05/3.495e-05, allocations: 0 / 386.1 MB, free: 69.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09689/0.09695, allocations: 50.38 MB / 436.5 MB, free: 19.13 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4517/0.5487, allocations: 79.04 MB / 0.5034 GB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00028/0.549, allocations: 67.78 kB / 0.5035 GB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008934/0.558, allocations: 2.171 MB / 0.5056 GB, free: 11.42 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.577e-06/0.558, allocations: 0 / 0.5056 GB, free: 11.42 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.618e-05/0.5581, allocations: 3.688 kB / 0.5056 GB, free: 11.42 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 * Number of variables: 21 Notification: Performance of Generate backend data structure: time 0.0007478/0.5588, allocations: 396.8 kB / 0.506 GB, free: 11.05 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.818e-05/0.5589, allocations: 7.688 kB / 0.506 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.994e-05/0.559, allocations: 44.16 kB / 0.506 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.608e-05/0.5591, allocations: 7.75 kB / 0.506 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002256/0.5593, allocations: 188.1 kB / 0.5062 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.814e-05/0.5594, allocations: 12.52 kB / 0.5062 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.783e-05/0.5594, allocations: 15.28 kB / 0.5063 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002469/0.5597, allocations: 101.8 kB / 0.5063 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.5597, allocations: 0 / 0.5063 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.702e-05/0.5597, allocations: 3.062 kB / 0.5064 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.5597, allocations: 3.875 kB / 0.5064 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001471/0.5599, allocations: 52.61 kB / 0.5064 GB, free: 10.74 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009105/0.5608, allocations: 0.5378 MB / 0.5069 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002225/0.5611, allocations: 66.83 kB / 0.507 GB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.547e-05/0.5612, allocations: 31.67 kB / 0.507 GB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.135e-05/0.5612, allocations: 0 / 0.507 GB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.327e-05/0.5613, allocations: 33.8 kB / 0.5071 GB, free: 10.22 MB / 330.7 MB Notification: Performance of pre-optimization done (n=7): time 1.843e-06/0.5613, allocations: 0 / 0.5071 GB, free: 10.22 MB / 330.7 MB Notification: Performance of matching and sorting (n=7): time 0.0002462/0.5615, allocations: 70.53 kB / 0.5071 GB, free: 10.18 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.139e-05/0.5616, allocations: 55.25 kB / 0.5072 GB, free: 10.12 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.5617, allocations: 119.9 kB / 0.5073 GB, free: 10.03 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.532e-05/0.5617, allocations: 25.7 kB / 0.5073 GB, free: 9.996 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.298e-05/0.5618, allocations: 118.2 kB / 0.5074 GB, free: 9.898 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.964e-05/0.5618, allocations: 21.45 kB / 0.5074 GB, free: 9.883 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.017e-06/0.5618, allocations: 11.16 kB / 0.5075 GB, free: 9.879 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.651e-05/0.5619, allocations: 316.3 kB / 0.5078 GB, free: 9.566 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.364e-05/0.562, allocations: 26.28 kB / 0.5078 GB, free: 9.562 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.39e-05/0.5621, allocations: 54.59 kB / 0.5078 GB, free: 9.52 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.626e-05/0.5622, allocations: 22.98 kB / 0.5079 GB, free: 9.52 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/0.5622, allocations: 7.922 kB / 0.5079 GB, free: 9.516 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.00039/0.5626, allocations: 109.6 kB / 0.508 GB, free: 9.473 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.93e-05/0.5626, allocations: 3.844 kB / 0.508 GB, free: 9.473 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.5627, allocations: 11.81 kB / 0.508 GB, free: 9.465 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.958e-05/0.5627, allocations: 0 / 0.508 GB, free: 9.465 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003065/0.563, allocations: 36.94 kB / 0.508 GB, free: 9.461 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.079e-05/0.563, allocations: 3.844 kB / 0.508 GB, free: 9.461 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001412/0.5632, allocations: 18.19 kB / 0.508 GB, free: 9.453 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.344e-05/0.5632, allocations: 3.844 kB / 0.508 GB, free: 9.453 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.279e-05/0.5633, allocations: 119 kB / 0.5082 GB, free: 9.34 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.018e-05/0.5633, allocations: 7.859 kB / 0.5082 GB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.897e-05/0.5634, allocations: 12.12 kB / 0.5082 GB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.5634, allocations: 3.938 kB / 0.5082 GB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.5634, allocations: 0 / 0.5082 GB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.5634, allocations: 3.844 kB / 0.5082 GB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002303/0.5637, allocations: 192.3 kB / 0.5084 GB, free: 9.141 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.5637, allocations: 0 / 0.5084 GB, free: 9.141 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002765/0.564, allocations: 32.66 kB / 0.5084 GB, free: 9.133 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.761e-06/0.564, allocations: 7.141 kB / 0.5084 GB, free: 9.129 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.506e-05/0.564, allocations: 0 / 0.5084 GB, free: 9.129 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.238e-06/0.564, allocations: 0 / 0.5084 GB, free: 9.129 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.5641, allocations: 3.938 kB / 0.5084 GB, free: 9.125 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002978/0.5644, allocations: 199.3 kB / 0.5086 GB, free: 8.988 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.949e-05/0.5644, allocations: 84.11 kB / 0.5087 GB, free: 8.891 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.075e-05/0.5645, allocations: 14.95 kB / 0.5087 GB, free: 8.883 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001589/0.5646, allocations: 8.906 kB / 0.5087 GB, free: 8.879 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.508e-05/0.5647, allocations: 7.797 kB / 0.5087 GB, free: 8.875 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/0.5647, allocations: 0 / 0.5087 GB, free: 8.875 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.524e-05/0.5648, allocations: 106.1 kB / 0.5088 GB, free: 8.797 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.5648, allocations: 0 / 0.5088 GB, free: 8.797 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003321/0.5652, allocations: 23.41 kB / 0.5088 GB, free: 8.793 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (load.phi,load.w,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004796/0.5656, allocations: 0.7259 MB / 0.5095 GB, free: 8.117 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002007/0.5659, allocations: 60.31 kB / 0.5096 GB, free: 8.105 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.5659, allocations: 0 / 0.5096 GB, free: 8.105 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.596e-05/0.566, allocations: 25.91 kB / 0.5096 GB, free: 8.105 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004017/0.5664, allocations: 19.06 kB / 0.5096 GB, free: 8.098 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009619/0.5674, allocations: 307.2 kB / 0.5099 GB, free: 7.844 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001784/0.5676, allocations: 0.7114 MB / 0.5106 GB, free: 7.125 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.147e-05/0.5676, allocations: 20.09 kB / 0.5107 GB, free: 7.113 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.706e-05/0.5677, allocations: 26.09 kB / 0.5107 GB, free: 7.105 MB / 330.7 MB Notification: Performance of SimCode: time 1.142e-06/0.5677, allocations: 0 / 0.5107 GB, free: 7.105 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0273/0.595, allocations: 2.03 MB / 0.5127 GB, free: 6.043 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003136/0.5954, allocations: 178.9 kB / 0.5128 GB, free: 5.812 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.546/3.142, allocations: 0 / 0.5128 GB, free: 5.812 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_Continuous_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_Continuous.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.Continuous_res.mat does not exist to compare? outputFormat=mat