Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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: translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001462/0.001462, allocations: 184.6 kB / 16.45 MB, free: 5.656 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.591/1.591, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.0008096/0.0008097, allocations: 100.9 kB / 270.9 MB, free: 8.352 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.09152/0.09152, allocations: 12.59 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003763/0.0003763, allocations: 16 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08465/0.08504, allocations: 50.38 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger): time 0.002242/0.08733, allocations: 1.552 MB / 443.9 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001648/0.08901, allocations: 0.9759 MB / 444.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001157/0.08914, allocations: 3.938 kB / 444.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000332/0.08949, allocations: 63.78 kB / 445 MB, free: 13.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002251/0.08973, allocations: 75.73 kB / 445 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006931/0.09044, allocations: 195.7 kB / 445.2 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002089/0.09066, allocations: 151.5 kB / 445.4 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.09078, allocations: 33.52 kB / 445.4 MB, free: 13.4 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001023/0.0909, allocations: 67.7 kB / 445.5 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000114/0.09102, allocations: 75.67 kB / 445.6 MB, free: 13.26 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.515e-05/0.09106, allocations: 4 kB / 445.6 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001449/0.09121, allocations: 51.91 kB / 445.6 MB, free: 13.2 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.829e-05/0.09129, allocations: 43.83 kB / 445.7 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.725e-05/0.09135, allocations: 49.64 kB / 445.7 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002308/0.09159, allocations: 183.8 kB / 445.9 MB, free: 12.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.0916, allocations: 0 / 445.9 MB, free: 12.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.09161, allocations: 0 / 445.9 MB, free: 12.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.428e-06/0.09163, allocations: 0 / 445.9 MB, free: 12.93 MB / 298.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.0006615/0.09229, allocations: 0.5038 MB / 446.4 MB, free: 12.37 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.09234, allocations: 8.031 kB / 446.4 MB, free: 12.36 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.372e-05/0.09241, allocations: 23.81 kB / 446.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003189/0.09274, allocations: 273.5 kB / 446.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.408e-05/0.09277, allocations: 11.98 kB / 446.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.276e-05/0.0928, allocations: 8 kB / 446.7 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003875/0.0932, allocations: 182.6 kB / 446.9 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.09323, allocations: 0 / 446.9 MB, free: 11.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.101e-05/0.09326, allocations: 11.95 kB / 446.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.09327, allocations: 0 / 446.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001581/0.09344, allocations: 43.97 kB / 446.9 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006103/0.09406, allocations: 413.4 kB / 447.3 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003428/0.09442, allocations: 125.3 kB / 447.5 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001299/0.09457, allocations: 53.69 kB / 447.5 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.383e-05/0.0946, allocations: 0 / 447.5 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001812/0.09479, allocations: 91.3 kB / 447.6 MB, free: 10.99 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.493e-06/0.0948, allocations: 0 / 447.6 MB, free: 10.99 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004609/0.09527, allocations: 185.3 kB / 447.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.544e-05/0.09534, allocations: 136.5 kB / 447.9 MB, free: 10.64 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003783/0.09573, allocations: 324.9 kB / 448.2 MB, free: 10.31 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.09576, allocations: 29.7 kB / 448.3 MB, free: 10.27 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.325e-05/0.09586, allocations: 136 kB / 448.4 MB, free: 10.14 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.74e-05/0.09591, allocations: 27.66 kB / 448.4 MB, free: 10.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.171e-05/0.09594, allocations: 4 kB / 448.4 MB, free: 10.11 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.259e-05/0.09601, allocations: 334.8 kB / 448.8 MB, free: 9.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001573/0.09619, allocations: 35.94 kB / 448.8 MB, free: 9.734 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000168/0.09637, allocations: 120.5 kB / 448.9 MB, free: 9.586 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001379/0.09652, allocations: 47.94 kB / 449 MB, free: 9.539 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.09654, allocations: 0 / 449 MB, free: 9.539 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003793/0.09693, allocations: 161.2 kB / 449.1 MB, free: 9.375 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.547e-05/0.09696, allocations: 4 kB / 449.1 MB, free: 9.371 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.09697, allocations: 4 kB / 449.1 MB, free: 9.367 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.09699, allocations: 3.984 kB / 449.1 MB, free: 9.363 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000156/0.09716, allocations: 24.31 kB / 449.1 MB, free: 9.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.616e-06/0.09718, allocations: 8.141 kB / 449.2 MB, free: 9.332 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001325/0.09733, allocations: 12 kB / 449.2 MB, free: 9.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.572e-05/0.09736, allocations: 4 kB / 449.2 MB, free: 9.316 MB / 298.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.0001442/0.09751, allocations: 175.9 kB / 449.3 MB, free: 9.133 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.721e-05/0.09759, allocations: 69.41 kB / 449.4 MB, free: 9.059 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.447e-05/0.09764, allocations: 25.83 kB / 449.4 MB, free: 9.035 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.09765, allocations: 4 kB / 449.4 MB, free: 9.031 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.09766, allocations: 4 kB / 449.4 MB, free: 9.027 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.09767, allocations: 4 kB / 449.4 MB, free: 9.023 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004957/0.09817, allocations: 478.2 kB / 449.9 MB, free: 8.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.09819, allocations: 0 / 449.9 MB, free: 8.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.886e-05/0.09828, allocations: 11.94 kB / 449.9 MB, free: 8.488 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.0983, allocations: 4 kB / 449.9 MB, free: 8.484 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.428e-05/0.09832, allocations: 3.984 kB / 449.9 MB, free: 8.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.09833, allocations: 0 / 449.9 MB, free: 8.48 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.09834, allocations: 4 kB / 449.9 MB, free: 8.477 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003481/0.0987, allocations: 248.1 kB / 450.2 MB, free: 8.215 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.781e-05/0.09878, allocations: 104.8 kB / 450.3 MB, free: 8.094 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.988e-05/0.09884, allocations: 11.94 kB / 450.3 MB, free: 8.082 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001828/0.09904, allocations: 4 kB / 450.3 MB, free: 8.078 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.117e-05/0.09912, allocations: 11.98 kB / 450.3 MB, free: 8.066 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.35e-05/0.09916, allocations: 11.92 kB / 450.3 MB, free: 8.055 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002556/0.09942, allocations: 236.4 kB / 450.5 MB, free: 7.824 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.09943, allocations: 4 kB / 450.6 MB, free: 7.82 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004886/0.09993, allocations: 40.12 kB / 450.6 MB, free: 7.781 MB / 298.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 (14): * Single equations (assignments): 11 * 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.001109/0.1011, allocations: 430 kB / 451 MB, free: 7.352 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003082/0.1014, allocations: 103.8 kB / 451.1 MB, free: 7.25 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1014, allocations: 0 / 451.1 MB, free: 7.25 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001108/0.1015, allocations: 36.3 kB / 451.1 MB, free: 7.215 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005823/0.1021, allocations: 68.48 kB / 451.2 MB, free: 7.148 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006778/0.1028, allocations: 441 kB / 451.6 MB, free: 6.688 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001821/0.103, allocations: 0.744 MB / 452.4 MB, free: 5.918 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.865e-05/0.1031, allocations: 27.42 kB / 452.4 MB, free: 5.891 MB / 298.7 MB Notification: Performance of SimCode: time 3.1e-07/0.1031, allocations: 0 / 452.4 MB, free: 5.891 MB / 298.7 MB Notification: Performance of Templates: time 0.005858/0.1089, allocations: 3.072 MB / 455.5 MB, free: 2.809 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger --alarm=480 > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe 2>&1)