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.001403/0.001409, allocations: 101.6 kB / 16.45 MB, free: 6.438 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.001534/0.001534, allocations: 190 kB / 17.38 MB, free: 5.668 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.844/1.844, allocations: 205.1 MB / 223.3 MB, free: 12.21 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.09045/0.09045, 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.001759/0.001759, allocations: 93.28 kB / 394.2 MB, free: 45.54 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.111/0.1128, allocations: 49.4 MB / 443.6 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger): time 0.004128/0.1169, allocations: 1.88 MB / 445.4 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00207/0.1191, allocations: 1.049 MB / 446.5 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001797/0.1193, allocations: 7.938 kB / 446.5 MB, free: 13.65 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003901/0.1197, allocations: 67.66 kB / 446.6 MB, free: 13.58 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.0003384/0.12, allocations: 91.58 kB / 446.6 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000734/0.1208, allocations: 235.3 kB / 446.9 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002315/0.121, allocations: 175.6 kB / 447 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001922/0.1212, allocations: 41.47 kB / 447.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001176/0.1214, allocations: 87.56 kB / 447.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001284/0.1215, allocations: 87.67 kB / 447.3 MB, free: 12.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.548e-05/0.1215, allocations: 8 kB / 447.3 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001559/0.1217, allocations: 75.94 kB / 447.3 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.711e-05/0.1218, allocations: 47.78 kB / 447.4 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.874e-05/0.1219, allocations: 91.45 kB / 447.5 MB, free: 12.66 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000352/0.1222, allocations: 239.2 kB / 447.7 MB, free: 12.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1222, allocations: 0 / 447.7 MB, free: 12.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1223, allocations: 0 / 447.7 MB, free: 12.43 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.853e-06/0.1223, allocations: 0 / 447.7 MB, free: 12.43 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.0009074/0.1232, allocations: 0.5351 MB / 448.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.1232, allocations: 8.031 kB / 448.3 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.24e-05/0.1233, allocations: 24.66 kB / 448.3 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005858/0.1239, allocations: 282.8 kB / 448.6 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.593e-05/0.1239, allocations: 8.375 kB / 448.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.382e-05/0.1239, allocations: 12.12 kB / 448.6 MB, free: 11.47 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000397/0.1244, allocations: 178.6 kB / 448.7 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/0.1244, allocations: 4 kB / 448.8 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.908e-05/0.1244, allocations: 4 kB / 448.8 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.338e-06/0.1244, allocations: 4 kB / 448.8 MB, free: 11.26 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001414/0.1246, allocations: 43.97 kB / 448.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006563/0.1252, allocations: 409.4 kB / 449.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002874/0.1255, allocations: 129.3 kB / 449.3 MB, free: 10.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.617e-05/0.1256, allocations: 45.7 kB / 449.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.112e-05/0.1257, allocations: 4 kB / 449.4 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002057/0.1259, allocations: 99.23 kB / 449.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.553e-06/0.1259, allocations: 0 / 449.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004736/0.1264, allocations: 181.3 kB / 449.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.1265, allocations: 140.4 kB / 449.8 MB, free: 10.1 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003542/0.1269, allocations: 324.9 kB / 450.1 MB, free: 9.773 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.458e-05/0.1269, allocations: 25.7 kB / 450.1 MB, free: 9.742 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.127, allocations: 140 kB / 450.3 MB, free: 9.602 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.135e-05/0.1271, allocations: 27.7 kB / 450.3 MB, free: 9.574 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.758e-05/0.1271, allocations: 41.7 kB / 450.3 MB, free: 9.527 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.1273, allocations: 338.8 kB / 450.7 MB, free: 9.188 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.949e-05/0.1274, allocations: 39.91 kB / 450.7 MB, free: 9.148 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000148/0.1275, allocations: 112.6 kB / 450.8 MB, free: 9.008 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002313/0.1278, allocations: 113.9 kB / 450.9 MB, free: 8.875 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.1278, allocations: 3.938 kB / 450.9 MB, free: 8.871 MB / 334.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002861/0.1281, allocations: 173.2 kB / 451.1 MB, free: 8.695 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.1281, allocations: 8 kB / 451.1 MB, free: 8.688 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.1281, allocations: 0 / 451.1 MB, free: 8.688 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.693e-05/0.1282, allocations: 7.984 kB / 451.1 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001307/0.1283, allocations: 19.94 kB / 451.1 MB, free: 8.66 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.1283, allocations: 11.92 kB / 451.1 MB, free: 8.648 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.024e-05/0.1284, allocations: 11.94 kB / 451.2 MB, free: 8.637 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.1284, allocations: 4.156 kB / 451.2 MB, free: 8.633 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.000164/0.1286, allocations: 160.1 kB / 451.3 MB, free: 8.469 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.552e-05/0.1287, allocations: 69.34 kB / 451.4 MB, free: 8.395 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.06e-05/0.1288, allocations: 25.7 kB / 451.4 MB, free: 8.367 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.007e-06/0.1288, allocations: 4 kB / 451.4 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.1288, allocations: 3.938 kB / 451.4 MB, free: 8.359 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.272e-06/0.1288, allocations: 0 / 451.4 MB, free: 8.359 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006304/0.1294, allocations: 458.4 kB / 451.9 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.711e-06/0.1295, allocations: 7.984 kB / 451.9 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.78e-05/0.1295, allocations: 19.94 kB / 451.9 MB, free: 7.828 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.037e-06/0.1295, allocations: 4.688 kB / 451.9 MB, free: 7.824 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.384e-05/0.1296, allocations: 0 / 451.9 MB, free: 7.824 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.1296, allocations: 11.92 kB / 451.9 MB, free: 7.812 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.1296, allocations: 0 / 451.9 MB, free: 7.812 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000307/0.1299, allocations: 256.1 kB / 452.2 MB, free: 7.543 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.266e-05/0.13, allocations: 108.8 kB / 452.3 MB, free: 7.418 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.369e-05/0.13, allocations: 11.94 kB / 452.3 MB, free: 7.406 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.131e-05/0.1301, allocations: 4 kB / 452.3 MB, free: 7.402 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.975e-05/0.1302, allocations: 11.98 kB / 452.3 MB, free: 7.391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.988e-05/0.1302, allocations: 4.125 kB / 452.3 MB, free: 7.387 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002795/0.1305, allocations: 240.4 kB / 452.5 MB, free: 7.156 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1305, allocations: 0 / 452.5 MB, free: 7.156 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003095/0.1308, allocations: 43.98 kB / 452.6 MB, free: 7.113 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.001064/0.1319, allocations: 412.6 kB / 453 MB, free: 6.699 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002844/0.1322, allocations: 115.8 kB / 453.1 MB, free: 6.586 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.499e-06/0.1322, allocations: 0 / 453.1 MB, free: 6.586 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001083/0.1323, allocations: 43.91 kB / 453.1 MB, free: 6.543 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004568/0.1328, allocations: 62.56 kB / 453.2 MB, free: 6.484 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007068/0.1335, allocations: 380.6 kB / 453.6 MB, free: 6.082 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004578/0.134, allocations: 0.7398 MB / 454.3 MB, free: 5.312 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001024/0.1341, allocations: 33.52 kB / 454.3 MB, free: 5.281 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.501e-05/0.1342, allocations: 27.44 kB / 454.4 MB, free: 5.254 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1342, allocations: 0 / 454.4 MB, free: 5.254 MB / 334.1 MB Notification: Performance of Templates: time 0.007395/0.1416, allocations: 3.001 MB / 457.4 MB, free: 2.25 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)