Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteController",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.00228/0.00228, allocations: 181.1 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.101/2.101, allocations: 205.2 MB / 219 MB, free: 9.207 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.001114/0.001114, allocations: 89.56 kB / 267.1 MB, free: 9.277 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.1174/0.1174, allocations: 12.59 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.552e-05/4.576e-05, allocations: 4 kB / 386.1 MB, free: 69.51 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.103, allocations: 50.37 MB / 436.5 MB, free: 19.13 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.449/0.552, allocations: 79.89 MB / 0.5043 GB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002682/0.5523, allocations: 79.48 kB / 0.5043 GB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009417/0.5618, allocations: 2.329 MB / 0.5066 GB, free: 11.35 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5618, allocations: 1.859 kB / 0.5066 GB, free: 11.35 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.388e-05/0.5619, allocations: 3.875 kB / 0.5066 GB, free: 11.35 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006226/0.5625, allocations: 403.7 kB / 0.507 GB, free: 10.96 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.851e-05/0.5626, allocations: 7.719 kB / 0.507 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.847e-05/0.5626, allocations: 48.8 kB / 0.507 GB, free: 10.92 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.544e-05/0.5627, allocations: 15.53 kB / 0.5071 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002478/0.5629, allocations: 206 kB / 0.5073 GB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.618e-05/0.563, allocations: 7.594 kB / 0.5073 GB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.778e-05/0.563, allocations: 18.16 kB / 0.5073 GB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005132/0.5635, allocations: 230.4 kB / 0.5075 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.926e-05/0.5636, allocations: 0 / 0.5075 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.035e-05/0.5636, allocations: 7.094 kB / 0.5075 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.5636, allocations: 7.844 kB / 0.5075 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001892/0.5638, allocations: 67.75 kB / 0.5076 GB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007254/0.5646, allocations: 0.5907 MB / 0.5082 GB, free: 9.98 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003653/0.565, allocations: 138.2 kB / 0.5083 GB, free: 9.895 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001292/0.5651, allocations: 66.23 kB / 0.5084 GB, free: 9.867 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.087e-05/0.5652, allocations: 6.828 kB / 0.5084 GB, free: 9.863 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.176e-05/0.5652, allocations: 38.41 kB / 0.5084 GB, free: 9.82 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 2.505e-06/0.5652, allocations: 0 / 0.5084 GB, free: 9.82 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003519/0.5656, allocations: 123.3 kB / 0.5085 GB, free: 9.762 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.064e-05/0.5656, allocations: 114.6 kB / 0.5086 GB, free: 9.633 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/0.5658, allocations: 117.3 kB / 0.5087 GB, free: 9.535 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.582e-05/0.5658, allocations: 29.58 kB / 0.5088 GB, free: 9.504 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.355e-05/0.5658, allocations: 110 kB / 0.5089 GB, free: 9.402 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.086e-05/0.5659, allocations: 25.91 kB / 0.5089 GB, free: 9.387 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.477e-06/0.5659, allocations: 7.781 kB / 0.5089 GB, free: 9.387 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.269e-05/0.566, allocations: 318 kB / 0.5092 GB, free: 9.07 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.17e-05/0.5661, allocations: 32.62 kB / 0.5092 GB, free: 9.059 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001212/0.5662, allocations: 121.2 kB / 0.5094 GB, free: 8.93 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001024/0.5663, allocations: 42.64 kB / 0.5094 GB, free: 8.914 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.5663, allocations: 3.906 kB / 0.5094 GB, free: 8.914 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003203/0.5667, allocations: 169.5 kB / 0.5096 GB, free: 8.84 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.5667, allocations: 11.78 kB / 0.5096 GB, free: 8.832 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.588e-06/0.5667, allocations: 3.844 kB / 0.5096 GB, free: 8.832 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.198e-05/0.5668, allocations: 7.688 kB / 0.5096 GB, free: 8.832 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000311/0.5671, allocations: 45.39 kB / 0.5096 GB, free: 8.824 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.566e-05/0.5671, allocations: 11.77 kB / 0.5096 GB, free: 8.816 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000166/0.5673, allocations: 17.69 kB / 0.5097 GB, free: 8.812 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.021e-05/0.5674, allocations: 18.56 kB / 0.5097 GB, free: 8.809 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 8.025e-05/0.5674, allocations: 121.8 kB / 0.5098 GB, free: 8.691 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000193/0.5677, allocations: 85.12 kB / 0.5099 GB, free: 8.648 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001053/0.5678, allocations: 22.38 kB / 0.5099 GB, free: 8.637 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.202e-06/0.5678, allocations: 3.844 kB / 0.5099 GB, free: 8.637 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.5678, allocations: 0 / 0.5099 GB, free: 8.637 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.5678, allocations: 3.844 kB / 0.5099 GB, free: 8.637 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003074/0.5681, allocations: 201.7 kB / 0.5101 GB, free: 8.43 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.5682, allocations: 4 kB / 0.5101 GB, free: 8.426 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003261/0.5685, allocations: 42.5 kB / 0.5101 GB, free: 8.414 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.765e-06/0.5685, allocations: 96 / 0.5101 GB, free: 8.414 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.165e-05/0.5685, allocations: 15.64 kB / 0.5101 GB, free: 8.406 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.5686, allocations: 3.953 kB / 0.5102 GB, free: 8.402 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.5686, allocations: 3.938 kB / 0.5102 GB, free: 8.398 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004287/0.569, allocations: 365.1 kB / 0.5105 GB, free: 8.129 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.407e-05/0.5691, allocations: 96.33 kB / 0.5106 GB, free: 8.023 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.049e-05/0.5691, allocations: 3.844 kB / 0.5106 GB, free: 8.023 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002075/0.5693, allocations: 7.312 kB / 0.5106 GB, free: 8.023 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.354e-05/0.5694, allocations: 7.828 kB / 0.5106 GB, free: 8.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.356e-05/0.5694, allocations: 3.844 kB / 0.5106 GB, free: 8.02 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.825e-05/0.5695, allocations: 113 kB / 0.5107 GB, free: 7.934 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.5695, allocations: 0 / 0.5107 GB, free: 7.934 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004273/0.5699, allocations: 22.66 kB / 0.5107 GB, free: 7.934 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.0006461/0.5706, allocations: 1.036 MB / 0.5118 GB, free: 7 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002965/0.5709, allocations: 93.94 kB / 0.5118 GB, free: 6.988 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.5709, allocations: 0 / 0.5118 GB, free: 6.988 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.562e-05/0.571, allocations: 23.86 kB / 0.5119 GB, free: 6.98 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004688/0.5715, allocations: 46.39 kB / 0.5119 GB, free: 6.973 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009834/0.5725, allocations: 348.2 kB / 0.5122 GB, free: 6.699 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001878/0.5727, allocations: 0.7188 MB / 0.5129 GB, free: 5.984 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 7.067e-05/0.5728, allocations: 8.953 kB / 0.513 GB, free: 5.98 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.933e-05/0.5729, allocations: 43.48 kB / 0.513 GB, free: 5.965 MB / 330.7 MB Notification: Performance of SimCode: time 1.031e-06/0.5729, allocations: 0 / 0.513 GB, free: 5.965 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0289/0.6018, allocations: 2.415 MB / 0.5154 GB, free: 4.719 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000314/0.6022, allocations: 191.3 kB / 0.5155 GB, free: 4.496 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.496/3.098, allocations: 0 / 0.5155 GB, free: 4.496 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat does not exist to compare? outputFormat=mat