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.001496/0.001496, allocations: 181.4 kB / 15.8 MB, free: 6.34 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.055/2.055, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.00119/0.00119, allocations: 82.86 kB / 270.3 MB, free: 13.37 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09864/0.09864, allocations: 12.6 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000597/0.000597, allocations: 16.62 kB / 392.1 MB, free: 54.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.1011, allocations: 50.37 MB / 442.5 MB, free: 10.84 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.148/0.2491, allocations: 79.98 MB / 0.5102 GB, free: 10.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003108/0.2495, allocations: 67.97 kB / 0.5103 GB, free: 10.68 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01058/0.2601, allocations: 2.36 MB / 0.5126 GB, free: 8.32 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.414e-06/0.2602, allocations: 0 / 0.5126 GB, free: 8.32 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.538e-05/0.2602, allocations: 4 kB / 0.5126 GB, free: 8.316 MB / 362.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.0008051/0.261, allocations: 418.9 kB / 0.513 GB, free: 7.859 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/0.2611, allocations: 8.031 kB / 0.513 GB, free: 7.852 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.113e-05/0.2611, allocations: 46.55 kB / 0.513 GB, free: 7.797 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.089e-05/0.2612, allocations: 19.81 kB / 0.513 GB, free: 7.777 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000269/0.2615, allocations: 203 kB / 0.5132 GB, free: 7.539 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.859e-05/0.2615, allocations: 8 kB / 0.5132 GB, free: 7.531 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.389e-05/0.2616, allocations: 12 kB / 0.5133 GB, free: 7.52 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007434/0.2623, allocations: 260.3 kB / 0.5135 GB, free: 7.242 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/0.2624, allocations: 3.984 kB / 0.5135 GB, free: 7.238 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.119e-05/0.2624, allocations: 4 kB / 0.5135 GB, free: 7.234 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.2624, allocations: 4 kB / 0.5135 GB, free: 7.23 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004444/0.2629, allocations: 99.88 kB / 0.5136 GB, free: 7.133 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000917/0.2638, allocations: 0.5921 MB / 0.5142 GB, free: 6.465 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005262/0.2644, allocations: 149.5 kB / 0.5143 GB, free: 6.293 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.787e-05/0.2644, allocations: 8 kB / 0.5143 GB, free: 6.285 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.37e-05/0.2645, allocations: 42.53 kB / 0.5144 GB, free: 6.234 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 2.745e-06/0.2645, allocations: 4 kB / 0.5144 GB, free: 6.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0008973/0.2654, allocations: 197.3 kB / 0.5146 GB, free: 6.031 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.673e-05/0.2655, allocations: 110.8 kB / 0.5147 GB, free: 5.898 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001484/0.2657, allocations: 117.2 kB / 0.5148 GB, free: 5.773 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.053e-05/0.2657, allocations: 37.69 kB / 0.5148 GB, free: 5.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.433e-05/0.2658, allocations: 112.3 kB / 0.5149 GB, free: 5.617 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.236e-05/0.2659, allocations: 31.78 kB / 0.515 GB, free: 5.586 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.989e-06/0.2659, allocations: 0 / 0.515 GB, free: 5.586 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001601/0.2661, allocations: 326.8 kB / 0.5153 GB, free: 5.258 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002047/0.2663, allocations: 44.28 kB / 0.5153 GB, free: 5.211 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003053/0.2666, allocations: 142.2 kB / 0.5155 GB, free: 5.027 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002407/0.2669, allocations: 59.92 kB / 0.5155 GB, free: 4.969 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.414e-06/0.2669, allocations: 4 kB / 0.5155 GB, free: 4.965 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006598/0.2675, allocations: 209.1 kB / 0.5157 GB, free: 4.754 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.2676, allocations: 7.953 kB / 0.5157 GB, free: 4.746 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.2676, allocations: 4 kB / 0.5157 GB, free: 4.742 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.103e-05/0.2676, allocations: 8 kB / 0.5157 GB, free: 4.734 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000307/0.268, allocations: 47.91 kB / 0.5158 GB, free: 4.688 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.563e-05/0.268, allocations: 8.406 kB / 0.5158 GB, free: 4.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001809/0.2682, allocations: 31.83 kB / 0.5158 GB, free: 4.648 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.221e-05/0.2682, allocations: 8 kB / 0.5158 GB, free: 4.641 MB / 362.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 () * Number of clocked states: 1 (PI.x) * 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 0.0001752/0.2684, allocations: 129.6 kB / 0.516 GB, free: 4.504 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002608/0.2687, allocations: 81.59 kB / 0.516 GB, free: 4.418 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001209/0.2688, allocations: 20.67 kB / 0.516 GB, free: 4.395 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.175e-05/0.2688, allocations: 240 / 0.516 GB, free: 4.395 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.207e-05/0.2688, allocations: 11.92 kB / 0.5161 GB, free: 4.383 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.905e-06/0.2689, allocations: 7.984 kB / 0.5161 GB, free: 4.375 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004048/0.2693, allocations: 209.5 kB / 0.5163 GB, free: 4.121 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.2693, allocations: 0 / 0.5163 GB, free: 4.121 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003353/0.2696, allocations: 35.98 kB / 0.5163 GB, free: 4.086 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/0.2697, allocations: 0 / 0.5163 GB, free: 4.086 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.064e-05/0.2697, allocations: 4 kB / 0.5163 GB, free: 4.082 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.932e-06/0.2697, allocations: 3.953 kB / 0.5163 GB, free: 4.078 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.795e-06/0.2697, allocations: 3.984 kB / 0.5163 GB, free: 4.074 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009754/0.2707, allocations: 422.7 kB / 0.5167 GB, free: 3.629 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.462e-05/0.2708, allocations: 92.94 kB / 0.5168 GB, free: 3.52 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.164e-05/0.2708, allocations: 4 kB / 0.5168 GB, free: 3.516 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002092/0.2711, allocations: 11.98 kB / 0.5168 GB, free: 3.504 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.738e-05/0.2711, allocations: 7.984 kB / 0.5168 GB, free: 3.496 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.771e-05/0.2712, allocations: 8 kB / 0.5168 GB, free: 3.488 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.572e-05/0.2713, allocations: 103.3 kB / 0.5169 GB, free: 3.387 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.2713, allocations: 0 / 0.5169 GB, free: 3.387 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004828/0.2718, allocations: 31.94 kB / 0.517 GB, free: 3.355 MB / 362.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 () * Number of clocked states: 1 (PI.x) * 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.001361/0.2731, allocations: 1.092 MB / 0.518 GB, free: 2.23 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0005642/0.2737, allocations: 127.8 kB / 0.5182 GB, free: 2.105 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.167e-06/0.2737, allocations: 0.9375 kB / 0.5182 GB, free: 2.105 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001954/0.274, allocations: 43.91 kB / 0.5182 GB, free: 2.062 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005099/0.2745, allocations: 48.02 kB / 0.5182 GB, free: 2.016 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.27/0.5445, allocations: 3.254 MB / 0.5214 GB, free: 84.25 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000207/0.5448, allocations: 0.7159 MB / 0.5221 GB, free: 83.55 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.945e-05/0.5449, allocations: 13.5 kB / 0.5221 GB, free: 83.55 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.127e-05/0.545, allocations: 37.3 kB / 0.5222 GB, free: 83.54 MB / 362.7 MB Notification: Performance of SimCode: time 1.172e-06/0.545, allocations: 0 / 0.5222 GB, free: 83.54 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02883/0.5739, allocations: 2.42 MB / 0.5245 GB, free: 83.24 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002313/0.5741, allocations: 226 kB / 0.5247 GB, free: 83 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.53/3.104, allocations: 2.297 kB / 0.5247 GB, free: 83 MB / 362.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