Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",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.001576/0.001575, allocations: 183.6 kB / 15.8 MB, free: 6.316 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.097/2.097, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001124/0.001124, allocations: 90.84 kB / 270.3 MB, free: 13.35 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.1198/0.1198, allocations: 12.59 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005657/0.0005657, allocations: 11.69 kB / 392.1 MB, free: 54.83 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09634/0.09695, allocations: 50.37 MB / 442.5 MB, free: 10.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1471/0.2441, allocations: 79.95 MB / 0.5102 GB, free: 10.79 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002866/0.2445, allocations: 71.95 kB / 0.5102 GB, free: 10.71 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01028/0.2548, allocations: 2.333 MB / 0.5125 GB, free: 8.379 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.235e-06/0.2548, allocations: 4.188 kB / 0.5125 GB, free: 8.375 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.665e-05/0.2548, allocations: 4 kB / 0.5125 GB, free: 8.371 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0007741/0.2556, allocations: 426.8 kB / 0.5129 GB, free: 7.906 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.2557, allocations: 8.031 kB / 0.5129 GB, free: 7.898 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.707e-05/0.2558, allocations: 46.55 kB / 0.513 GB, free: 7.844 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.514e-05/0.2558, allocations: 19.81 kB / 0.513 GB, free: 7.824 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002743/0.2561, allocations: 194.9 kB / 0.5132 GB, free: 7.594 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.167e-05/0.2561, allocations: 11.95 kB / 0.5132 GB, free: 7.582 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.575e-05/0.2562, allocations: 15.91 kB / 0.5132 GB, free: 7.566 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007459/0.257, allocations: 234.6 kB / 0.5134 GB, free: 7.312 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.257, allocations: 0 / 0.5134 GB, free: 7.312 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.474e-05/0.257, allocations: 8 kB / 0.5135 GB, free: 7.305 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.487e-05/0.2571, allocations: 4 kB / 0.5135 GB, free: 7.301 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004411/0.2575, allocations: 99.81 kB / 0.5135 GB, free: 7.203 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009333/0.2585, allocations: 0.5843 MB / 0.5141 GB, free: 6.543 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004407/0.2589, allocations: 161.6 kB / 0.5143 GB, free: 6.359 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.186e-05/0.259, allocations: 3.984 kB / 0.5143 GB, free: 6.355 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.6e-05/0.259, allocations: 42.45 kB / 0.5143 GB, free: 6.305 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 2.595e-06/0.259, allocations: 0 / 0.5143 GB, free: 6.305 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.000851/0.2599, allocations: 193.4 kB / 0.5145 GB, free: 6.109 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.824e-05/0.26, allocations: 110.8 kB / 0.5146 GB, free: 5.977 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001449/0.2602, allocations: 117.2 kB / 0.5147 GB, free: 5.852 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.285e-05/0.2602, allocations: 30.08 kB / 0.5147 GB, free: 5.816 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.259e-05/0.2603, allocations: 112.1 kB / 0.5149 GB, free: 5.703 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.875e-05/0.2604, allocations: 31.64 kB / 0.5149 GB, free: 5.672 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.172e-05/0.2604, allocations: 0 / 0.5149 GB, free: 5.672 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.2606, allocations: 330.7 kB / 0.5152 GB, free: 5.34 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002071/0.2608, allocations: 35.98 kB / 0.5152 GB, free: 5.305 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002744/0.2611, allocations: 136.8 kB / 0.5154 GB, free: 5.125 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002422/0.2613, allocations: 63.92 kB / 0.5154 GB, free: 5.062 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.329e-06/0.2614, allocations: 0 / 0.5154 GB, free: 5.062 MB / 362.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006468/0.262, allocations: 201.3 kB / 0.5156 GB, free: 4.859 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.533e-05/0.2621, allocations: 8 kB / 0.5156 GB, free: 4.852 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.2621, allocations: 4 kB / 0.5156 GB, free: 4.848 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.368e-05/0.2621, allocations: 8.031 kB / 0.5156 GB, free: 4.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003129/0.2624, allocations: 47.91 kB / 0.5157 GB, free: 4.793 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.264e-05/0.2625, allocations: 4.438 kB / 0.5157 GB, free: 4.789 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001759/0.2626, allocations: 23.91 kB / 0.5157 GB, free: 4.766 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.979e-05/0.2627, allocations: 8 kB / 0.5157 GB, free: 4.758 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.000166/0.2628, allocations: 137.5 kB / 0.5159 GB, free: 4.613 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002171/0.2631, allocations: 85.48 kB / 0.5159 GB, free: 4.523 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.173e-05/0.2632, allocations: 16.72 kB / 0.5159 GB, free: 4.504 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.2632, allocations: 0 / 0.5159 GB, free: 4.504 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.2632, allocations: 4 kB / 0.516 GB, free: 4.5 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.2632, allocations: 4 kB / 0.516 GB, free: 4.496 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003619/0.2636, allocations: 205.5 kB / 0.5162 GB, free: 4.246 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.2636, allocations: 0 / 0.5162 GB, free: 4.246 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000312/0.2639, allocations: 35.97 kB / 0.5162 GB, free: 4.211 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.718e-06/0.2639, allocations: 7.953 kB / 0.5162 GB, free: 4.203 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.032e-05/0.264, allocations: 4 kB / 0.5162 GB, free: 4.199 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.264, allocations: 3.938 kB / 0.5162 GB, free: 4.195 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.264, allocations: 4 kB / 0.5162 GB, free: 4.191 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009031/0.2649, allocations: 408.7 kB / 0.5166 GB, free: 3.762 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.746e-05/0.265, allocations: 100.9 kB / 0.5167 GB, free: 3.645 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.881e-05/0.2651, allocations: 4 kB / 0.5167 GB, free: 3.641 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000204/0.2653, allocations: 12 kB / 0.5167 GB, free: 3.629 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.852e-05/0.2653, allocations: 7.984 kB / 0.5167 GB, free: 3.621 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.2654, allocations: 0 / 0.5167 GB, free: 3.621 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.482e-05/0.2655, allocations: 95.33 kB / 0.5168 GB, free: 3.527 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.2655, allocations: 7.938 kB / 0.5168 GB, free: 3.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004516/0.2659, allocations: 36.03 kB / 0.5168 GB, free: 3.484 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 (14): * Single equations (assignments): 14 * 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.001292/0.2672, allocations: 1.08 MB / 0.5179 GB, free: 2.367 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00055/0.2678, allocations: 123.9 kB / 0.518 GB, free: 2.246 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.2678, allocations: 0.875 kB / 0.518 GB, free: 2.246 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001889/0.268, allocations: 39.91 kB / 0.5181 GB, free: 2.207 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005604/0.2686, allocations: 48.02 kB / 0.5181 GB, free: 2.16 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3282/0.5968, allocations: 3.081 MB / 0.5211 GB, free: 84.57 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002024/0.5971, allocations: 0.7198 MB / 0.5218 GB, free: 83.88 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.251e-05/0.5972, allocations: 15.22 kB / 0.5218 GB, free: 83.87 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.524e-05/0.5973, allocations: 33.05 kB / 0.5219 GB, free: 83.86 MB / 362.7 MB Notification: Performance of SimCode: time 1.362e-06/0.5973, allocations: 0 / 0.5219 GB, free: 83.86 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02676/0.6241, allocations: 2.387 MB / 0.5242 GB, free: 83.55 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002974/0.6244, allocations: 224.3 kB / 0.5244 GB, free: 83.32 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.462/3.087, allocations: 0 / 0.5244 GB, free: 83.32 MB / 362.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat does not exist to compare? outputFormat=mat