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.00152/0.001519, allocations: 178.1 kB / 8.047 MB, free: 1.023 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.03/2.03, allocations: 205.3 MB / 213.8 MB, free: 13.77 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: 95 kB / 261.8 MB, free: 13.45 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.1041/0.1041, allocations: 12.59 MB / 322.3 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 2.939e-05/2.937e-05, allocations: 4 kB / 379 MB, free: 75.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09521/0.09529, allocations: 50.38 MB / 429.4 MB, free: 24.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5314/0.6267, allocations: 81.19 MB / 0.4986 GB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002184/0.627, allocations: 62.86 kB / 0.4987 GB, free: 11.84 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02342/0.6504, allocations: 5.771 MB / 0.5043 GB, free: 10.7 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.583e-06/0.6505, allocations: 0 / 0.5043 GB, free: 10.7 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.644e-05/0.6505, allocations: 3.844 kB / 0.5043 GB, free: 10.7 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.0006878/0.6512, allocations: 0.4941 MB / 0.5048 GB, free: 10.22 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.6513, allocations: 11.41 kB / 0.5048 GB, free: 10.22 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.098e-05/0.6514, allocations: 22.75 kB / 0.5048 GB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005407/0.6519, allocations: 292.4 kB / 0.5051 GB, free: 9.965 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.317e-05/0.652, allocations: 3.844 kB / 0.5051 GB, free: 9.965 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.856e-05/0.652, allocations: 3.844 kB / 0.5051 GB, free: 9.965 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001669/0.6522, allocations: 51.7 kB / 0.5052 GB, free: 9.957 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003316/0.6525, allocations: 156.4 kB / 0.5053 GB, free: 9.852 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.6526, allocations: 0 / 0.5053 GB, free: 9.852 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.242e-05/0.6526, allocations: 3.984 kB / 0.5053 GB, free: 9.848 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.6526, allocations: 3.844 kB / 0.5053 GB, free: 9.848 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007435/0.6534, allocations: 404.1 kB / 0.5057 GB, free: 9.535 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000221/0.6536, allocations: 117 kB / 0.5058 GB, free: 9.473 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.973e-05/0.6537, allocations: 47.72 kB / 0.5059 GB, free: 9.453 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.623e-05/0.6538, allocations: 3.984 kB / 0.5059 GB, free: 9.449 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001903/0.654, allocations: 85.3 kB / 0.506 GB, free: 9.391 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.484e-06/0.654, allocations: 0 / 0.506 GB, free: 9.391 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.000395/0.6544, allocations: 146.3 kB / 0.5061 GB, free: 9.324 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.05e-05/0.6545, allocations: 132.5 kB / 0.5062 GB, free: 9.164 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004009/0.6549, allocations: 288.5 kB / 0.5065 GB, free: 9.047 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.827e-05/0.6549, allocations: 29.64 kB / 0.5065 GB, free: 9.016 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.43e-05/0.655, allocations: 131.7 kB / 0.5067 GB, free: 8.922 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.974e-05/0.6551, allocations: 30.25 kB / 0.5067 GB, free: 8.902 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.033e-05/0.6551, allocations: 0 / 0.5067 GB, free: 8.902 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.617e-05/0.6552, allocations: 333.2 kB / 0.507 GB, free: 8.586 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.958e-05/0.6553, allocations: 34.02 kB / 0.507 GB, free: 8.582 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001465/0.6554, allocations: 115.8 kB / 0.5071 GB, free: 8.492 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001134/0.6555, allocations: 38.02 kB / 0.5072 GB, free: 8.484 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.6555, allocations: 0 / 0.5072 GB, free: 8.484 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003306/0.6559, allocations: 154.5 kB / 0.5073 GB, free: 8.418 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.836e-05/0.656, allocations: 11.64 kB / 0.5073 GB, free: 8.414 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.656, allocations: 0 / 0.5073 GB, free: 8.414 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.924e-05/0.656, allocations: 3.844 kB / 0.5073 GB, free: 8.414 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002049/0.6562, allocations: 22.42 kB / 0.5074 GB, free: 8.41 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.6562, allocations: 7.828 kB / 0.5074 GB, free: 8.406 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001481/0.6564, allocations: 11.72 kB / 0.5074 GB, free: 8.398 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.813e-05/0.6564, allocations: 7.688 kB / 0.5074 GB, free: 8.398 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.887e-05/0.6565, allocations: 116.3 kB / 0.5075 GB, free: 8.289 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0002999/0.6568, allocations: 138.7 kB / 0.5076 GB, free: 8.23 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.974e-05/0.6569, allocations: 30.88 kB / 0.5077 GB, free: 8.211 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003347/0.6573, allocations: 136.5 kB / 0.5078 GB, free: 8.152 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.839e-06/0.6573, allocations: 0 / 0.5078 GB, free: 8.152 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.434e-06/0.6573, allocations: 8.031 kB / 0.5078 GB, free: 8.148 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.371e-06/0.6573, allocations: 0 / 0.5078 GB, free: 8.148 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006581/0.658, allocations: 459.4 kB / 0.5082 GB, free: 7.816 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.658, allocations: 7.641 kB / 0.5082 GB, free: 7.812 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001263/0.6581, allocations: 22.77 kB / 0.5083 GB, free: 7.805 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.6582, allocations: 0 / 0.5083 GB, free: 7.805 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.678e-05/0.6582, allocations: 0 / 0.5083 GB, free: 7.805 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.337e-06/0.6582, allocations: 3.844 kB / 0.5083 GB, free: 7.805 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.868e-06/0.6582, allocations: 0 / 0.5083 GB, free: 7.805 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003263/0.6585, allocations: 266.8 kB / 0.5085 GB, free: 7.613 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.28e-05/0.6587, allocations: 106.2 kB / 0.5086 GB, free: 7.508 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.535e-05/0.6587, allocations: 7.828 kB / 0.5086 GB, free: 7.504 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001694/0.6589, allocations: 3.906 kB / 0.5086 GB, free: 7.504 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.874e-05/0.659, allocations: 17.98 kB / 0.5087 GB, free: 7.492 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.898e-05/0.659, allocations: 7.281 kB / 0.5087 GB, free: 7.492 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002803/0.6593, allocations: 227.9 kB / 0.5089 GB, free: 7.391 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6593, allocations: 0 / 0.5089 GB, free: 7.391 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005068/0.6598, allocations: 53.28 kB / 0.5089 GB, free: 7.379 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.001609/0.6615, allocations: 1.183 MB / 0.5101 GB, free: 6.398 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003511/0.6618, allocations: 105.7 kB / 0.5102 GB, free: 6.383 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.6618, allocations: 0 / 0.5102 GB, free: 6.383 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001008/0.662, allocations: 40.88 kB / 0.5102 GB, free: 6.379 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005369/0.6625, allocations: 41.81 kB / 0.5103 GB, free: 6.371 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00104/0.6636, allocations: 368.2 kB / 0.5106 GB, free: 6.152 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002347/0.6638, allocations: 0.7563 MB / 0.5114 GB, free: 5.414 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001939/0.664, allocations: 33.14 kB / 0.5114 GB, free: 5.398 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001482/0.6642, allocations: 64.78 kB / 0.5115 GB, free: 5.383 MB / 330.7 MB Notification: Performance of SimCode: time 1.253e-06/0.6642, allocations: 0 / 0.5115 GB, free: 5.383 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04898/0.7132, allocations: 4.589 MB / 0.5159 GB, free: 3.164 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002517/0.7135, allocations: 193.3 kB / 0.5161 GB, free: 2.906 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.895/3.609, allocations: 4 kB / 0.5161 GB, free: 2.902 MB / 330.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)