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.001649/0.001649, allocations: 105.5 kB / 16.45 MB, free: 6.441 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.001722/0.001723, allocations: 189.4 kB / 17.39 MB, free: 5.688 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.911/1.911, allocations: 205.1 MB / 223.3 MB, free: 12.2 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.1253/0.1253, allocations: 12.59 MB / 283.2 MB, free: 15.39 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.001713/0.001713, allocations: 86.3 kB / 394.1 MB, free: 45.4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1245/0.1262, allocations: 49.41 MB / 443.6 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger): time 0.004584/0.1309, allocations: 1.88 MB / 445.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00231/0.1332, allocations: 1.045 MB / 446.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002331/0.1335, allocations: 4 kB / 446.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004757/0.134, allocations: 67.66 kB / 446.6 MB, free: 13.48 MB / 334.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.0005522/0.1345, allocations: 91.59 kB / 446.6 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008962/0.1354, allocations: 231.4 kB / 446.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003495/0.1358, allocations: 171.6 kB / 447 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000196/0.136, allocations: 49.45 kB / 447.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001882/0.1362, allocations: 87.61 kB / 447.2 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001809/0.1364, allocations: 83.67 kB / 447.3 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.961e-05/0.1364, allocations: 12 kB / 447.3 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002294/0.1367, allocations: 71.91 kB / 447.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001256/0.1368, allocations: 55.81 kB / 447.4 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001225/0.137, allocations: 79.48 kB / 447.5 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005078/0.1375, allocations: 251.1 kB / 447.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.1375, allocations: 0 / 447.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1375, allocations: 0 / 447.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.173e-05/0.1375, allocations: 0 / 447.7 MB, free: 12.32 MB / 334.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.001113/0.1386, allocations: 0.5274 MB / 448.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.803e-05/0.1387, allocations: 8.031 kB / 448.2 MB, free: 11.73 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.888e-05/0.1388, allocations: 24.66 kB / 448.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004986/0.1393, allocations: 286.7 kB / 448.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.85e-05/0.1393, allocations: 8.375 kB / 448.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.893e-05/0.1393, allocations: 12.12 kB / 448.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004278/0.1398, allocations: 174.7 kB / 448.7 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.1398, allocations: 0 / 448.7 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.635e-05/0.1398, allocations: 15.97 kB / 448.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.1399, allocations: 0 / 448.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001609/0.14, allocations: 47.91 kB / 448.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007192/0.1407, allocations: 401.5 kB / 449.2 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003092/0.1411, allocations: 125.3 kB / 449.3 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.1412, allocations: 49.7 kB / 449.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.421e-05/0.1412, allocations: 3.938 kB / 449.4 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002016/0.1414, allocations: 103.2 kB / 449.5 MB, free: 10.35 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 2.104e-06/0.1414, allocations: 0 / 449.5 MB, free: 10.35 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004878/0.1419, allocations: 181.3 kB / 449.6 MB, free: 10.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.86e-05/0.1421, allocations: 140.4 kB / 449.8 MB, free: 9.996 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003783/0.1424, allocations: 320.9 kB / 450.1 MB, free: 9.672 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.926e-05/0.1425, allocations: 37.69 kB / 450.1 MB, free: 9.629 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001374/0.1426, allocations: 136 kB / 450.3 MB, free: 9.492 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.877e-05/0.1427, allocations: 27.7 kB / 450.3 MB, free: 9.465 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001035/0.1428, allocations: 37.7 kB / 450.3 MB, free: 9.422 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.143, allocations: 330.8 kB / 450.7 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000103/0.1431, allocations: 35.97 kB / 450.7 MB, free: 9.055 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001701/0.1433, allocations: 112.6 kB / 450.8 MB, free: 8.914 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002241/0.1435, allocations: 129.9 kB / 450.9 MB, free: 8.766 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.1435, allocations: 0 / 450.9 MB, free: 8.766 MB / 334.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003173/0.1438, allocations: 169.2 kB / 451.1 MB, free: 8.594 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.886e-05/0.1439, allocations: 4 kB / 451.1 MB, free: 8.59 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.225e-06/0.1439, allocations: 0 / 451.1 MB, free: 8.59 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.794e-05/0.1439, allocations: 4 kB / 451.1 MB, free: 8.586 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.144, allocations: 23.92 kB / 451.1 MB, free: 8.562 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.339e-05/0.1441, allocations: 7.938 kB / 451.1 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.354e-05/0.1442, allocations: 16.09 kB / 451.1 MB, free: 8.539 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.633e-05/0.1442, allocations: 8 kB / 451.2 MB, free: 8.531 MB / 334.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.0001692/0.1444, allocations: 156 kB / 451.3 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001172/0.1445, allocations: 69.41 kB / 451.4 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.287e-05/0.1446, allocations: 29.7 kB / 451.4 MB, free: 8.266 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.1446, allocations: 288 / 451.4 MB, free: 8.266 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.406e-06/0.1446, allocations: 3.938 kB / 451.4 MB, free: 8.262 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.166e-06/0.1446, allocations: 3.984 kB / 451.4 MB, free: 8.258 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006831/0.1453, allocations: 474.7 kB / 451.9 MB, free: 7.738 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.1453, allocations: 8.031 kB / 451.9 MB, free: 7.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.608e-05/0.1454, allocations: 11.94 kB / 451.9 MB, free: 7.719 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.841e-06/0.1454, allocations: 3.938 kB / 451.9 MB, free: 7.715 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.92e-05/0.1454, allocations: 7.984 kB / 451.9 MB, free: 7.707 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.1454, allocations: 0 / 451.9 MB, free: 7.707 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1454, allocations: 128 / 451.9 MB, free: 7.707 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003549/0.1458, allocations: 268.2 kB / 452.2 MB, free: 7.426 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.605e-05/0.1459, allocations: 108.8 kB / 452.3 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.79e-05/0.1459, allocations: 3.938 kB / 452.3 MB, free: 7.297 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.84e-05/0.1461, allocations: 8 kB / 452.3 MB, free: 7.289 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.186e-05/0.1461, allocations: 11.98 kB / 452.3 MB, free: 7.277 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.511e-05/0.1462, allocations: 11.98 kB / 452.3 MB, free: 7.266 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002462/0.1464, allocations: 228.5 kB / 452.5 MB, free: 7.047 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1464, allocations: 0 / 452.5 MB, free: 7.047 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003486/0.1468, allocations: 43.98 kB / 452.6 MB, free: 7.004 MB / 334.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.001095/0.1479, allocations: 424.4 kB / 453 MB, free: 6.578 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003433/0.1482, allocations: 103.8 kB / 453.1 MB, free: 6.477 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.1482, allocations: 3.938 kB / 453.1 MB, free: 6.473 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001103/0.1484, allocations: 39.92 kB / 453.1 MB, free: 6.434 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004719/0.1488, allocations: 58.38 kB / 453.2 MB, free: 6.379 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007818/0.1496, allocations: 384.6 kB / 453.6 MB, free: 5.973 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004368/0.1501, allocations: 0.7398 MB / 454.3 MB, free: 5.203 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001252/0.1502, allocations: 37.52 kB / 454.3 MB, free: 5.168 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.589e-05/0.1503, allocations: 23.42 kB / 454.4 MB, free: 5.145 MB / 334.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1503, allocations: 0 / 454.4 MB, free: 5.145 MB / 334.1 MB Notification: Performance of Templates: time 0.008468/0.1588, allocations: 2.931 MB / 457.3 MB, free: 2.211 MB / 334.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)