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.003209/0.003208, allocations: 179.7 kB / 15.8 MB, free: 6.34 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.037/2.037, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001166/0.001166, allocations: 98.83 kB / 270.3 MB, free: 13.37 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.1021/0.1021, allocations: 12.59 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005539/0.0005539, allocations: 18 kB / 392.1 MB, free: 54.8 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0934/0.09399, allocations: 50.37 MB / 442.5 MB, free: 10.85 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1727/0.2667, allocations: 81.95 MB / 0.5121 GB, free: 8.785 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002815/0.267, allocations: 71.97 kB / 0.5122 GB, free: 8.715 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02701/0.2941, allocations: 5.826 MB / 0.5179 GB, free: 2.883 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2941, allocations: 8 kB / 0.5179 GB, free: 2.875 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.477e-05/0.2942, allocations: 0 / 0.5179 GB, free: 2.875 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: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.001035/0.2952, allocations: 0.535 MB / 0.5184 GB, free: 2.285 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.2953, allocations: 11.97 kB / 0.5184 GB, free: 2.273 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.511e-05/0.2954, allocations: 46.48 kB / 0.5185 GB, free: 2.219 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.4e-05/0.2955, allocations: 23.72 kB / 0.5185 GB, free: 2.195 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005976/0.2961, allocations: 285.7 kB / 0.5188 GB, free: 1.875 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.22e-05/0.2961, allocations: 4 kB / 0.5188 GB, free: 1.871 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.385e-05/0.2962, allocations: 12 kB / 0.5188 GB, free: 1.859 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004941/0.2967, allocations: 178.6 kB / 0.519 GB, free: 1.66 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.2967, allocations: 0 / 0.519 GB, free: 1.66 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.043e-05/0.2967, allocations: 0 / 0.519 GB, free: 1.66 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.876e-05/0.2968, allocations: 11.98 kB / 0.519 GB, free: 1.648 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002166/0.297, allocations: 55.91 kB / 0.519 GB, free: 1.594 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008743/0.2979, allocations: 421.4 kB / 0.5194 GB, free: 1.129 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004281/0.2983, allocations: 129.4 kB / 0.5195 GB, free: 0.9844 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.828e-05/0.2984, allocations: 4 kB / 0.5195 GB, free: 0.9805 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003029/0.2987, allocations: 96.06 kB / 0.5196 GB, free: 0.875 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 2.695e-06/0.2987, allocations: 0 / 0.5196 GB, free: 0.875 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0006957/0.2994, allocations: 197.2 kB / 0.5198 GB, free: 0.6758 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/0.2995, allocations: 132.5 kB / 0.52 GB, free: 0.5156 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005253/0.3001, allocations: 300.1 kB / 0.5202 GB, free: 220 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.894e-05/0.3001, allocations: 29.7 kB / 0.5203 GB, free: 184 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001235/0.3002, allocations: 128 kB / 0.5204 GB, free: 52 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.249e-05/0.3003, allocations: 31.84 kB / 0.5204 GB, free: 20 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.476e-05/0.3003, allocations: 4 kB / 0.5204 GB, free: 16 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.2796/0.5799, allocations: 327 kB / 0.5207 GB, free: 83.81 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003217/0.5803, allocations: 37.83 kB / 0.5208 GB, free: 83.81 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003604/0.5807, allocations: 129 kB / 0.5209 GB, free: 83.73 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000262/0.581, allocations: 45.88 kB / 0.5209 GB, free: 83.73 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.18e-06/0.581, allocations: 0 / 0.5209 GB, free: 83.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0007643/0.5818, allocations: 169.8 kB / 0.5211 GB, free: 83.7 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.849e-05/0.5818, allocations: 4.969 kB / 0.5211 GB, free: 83.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.5819, allocations: 2.344 kB / 0.5211 GB, free: 83.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.719e-05/0.5819, allocations: 5.469 kB / 0.5211 GB, free: 83.7 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002973/0.5822, allocations: 24.75 kB / 0.5211 GB, free: 83.7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.604e-05/0.5823, allocations: 4.469 kB / 0.5211 GB, free: 83.7 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002613/0.5825, allocations: 18.98 kB / 0.5212 GB, free: 83.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.268e-05/0.5826, allocations: 7.688 kB / 0.5212 GB, free: 83.7 MB / 362.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 () * Number of clocked states: 1 (ClockedSignalToTrigger.y2) * 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 0.0003312/0.583, allocations: 166.6 kB / 0.5213 GB, free: 83.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002038/0.5832, allocations: 71.31 kB / 0.5214 GB, free: 83.54 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006989/0.5839, allocations: 148.7 kB / 0.5215 GB, free: 83.5 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.5839, allocations: 2.219 kB / 0.5215 GB, free: 83.5 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/0.584, allocations: 2.609 kB / 0.5215 GB, free: 83.5 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.584, allocations: 1.75 kB / 0.5215 GB, free: 83.5 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001396/0.5854, allocations: 0.4892 MB / 0.522 GB, free: 83.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/0.5855, allocations: 4.812 kB / 0.522 GB, free: 83.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001979/0.5857, allocations: 13.44 kB / 0.522 GB, free: 83.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.324e-05/0.5857, allocations: 1.438 kB / 0.522 GB, free: 83.2 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.953e-05/0.5858, allocations: 3.297 kB / 0.522 GB, free: 83.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.617e-06/0.5858, allocations: 2.219 kB / 0.522 GB, free: 83.2 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.5858, allocations: 0 / 0.522 GB, free: 83.2 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008115/0.5866, allocations: 284.6 kB / 0.5223 GB, free: 83.04 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001674/0.5868, allocations: 114.1 kB / 0.5224 GB, free: 82.94 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.755e-05/0.587, allocations: 6.484 kB / 0.5224 GB, free: 82.94 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000271/0.5872, allocations: 9.984 kB / 0.5224 GB, free: 82.94 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.671e-05/0.5874, allocations: 11.45 kB / 0.5224 GB, free: 82.94 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.675e-05/0.5874, allocations: 10.95 kB / 0.5225 GB, free: 82.94 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006403/0.5881, allocations: 239.2 kB / 0.5227 GB, free: 82.86 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.132e-06/0.5881, allocations: 0 / 0.5227 GB, free: 82.86 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009572/0.5891, allocations: 57.38 kB / 0.5227 GB, free: 82.86 MB / 362.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) * Number of clocked states: 1 (ClockedSignalToTrigger.y2) * 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.003442/0.5926, allocations: 1.262 MB / 0.524 GB, free: 81.9 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008872/0.5935, allocations: 128.3 kB / 0.5241 GB, free: 81.89 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.103e-06/0.5936, allocations: 1.25 kB / 0.5241 GB, free: 81.89 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002697/0.5939, allocations: 46.28 kB / 0.5241 GB, free: 81.89 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008494/0.5948, allocations: 60.33 kB / 0.5242 GB, free: 81.89 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004954/0.5997, allocations: 2.188 MB / 0.5263 GB, free: 80.45 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004043/0.6002, allocations: 0.7488 MB / 0.5271 GB, free: 79.75 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002981/0.6005, allocations: 33.91 kB / 0.5271 GB, free: 79.75 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002475/0.6008, allocations: 66.17 kB / 0.5272 GB, free: 79.74 MB / 362.7 MB Notification: Performance of SimCode: time 1.653e-06/0.6008, allocations: 0 / 0.5272 GB, free: 79.74 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03129/0.6321, allocations: 5.094 MB / 0.5321 GB, free: 79.11 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002367/0.6325, allocations: 252.7 kB / 0.5324 GB, free: 78.8 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.527/3.159, allocations: 0 / 0.5324 GB, free: 78.8 MB / 362.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)