Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.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.WorkInProgress.Tests.TestClockedIntegerToTrigger,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedIntegerToTrigger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedIntegerToTrigger",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.00168/0.001686, allocations: 181.8 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.12/2.12, allocations: 205.2 MB / 219 MB, free: 9.191 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.001127/0.001127, allocations: 95.77 kB / 267.1 MB, free: 9.258 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.1081/0.1081, allocations: 12.59 MB / 327.7 MB, free: 12.47 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.242e-05/3.246e-05, allocations: 0 / 386.1 MB, free: 69.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1007, allocations: 50.37 MB / 436.5 MB, free: 19.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4648/0.5656, allocations: 81.85 MB / 0.5062 GB, free: 11.89 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002388/0.5659, allocations: 71.55 kB / 0.5062 GB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02322/0.5891, allocations: 5.808 MB / 0.5119 GB, free: 9.691 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.5892, allocations: 0 / 0.5119 GB, free: 9.691 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.128e-05/0.5893, allocations: 7.906 kB / 0.5119 GB, free: 9.688 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0006956/0.59, allocations: 0.494 MB / 0.5124 GB, free: 9.215 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.59, allocations: 7.75 kB / 0.5124 GB, free: 9.215 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.523e-05/0.5901, allocations: 38.34 kB / 0.5124 GB, free: 9.176 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.776e-05/0.5902, allocations: 27.09 kB / 0.5125 GB, free: 9.16 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005295/0.5907, allocations: 292.6 kB / 0.5128 GB, free: 8.91 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.273e-05/0.5908, allocations: 7.594 kB / 0.5128 GB, free: 8.91 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.843e-05/0.5908, allocations: 11.09 kB / 0.5128 GB, free: 8.91 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003888/0.5912, allocations: 175.8 kB / 0.5129 GB, free: 8.805 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.159e-05/0.5912, allocations: 0 / 0.5129 GB, free: 8.805 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.249e-05/0.5913, allocations: 3.984 kB / 0.5129 GB, free: 8.801 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.534e-06/0.5913, allocations: 3.781 kB / 0.5129 GB, free: 8.801 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001546/0.5914, allocations: 53.03 kB / 0.513 GB, free: 8.789 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007411/0.5922, allocations: 418.4 kB / 0.5134 GB, free: 8.457 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002644/0.5925, allocations: 125 kB / 0.5135 GB, free: 8.391 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001079/0.5926, allocations: 53.48 kB / 0.5136 GB, free: 8.367 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.19e-05/0.5926, allocations: 3.812 kB / 0.5136 GB, free: 8.367 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001991/0.5928, allocations: 94.92 kB / 0.5137 GB, free: 8.301 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.284e-06/0.5929, allocations: 0 / 0.5137 GB, free: 8.301 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004223/0.5933, allocations: 145.5 kB / 0.5138 GB, free: 8.242 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.863e-05/0.5934, allocations: 139.3 kB / 0.5139 GB, free: 8.082 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000428/0.5938, allocations: 293.8 kB / 0.5142 GB, free: 7.961 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.545e-05/0.5939, allocations: 28.95 kB / 0.5142 GB, free: 7.93 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.546e-05/0.594, allocations: 131.2 kB / 0.5144 GB, free: 7.836 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.036e-05/0.594, allocations: 34.14 kB / 0.5144 GB, free: 7.816 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.248e-05/0.594, allocations: 2.562 kB / 0.5144 GB, free: 7.816 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.914e-05/0.5941, allocations: 335.4 kB / 0.5147 GB, free: 7.496 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.178e-05/0.5942, allocations: 31.38 kB / 0.5147 GB, free: 7.496 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001673/0.5944, allocations: 122.6 kB / 0.5149 GB, free: 7.406 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000118/0.5945, allocations: 48.3 kB / 0.5149 GB, free: 7.395 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.5946, allocations: 3.953 kB / 0.5149 GB, free: 7.391 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003384/0.5949, allocations: 167.6 kB / 0.5151 GB, free: 7.324 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.5949, allocations: 3.812 kB / 0.5151 GB, free: 7.324 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-06/0.5949, allocations: 3.875 kB / 0.5151 GB, free: 7.324 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.595, allocations: 3.844 kB / 0.5151 GB, free: 7.324 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001901/0.5952, allocations: 27.45 kB / 0.5151 GB, free: 7.312 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.027e-05/0.5952, allocations: 3.875 kB / 0.5151 GB, free: 7.312 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001442/0.5953, allocations: 15.39 kB / 0.5151 GB, free: 7.305 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.746e-05/0.5954, allocations: 7.625 kB / 0.5151 GB, free: 7.305 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.triggeredBooleanSampler.y,triggeredBooleanSampler.y,$whenCondition2,$PRE.integerTable.combiTimeTable.nextTimeEvent,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEventScaled,ClockedSignalToTrigger.y2,$CLKPRE.ClockedSignalToTrigger.y2,$whenCondition1,ClockedSignalToTrigger.y,$PRE.ClockedSignalToTrigger.y3,ClockedSignalToTrigger.y3,ClockedSignalToTrigger.u,sample1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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 9.455e-05/0.5955, allocations: 133.1 kB / 0.5153 GB, free: 7.184 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001073/0.5956, allocations: 67.73 kB / 0.5153 GB, free: 7.133 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003532/0.596, allocations: 146.7 kB / 0.5155 GB, free: 7.082 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.431e-06/0.596, allocations: 3.984 kB / 0.5155 GB, free: 7.078 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.53e-06/0.596, allocations: 0 / 0.5155 GB, free: 7.078 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.596, allocations: 3.875 kB / 0.5155 GB, free: 7.078 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006667/0.5967, allocations: 497.9 kB / 0.516 GB, free: 6.715 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.5967, allocations: 0 / 0.516 GB, free: 6.715 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001133/0.5968, allocations: 23.48 kB / 0.516 GB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.828e-06/0.5969, allocations: 0 / 0.516 GB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.861e-05/0.5969, allocations: 7.156 kB / 0.516 GB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.5969, allocations: 0 / 0.516 GB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.5969, allocations: 0 / 0.516 GB, free: 6.703 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003522/0.5973, allocations: 265.9 kB / 0.5162 GB, free: 6.52 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.394e-05/0.5974, allocations: 115.7 kB / 0.5163 GB, free: 6.406 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.361e-05/0.5974, allocations: 3.5 kB / 0.5163 GB, free: 6.406 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001705/0.5976, allocations: 7.906 kB / 0.5164 GB, free: 6.402 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.892e-05/0.5977, allocations: 14.95 kB / 0.5164 GB, free: 6.398 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.942e-05/0.5977, allocations: 11.73 kB / 0.5164 GB, free: 6.391 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003013/0.598, allocations: 236.2 kB / 0.5166 GB, free: 6.293 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.5981, allocations: 0 / 0.5166 GB, free: 6.293 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004402/0.5985, allocations: 55.69 kB / 0.5167 GB, free: 6.285 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: 11 (sample1.y,ClockedSignalToTrigger.u,ClockedSignalToTrigger.y2,ClockedSignalToTrigger.y,$whenCondition2,$whenCondition1,ClockedSignalToTrigger.y3,triggeredBooleanSampler.y,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 3 (integerTable.combiTimeTable.nextTimeEvent,ClockedSignalToTrigger.y3,integerTable.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.00167/0.6002, allocations: 1.213 MB / 0.5178 GB, free: 5.277 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003334/0.6005, allocations: 123.9 kB / 0.518 GB, free: 5.254 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.6006, allocations: 320 / 0.518 GB, free: 5.254 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001078/0.6007, allocations: 50.33 kB / 0.518 GB, free: 5.242 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004637/0.6011, allocations: 48.77 kB / 0.5181 GB, free: 5.234 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009236/0.6021, allocations: 380.2 kB / 0.5184 GB, free: 5.02 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002259/0.6023, allocations: 0.7462 MB / 0.5191 GB, free: 4.289 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001335/0.6025, allocations: 36.88 kB / 0.5192 GB, free: 4.273 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001488/0.6026, allocations: 68.72 kB / 0.5192 GB, free: 4.258 MB / 330.7 MB Notification: Performance of SimCode: time 7.21e-07/0.6027, allocations: 0 / 0.5192 GB, free: 4.258 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02902/0.6317, allocations: 5.057 MB / 0.5242 GB, free: 15.84 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003625/0.6321, allocations: 215.2 kB / 0.5244 GB, free: 15.62 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.642/3.275, allocations: 0 / 0.5244 GB, free: 15.62 MB / 346.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedIntegerToTrigger_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestClockedIntegerToTrigger.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe 2>&1)