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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001435/0.001441, allocations: 104.2 kB / 16.31 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 191.2 kB / 17.24 MB, free: 5.922 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.811/1.811, allocations: 205.1 MB / 223.1 MB, free: 12.31 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07924/0.07924, allocations: 12.6 MB / 283.1 MB, free: 15.48 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002958/0.002958, allocations: 88.81 kB / 343.5 MB, free: 2.957 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3689/0.3718, allocations: 49.38 MB / 392.9 MB, free: 49.2 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger): time 0.004623/0.3765, allocations: 1.885 MB / 394.8 MB, free: 47.9 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001947/0.3785, allocations: 1.043 MB / 395.8 MB, free: 47.18 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000146/0.3787, allocations: 1.25 kB / 395.8 MB, free: 47.18 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004971/0.3792, allocations: 72.05 kB / 395.9 MB, free: 47.15 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004314/0.3796, allocations: 87.7 kB / 396 MB, free: 47.11 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008974/0.3805, allocations: 231.2 kB / 396.2 MB, free: 46.99 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003328/0.3809, allocations: 177.6 kB / 396.4 MB, free: 46.91 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002041/0.3811, allocations: 42.8 kB / 396.4 MB, free: 46.89 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001642/0.3813, allocations: 78.39 kB / 396.5 MB, free: 46.86 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001772/0.3815, allocations: 94.3 kB / 396.6 MB, free: 46.81 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.732e-05/0.3815, allocations: 14.41 kB / 396.6 MB, free: 46.81 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001904/0.3817, allocations: 62.69 kB / 396.6 MB, free: 46.79 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001124/0.3818, allocations: 55.53 kB / 396.7 MB, free: 46.75 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001045/0.3819, allocations: 79.61 kB / 396.8 MB, free: 46.69 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003976/0.3823, allocations: 238.8 kB / 397 MB, free: 46.53 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.133e-06/0.3824, allocations: 5.016 kB / 397 MB, free: 46.53 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3824, allocations: 0 / 397 MB, free: 46.53 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.3824, allocations: 0 / 397 MB, free: 46.53 MB / 318.1 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.000841/0.3832, allocations: 0.5264 MB / 397.5 MB, free: 46.01 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.771e-05/0.3833, allocations: 9.344 kB / 397.6 MB, free: 46.01 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.527e-05/0.3834, allocations: 27.53 kB / 397.6 MB, free: 45.99 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003408/0.3837, allocations: 288 kB / 397.9 MB, free: 45.71 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.885e-05/0.3837, allocations: 9.375 kB / 397.9 MB, free: 45.71 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.659e-05/0.3838, allocations: 9.781 kB / 397.9 MB, free: 45.7 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004366/0.3842, allocations: 179.8 kB / 398.1 MB, free: 45.56 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.3842, allocations: 0 / 398.1 MB, free: 45.56 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.96e-05/0.3843, allocations: 5.25 kB / 398.1 MB, free: 45.55 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.3843, allocations: 1.906 kB / 398.1 MB, free: 45.55 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000154/0.3844, allocations: 48.25 kB / 398.1 MB, free: 45.53 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005521/0.385, allocations: 405.3 kB / 398.5 MB, free: 45.14 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002595/0.3853, allocations: 131.8 kB / 398.6 MB, free: 45.05 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.136e-05/0.3854, allocations: 46.05 kB / 398.7 MB, free: 45.02 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.118e-05/0.3854, allocations: 10.23 kB / 398.7 MB, free: 45.01 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002612/0.3857, allocations: 93.61 kB / 398.8 MB, free: 44.93 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.623e-06/0.3857, allocations: 1.438 kB / 398.8 MB, free: 44.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004493/0.3861, allocations: 181.5 kB / 399 MB, free: 44.82 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.774e-05/0.3862, allocations: 140 kB / 399.1 MB, free: 44.66 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003575/0.3866, allocations: 328.9 kB / 399.4 MB, free: 44.46 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.114e-05/0.3866, allocations: 28.64 kB / 399.4 MB, free: 44.43 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.505e-05/0.3867, allocations: 134 kB / 399.6 MB, free: 44.3 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.461e-05/0.3868, allocations: 21.06 kB / 399.6 MB, free: 44.29 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.876e-05/0.3868, allocations: 39.58 kB / 399.6 MB, free: 44.25 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.3869, allocations: 337.8 kB / 400 MB, free: 43.92 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.554e-05/0.387, allocations: 38.73 kB / 400 MB, free: 43.9 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000141/0.3872, allocations: 118 kB / 400.1 MB, free: 43.79 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002004/0.3874, allocations: 119.9 kB / 400.2 MB, free: 43.7 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.3874, allocations: 0 / 400.2 MB, free: 43.7 MB / 318.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003104/0.3877, allocations: 171.1 kB / 400.4 MB, free: 43.59 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.3878, allocations: 5.625 kB / 400.4 MB, free: 43.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.957e-06/0.3878, allocations: 2.281 kB / 400.4 MB, free: 43.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.997e-05/0.3878, allocations: 2.312 kB / 400.4 MB, free: 43.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001455/0.3879, allocations: 28.73 kB / 400.4 MB, free: 43.58 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.258e-05/0.388, allocations: 7.281 kB / 400.4 MB, free: 43.58 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.486e-05/0.3881, allocations: 16.45 kB / 400.5 MB, free: 43.57 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.601e-05/0.3881, allocations: 5.531 kB / 400.5 MB, free: 43.57 MB / 318.1 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 (triggeredBooleanSampler.y,$PRE.triggeredBooleanSampler.y,$PRE.integerTable.combiTimeTable.nextTimeEvent,$whenCondition2,integerTable.combiTimeTable.nextTimeEventScaled,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.y,ClockedSignalToTrigger.y3,$PRE.ClockedSignalToTrigger.y3,ClockedSignalToTrigger.y,$whenCondition1,$CLKPRE.ClockedSignalToTrigger.y2,ClockedSignalToTrigger.y2,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001456/0.3882, allocations: 158.6 kB / 400.6 MB, free: 43.43 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.901e-05/0.3883, allocations: 66.12 kB / 400.7 MB, free: 43.38 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.926e-05/0.3884, allocations: 26.64 kB / 400.7 MB, free: 43.37 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.3884, allocations: 2.312 kB / 400.7 MB, free: 43.37 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/0.3884, allocations: 4.969 kB / 400.7 MB, free: 43.36 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.3884, allocations: 5.188 kB / 400.7 MB, free: 43.36 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005661/0.389, allocations: 473.4 kB / 401.2 MB, free: 42.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.389, allocations: 1.312 kB / 401.2 MB, free: 42.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.095e-05/0.3891, allocations: 17.7 kB / 401.2 MB, free: 42.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.3891, allocations: 9.219 kB / 401.2 MB, free: 42.92 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/0.3891, allocations: 1.375 kB / 401.2 MB, free: 42.92 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.3891, allocations: 1.188 kB / 401.2 MB, free: 42.92 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3892, allocations: 1.094 kB / 401.2 MB, free: 42.92 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003208/0.3895, allocations: 260.9 kB / 401.5 MB, free: 42.71 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.574e-05/0.3895, allocations: 101 kB / 401.6 MB, free: 42.61 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.089e-05/0.3896, allocations: 14.11 kB / 401.6 MB, free: 42.59 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.3e-05/0.3897, allocations: 7.219 kB / 401.6 MB, free: 42.59 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.713e-05/0.3898, allocations: 13.23 kB / 401.6 MB, free: 42.58 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.079e-05/0.3898, allocations: 3.75 kB / 401.6 MB, free: 42.58 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002512/0.39, allocations: 243.9 kB / 401.8 MB, free: 42.43 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3901, allocations: 0 / 401.8 MB, free: 42.43 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003377/0.3904, allocations: 36.06 kB / 401.9 MB, free: 42.43 MB / 318.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00104/0.3914, allocations: 421.6 kB / 402.3 MB, free: 42.1 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003331/0.3918, allocations: 116.9 kB / 402.4 MB, free: 42.04 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.3918, allocations: 1.188 kB / 402.4 MB, free: 42.04 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000109/0.3919, allocations: 43.91 kB / 402.5 MB, free: 42.02 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000446/0.3924, allocations: 68.5 kB / 402.5 MB, free: 41.98 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006981/0.3931, allocations: 390.9 kB / 402.9 MB, free: 41.71 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002458/0.3933, allocations: 0.7506 MB / 403.7 MB, free: 40.98 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 9.488e-05/0.3934, allocations: 31.27 kB / 403.7 MB, free: 40.96 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.946e-05/0.3935, allocations: 21.59 kB / 403.7 MB, free: 40.95 MB / 318.1 MB Notification: Performance of SimCode: time 2e-07/0.3935, allocations: 0 / 403.7 MB, free: 40.95 MB / 318.1 MB Notification: Performance of Templates: time 0.00728/0.4008, allocations: 2.92 MB / 406.6 MB, free: 39.48 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.makefile (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 & ./Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger.pipe 2>&1)