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.002304/0.002309, allocations: 184 kB / 15.81 MB, free: 6.348 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.182/2.182, 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.00117/0.00117, allocations: 86.88 kB / 270.3 MB, free: 13.36 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.1308/0.1308, allocations: 12.6 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005557/0.0005559, allocations: 11.41 kB / 392.1 MB, free: 54.86 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1046, allocations: 50.37 MB / 442.5 MB, free: 10.86 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger): time 0.002584/0.1072, allocations: 1.555 MB / 444 MB, free: 9.289 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002033/0.1093, allocations: 0.9329 MB / 445 MB, free: 8.348 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001546/0.1095, allocations: 3.938 kB / 445 MB, free: 8.344 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004102/0.1099, allocations: 67.72 kB / 445 MB, free: 8.277 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003092/0.1103, allocations: 83.81 kB / 445.1 MB, free: 8.195 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009618/0.1112, allocations: 179.3 kB / 445.3 MB, free: 8.023 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002632/0.1115, allocations: 115.7 kB / 445.4 MB, free: 7.91 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001415/0.1117, allocations: 29.52 kB / 445.4 MB, free: 7.879 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001259/0.1118, allocations: 75.69 kB / 445.5 MB, free: 7.805 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001377/0.112, allocations: 59.75 kB / 445.6 MB, free: 7.746 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.501e-05/0.112, allocations: 4 kB / 445.6 MB, free: 7.742 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001832/0.1122, allocations: 47.91 kB / 445.6 MB, free: 7.695 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.895e-05/0.1123, allocations: 39.89 kB / 445.7 MB, free: 7.656 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 5.666e-05/0.1124, allocations: 61.56 kB / 445.7 MB, free: 7.59 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002896/0.1127, allocations: 176.5 kB / 445.9 MB, free: 7.418 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1127, allocations: 0 / 445.9 MB, free: 7.418 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1127, allocations: 7.875 kB / 445.9 MB, free: 7.41 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.301e-06/0.1127, allocations: 0 / 445.9 MB, free: 7.41 MB / 282.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.0008088/0.1135, allocations: 0.4923 MB / 446.4 MB, free: 6.863 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.705e-05/0.1136, allocations: 8.031 kB / 446.4 MB, free: 6.855 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.143e-05/0.1137, allocations: 46.55 kB / 446.4 MB, free: 6.801 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.372e-05/0.1138, allocations: 27.66 kB / 446.5 MB, free: 6.773 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004019/0.1142, allocations: 269.6 kB / 446.7 MB, free: 6.473 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.177e-05/0.1142, allocations: 11.98 kB / 446.7 MB, free: 6.461 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.535e-05/0.1143, allocations: 8 kB / 446.7 MB, free: 6.453 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004471/0.1147, allocations: 178.6 kB / 446.9 MB, free: 6.254 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.1147, allocations: 3.953 kB / 446.9 MB, free: 6.25 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.927e-05/0.1148, allocations: 4 kB / 446.9 MB, free: 6.246 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.1148, allocations: 0 / 446.9 MB, free: 6.246 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001932/0.115, allocations: 43.97 kB / 447 MB, free: 6.203 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007093/0.1157, allocations: 417.3 kB / 447.4 MB, free: 5.742 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003708/0.1161, allocations: 129.4 kB / 447.5 MB, free: 5.598 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.311e-05/0.1161, allocations: 3.984 kB / 447.5 MB, free: 5.594 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002685/0.1164, allocations: 91.38 kB / 447.6 MB, free: 5.492 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 3.176e-06/0.1164, allocations: 3.984 kB / 447.6 MB, free: 5.488 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.000604/0.1171, allocations: 185.2 kB / 447.8 MB, free: 5.301 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.276e-05/0.1171, allocations: 140.5 kB / 447.9 MB, free: 5.133 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004451/0.1176, allocations: 320.9 kB / 448.2 MB, free: 4.809 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.043e-05/0.1177, allocations: 33.7 kB / 448.3 MB, free: 4.77 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.003e-05/0.1178, allocations: 128 kB / 448.4 MB, free: 4.641 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.277e-05/0.1178, allocations: 35.78 kB / 448.4 MB, free: 4.605 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.12e-05/0.1178, allocations: 4 kB / 448.4 MB, free: 4.602 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.961e-05/0.1179, allocations: 334.8 kB / 448.8 MB, free: 4.266 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001333/0.1181, allocations: 35.94 kB / 448.8 MB, free: 4.23 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000182/0.1183, allocations: 116.9 kB / 448.9 MB, free: 4.086 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001566/0.1184, allocations: 43.98 kB / 448.9 MB, free: 4.043 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.1184, allocations: 0 / 448.9 MB, free: 4.043 MB / 282.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004201/0.1189, allocations: 177.1 kB / 449.1 MB, free: 3.863 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.1189, allocations: 4 kB / 449.1 MB, free: 3.859 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.226e-06/0.1189, allocations: 4 kB / 449.1 MB, free: 3.855 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.951e-05/0.119, allocations: 0 / 449.1 MB, free: 3.855 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001883/0.1191, allocations: 23.98 kB / 449.2 MB, free: 3.832 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.799e-06/0.1192, allocations: 3.938 kB / 449.2 MB, free: 3.828 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001448/0.1193, allocations: 20.14 kB / 449.2 MB, free: 3.809 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.688e-05/0.1194, allocations: 4 kB / 449.2 MB, free: 3.805 MB / 282.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.0001824/0.1195, allocations: 159.9 kB / 449.3 MB, free: 3.637 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000115/0.1197, allocations: 73.34 kB / 449.4 MB, free: 3.559 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.111e-05/0.1198, allocations: 29.7 kB / 449.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.1198, allocations: 0 / 449.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.184e-06/0.1198, allocations: 4 kB / 449.4 MB, free: 3.527 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/0.1198, allocations: 0 / 449.4 MB, free: 3.527 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007119/0.1205, allocations: 470.3 kB / 449.9 MB, free: 3.012 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.848e-06/0.1205, allocations: 0 / 449.9 MB, free: 3.012 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001132/0.1207, allocations: 15.98 kB / 449.9 MB, free: 2.996 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.93e-06/0.1207, allocations: 0 / 449.9 MB, free: 2.996 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.1207, allocations: 4 kB / 449.9 MB, free: 2.992 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.749e-06/0.1207, allocations: 0 / 449.9 MB, free: 2.992 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.1207, allocations: 3.938 kB / 449.9 MB, free: 2.988 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004125/0.1212, allocations: 273.7 kB / 450.2 MB, free: 2.695 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.485e-05/0.1212, allocations: 104.8 kB / 450.3 MB, free: 2.574 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.047e-05/0.1213, allocations: 4 kB / 450.3 MB, free: 2.57 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001579/0.1215, allocations: 4 kB / 450.3 MB, free: 2.566 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.689e-05/0.1216, allocations: 15.94 kB / 450.3 MB, free: 2.551 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.873e-05/0.1216, allocations: 8 kB / 450.3 MB, free: 2.543 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002969/0.1219, allocations: 236.4 kB / 450.6 MB, free: 2.309 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.1219, allocations: 4 kB / 450.6 MB, free: 2.305 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004599/0.1224, allocations: 44.12 kB / 450.6 MB, free: 2.262 MB / 282.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.001882/0.1243, allocations: 1.244 MB / 451.8 MB, free: 0.9922 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004069/0.1248, allocations: 103.8 kB / 451.9 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.1248, allocations: 0 / 451.9 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001426/0.1249, allocations: 35.98 kB / 452 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005248/0.1255, allocations: 64.08 kB / 452 MB, free: 0.7969 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00329/0.1288, allocations: 2.15 MB / 454.2 MB, free: 14.57 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004363/0.1293, allocations: 0.7517 MB / 454.9 MB, free: 13.8 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001835/0.1295, allocations: 29.53 kB / 455 MB, free: 13.77 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002114/0.1297, allocations: 67.41 kB / 455 MB, free: 13.7 MB / 298.7 MB Notification: Performance of SimCode: time 1.373e-06/0.1297, allocations: 0 / 455 MB, free: 13.7 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03497/0.1647, allocations: 4.928 MB / 460 MB, free: 8.766 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004104/0.1652, allocations: 246 kB / 460.2 MB, free: 8.434 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.661/2.826, allocations: 0 / 460.2 MB, free: 8.434 MB / 298.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)