Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.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.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Sample1",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.002349/0.002349, allocations: 180.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.091/2.091, allocations: 205.2 MB / 219 MB, free: 9.215 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.001091/0.001091, allocations: 84.47 kB / 267.1 MB, free: 9.273 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.1104/0.1104, allocations: 12.58 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 5.974e-05/5.996e-05, allocations: 7.984 kB / 386.1 MB, free: 69.49 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1036/0.1037, allocations: 50.36 MB / 436.5 MB, free: 19.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4637/0.5674, allocations: 77.65 MB / 0.5021 GB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002787/0.5677, allocations: 77.62 kB / 0.5021 GB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003912/0.5717, allocations: 1.109 MB / 0.5032 GB, free: 11.52 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.5717, allocations: 0.7812 kB / 0.5032 GB, free: 11.52 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.253e-05/0.5718, allocations: 3.781 kB / 0.5032 GB, free: 11.52 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003525/0.5721, allocations: 345 kB / 0.5036 GB, free: 11.17 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.5722, allocations: 11.56 kB / 0.5036 GB, free: 11.17 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.225e-05/0.5723, allocations: 36.05 kB / 0.5036 GB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.466e-05/0.5723, allocations: 12.62 kB / 0.5036 GB, free: 11.12 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001956/0.5725, allocations: 185.3 kB / 0.5038 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.5725, allocations: 10.83 kB / 0.5038 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.598e-05/0.5726, allocations: 0 / 0.5038 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002741/0.5728, allocations: 114.9 kB / 0.5039 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.5729, allocations: 7.844 kB / 0.5039 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.739e-06/0.5729, allocations: 0 / 0.5039 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.322e-06/0.5729, allocations: 0 / 0.5039 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.715e-05/0.573, allocations: 15.19 kB / 0.5039 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003667/0.5733, allocations: 267.2 kB / 0.5042 GB, free: 10.56 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001871/0.5735, allocations: 139.6 kB / 0.5043 GB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.144e-05/0.5736, allocations: 20.16 kB / 0.5043 GB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.18e-05/0.5736, allocations: 0 / 0.5043 GB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.768e-05/0.5737, allocations: 34.55 kB / 0.5044 GB, free: 10.35 MB / 330.7 MB Notification: Performance of pre-optimization done (n=4): time 1.573e-06/0.5737, allocations: 3.844 kB / 0.5044 GB, free: 10.35 MB / 330.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001774/0.5739, allocations: 59.3 kB / 0.5044 GB, free: 10.31 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.905e-05/0.5739, allocations: 84.22 kB / 0.5045 GB, free: 10.21 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000117/0.5741, allocations: 119.7 kB / 0.5046 GB, free: 10.12 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.156e-05/0.5741, allocations: 25.7 kB / 0.5047 GB, free: 10.09 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.048e-05/0.5741, allocations: 93.84 kB / 0.5048 GB, free: 10 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.189e-05/0.5742, allocations: 3.938 kB / 0.5048 GB, free: 10 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.848e-06/0.5742, allocations: 0 / 0.5048 GB, free: 10 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.886e-05/0.5743, allocations: 321.5 kB / 0.5051 GB, free: 9.684 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.015e-05/0.5743, allocations: 7.875 kB / 0.5051 GB, free: 9.68 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.332e-05/0.5743, allocations: 26.97 kB / 0.5051 GB, free: 9.648 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.363e-05/0.5744, allocations: 12.75 kB / 0.5051 GB, free: 9.645 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.5744, allocations: 0 / 0.5051 GB, free: 9.645 MB / 330.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001007/0.5745, allocations: 59.39 kB / 0.5052 GB, free: 9.605 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.5745, allocations: 3.844 kB / 0.5052 GB, free: 9.605 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.587e-06/0.5745, allocations: 6.844 kB / 0.5052 GB, free: 9.605 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.5746, allocations: 0 / 0.5052 GB, free: 9.605 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001082/0.5747, allocations: 7.688 kB / 0.5052 GB, free: 9.605 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.758e-06/0.5747, allocations: 7.828 kB / 0.5052 GB, free: 9.602 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.602e-05/0.5748, allocations: 7.141 kB / 0.5052 GB, free: 9.598 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.306e-06/0.5748, allocations: 3.844 kB / 0.5052 GB, free: 9.598 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (sample.u,sample.y,assignClock.y,assignClock.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 6.372e-05/0.5749, allocations: 120.6 kB / 0.5053 GB, free: 9.477 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.752e-05/0.575, allocations: 47.44 kB / 0.5054 GB, free: 9.445 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.163e-05/0.575, allocations: 4.031 kB / 0.5054 GB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.575, allocations: 3.844 kB / 0.5054 GB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.5751, allocations: 0 / 0.5054 GB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.5751, allocations: 0 / 0.5054 GB, free: 9.441 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001735/0.5752, allocations: 168.4 kB / 0.5055 GB, free: 9.25 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.775e-06/0.5753, allocations: 3.844 kB / 0.5055 GB, free: 9.25 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.32e-05/0.5754, allocations: 14.5 kB / 0.5055 GB, free: 9.25 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.5754, allocations: 7.938 kB / 0.5056 GB, free: 9.242 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.207e-06/0.5754, allocations: 4 kB / 0.5056 GB, free: 9.238 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.497e-06/0.5754, allocations: 0 / 0.5056 GB, free: 9.238 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.5754, allocations: 11.72 kB / 0.5056 GB, free: 9.23 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001303/0.5756, allocations: 165.6 kB / 0.5057 GB, free: 9.07 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.709e-05/0.5756, allocations: 90.98 kB / 0.5058 GB, free: 8.973 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.924e-05/0.5757, allocations: 7.844 kB / 0.5058 GB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.656e-05/0.5758, allocations: 2.859 kB / 0.5058 GB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.656e-05/0.5758, allocations: 3.844 kB / 0.5058 GB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.959e-06/0.5758, allocations: 0 / 0.5058 GB, free: 8.969 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.251e-05/0.5759, allocations: 104.9 kB / 0.5059 GB, free: 8.895 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.5759, allocations: 0 / 0.5059 GB, free: 8.895 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002737/0.5762, allocations: 3.844 kB / 0.5059 GB, free: 8.895 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 (sample.u,assignClock.u,assignClock.y,sample.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0003916/0.5766, allocations: 0.7742 MB / 0.5067 GB, free: 8.137 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001046/0.5767, allocations: 25.61 kB / 0.5067 GB, free: 8.133 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.5767, allocations: 0 / 0.5067 GB, free: 8.133 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.776e-05/0.5768, allocations: 0 / 0.5067 GB, free: 8.133 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002905/0.5771, allocations: 21.5 kB / 0.5067 GB, free: 8.129 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004316/0.5775, allocations: 133.3 kB / 0.5069 GB, free: 8.008 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001515/0.5777, allocations: 0.6967 MB / 0.5075 GB, free: 7.309 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 3.216e-05/0.5777, allocations: 7.984 kB / 0.5075 GB, free: 7.301 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.228e-05/0.5778, allocations: 17.5 kB / 0.5076 GB, free: 7.297 MB / 330.7 MB Notification: Performance of SimCode: time 2.464e-06/0.5778, allocations: 0 / 0.5076 GB, free: 7.297 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01868/0.5965, allocations: 1.222 MB / 0.5088 GB, free: 7 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001604/0.5967, allocations: 172.1 kB / 0.5089 GB, free: 6.777 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.399/2.996, allocations: 7.906 kB / 0.5089 GB, free: 6.77 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_Sample1.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1_res.mat does not exist to compare? outputFormat=mat