Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.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.AssignClock,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_AssignClock",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_AssignClock",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.00152/0.001519, allocations: 181.5 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.215/2.215, allocations: 205.2 MB / 219 MB, free: 9.148 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.001113/0.001113, allocations: 92.41 kB / 267.1 MB, free: 9.27 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.1127/0.1127, allocations: 12.58 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 4.513e-05/4.534e-05, allocations: 4 kB / 386.1 MB, free: 69.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1341, allocations: 50.38 MB / 436.5 MB, free: 19.12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5208/0.655, allocations: 77.76 MB / 0.5022 GB, free: 11.96 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004005/0.6555, allocations: 76.72 kB / 0.5023 GB, free: 11.96 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006951/0.6625, allocations: 1.269 MB / 0.5035 GB, free: 11.58 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.776e-06/0.6625, allocations: 0 / 0.5035 GB, free: 11.58 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.69e-05/0.6626, allocations: 3.844 kB / 0.5035 GB, free: 11.58 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004327/0.663, allocations: 349.4 kB / 0.5038 GB, free: 11.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.547e-05/0.6631, allocations: 7.844 kB / 0.5038 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.658e-05/0.6632, allocations: 40.61 kB / 0.5039 GB, free: 11.19 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.518e-05/0.6633, allocations: 11.78 kB / 0.5039 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002681/0.6635, allocations: 195.1 kB / 0.5041 GB, free: 10.97 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.6636, allocations: 15.3 kB / 0.5041 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.019e-05/0.6636, allocations: 3.812 kB / 0.5041 GB, free: 10.96 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004955/0.6641, allocations: 127.5 kB / 0.5042 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.6642, allocations: 7.875 kB / 0.5042 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.61e-05/0.6642, allocations: 2.062 kB / 0.5042 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.817e-06/0.6642, allocations: 3.969 kB / 0.5042 GB, free: 10.91 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001053/0.6644, allocations: 24.47 kB / 0.5043 GB, free: 10.9 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002058/0.6646, allocations: 169.8 kB / 0.5044 GB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002859/0.6649, allocations: 76.02 kB / 0.5045 GB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001414/0.6651, allocations: 44.22 kB / 0.5045 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.122e-05/0.6651, allocations: 3.844 kB / 0.5045 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.995e-05/0.6652, allocations: 34.56 kB / 0.5046 GB, free: 10.63 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 4.128e-06/0.6652, allocations: 0 / 0.5046 GB, free: 10.63 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003177/0.6655, allocations: 83.81 kB / 0.5047 GB, free: 10.59 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.199e-05/0.6656, allocations: 57.09 kB / 0.5047 GB, free: 10.53 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001878/0.6658, allocations: 133.2 kB / 0.5048 GB, free: 10.43 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.831e-05/0.6659, allocations: 33.61 kB / 0.5049 GB, free: 10.4 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.847e-05/0.6659, allocations: 83.77 kB / 0.5049 GB, free: 10.32 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.598e-05/0.666, allocations: 10.22 kB / 0.505 GB, free: 10.32 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.883e-06/0.666, allocations: 0 / 0.505 GB, free: 10.32 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.127e-05/0.6661, allocations: 320.9 kB / 0.5053 GB, free: 10 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.709e-05/0.6662, allocations: 14.78 kB / 0.5053 GB, free: 9.996 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.505e-05/0.6663, allocations: 54 kB / 0.5053 GB, free: 9.934 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.533e-05/0.6664, allocations: 17.91 kB / 0.5053 GB, free: 9.93 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.6664, allocations: 0 / 0.5053 GB, free: 9.93 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.00027/0.6667, allocations: 96.08 kB / 0.5054 GB, free: 9.879 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/0.6667, allocations: 11.72 kB / 0.5054 GB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.451e-05/0.6668, allocations: 6.594 kB / 0.5055 GB, free: 9.875 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.408e-05/0.6668, allocations: 3.938 kB / 0.5055 GB, free: 9.871 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001787/0.667, allocations: 19.47 kB / 0.5055 GB, free: 9.867 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.667, allocations: 2.953 kB / 0.5055 GB, free: 9.867 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.569e-05/0.6671, allocations: 7.797 kB / 0.5055 GB, free: 9.863 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.603e-05/0.6672, allocations: 7.375 kB / 0.5055 GB, free: 9.863 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,unitDelay1.u,$CLKPRE.unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.0001104/0.6673, allocations: 114.8 kB / 0.5056 GB, free: 9.754 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002106/0.6675, allocations: 88.22 kB / 0.5057 GB, free: 9.707 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.484e-05/0.6676, allocations: 12.19 kB / 0.5057 GB, free: 9.703 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.432e-06/0.6677, allocations: 0.875 kB / 0.5057 GB, free: 9.703 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.352e-06/0.6677, allocations: 0 / 0.5057 GB, free: 9.703 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.395e-06/0.6677, allocations: 3.141 kB / 0.5057 GB, free: 9.703 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001459/0.6679, allocations: 172.5 kB / 0.5059 GB, free: 9.516 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.6679, allocations: 0 / 0.5059 GB, free: 9.516 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001799/0.6681, allocations: 14.39 kB / 0.5059 GB, free: 9.516 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.703e-06/0.6681, allocations: 4 kB / 0.5059 GB, free: 9.512 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.512e-05/0.6681, allocations: 3.953 kB / 0.5059 GB, free: 9.508 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.6682, allocations: 4 kB / 0.5059 GB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.6682, allocations: 0 / 0.5059 GB, free: 9.504 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002514/0.6685, allocations: 113.5 kB / 0.506 GB, free: 9.434 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.802e-05/0.6686, allocations: 101.2 kB / 0.5061 GB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.273e-05/0.6686, allocations: 0 / 0.5061 GB, free: 9.332 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.955e-05/0.6687, allocations: 3.953 kB / 0.5061 GB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.612e-06/0.6687, allocations: 0 / 0.5061 GB, free: 9.328 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.343e-05/0.6688, allocations: 7.469 kB / 0.5061 GB, free: 9.328 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001124/0.6689, allocations: 108.4 kB / 0.5062 GB, free: 9.246 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.092e-06/0.6689, allocations: 0 / 0.5062 GB, free: 9.246 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004631/0.6694, allocations: 14.08 kB / 0.5062 GB, free: 9.242 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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.000628/0.6701, allocations: 0.6661 MB / 0.5069 GB, free: 8.648 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002317/0.6703, allocations: 52.23 kB / 0.5069 GB, free: 8.641 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.6703, allocations: 0 / 0.5069 GB, free: 8.641 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 2.003e-06/0.6704, allocations: 0 / 0.5069 GB, free: 8.641 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000472/0.6708, allocations: 39.84 kB / 0.507 GB, free: 8.637 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007075/0.6716, allocations: 164.8 kB / 0.5071 GB, free: 8.516 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000222/0.6718, allocations: 0.7052 MB / 0.5078 GB, free: 7.816 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.324e-05/0.6719, allocations: 5.047 kB / 0.5078 GB, free: 7.809 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.795e-05/0.672, allocations: 22.11 kB / 0.5078 GB, free: 7.801 MB / 330.7 MB Notification: Performance of SimCode: time 1.733e-06/0.672, allocations: 0 / 0.5078 GB, free: 7.801 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02405/0.6961, allocations: 1.568 MB / 0.5094 GB, free: 7.48 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000292/0.6964, allocations: 172.4 kB / 0.5095 GB, free: 7.262 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.359/3.055, allocations: 0 / 0.5095 GB, free: 7.262 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_AssignClock_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_IntegerSignals_AssignClock.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock_res.mat does not exist to compare? outputFormat=mat