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.001199/0.0012, allocations: 170.8 kB / 16.14 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.638/1.638, allocations: 205.4 MB / 222.3 MB, free: 9.023 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.0009376/0.0009375, allocations: 82.38 kB / 270.7 MB, free: 8.254 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.08253/0.08253, allocations: 12.59 MB / 331.5 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003452/0.0003453, allocations: 12.23 kB / 392.8 MB, free: 65.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09809/0.09846, allocations: 50.37 MB / 443.1 MB, free: 15.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestClockedIntegerToTrigger): time 0.00239/0.1009, allocations: 1.595 MB / 444.7 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001593/0.1025, allocations: 0.9988 MB / 445.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000137/0.1027, allocations: 7.938 kB / 445.7 MB, free: 12.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003385/0.1031, allocations: 59.8 kB / 445.8 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002609/0.1033, allocations: 91.7 kB / 445.9 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006723/0.104, allocations: 195.7 kB / 446.1 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002108/0.1042, allocations: 171.6 kB / 446.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.1044, allocations: 33.55 kB / 446.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.075e-05/0.1045, allocations: 79.56 kB / 446.3 MB, free: 12.1 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001054/0.1046, allocations: 75.67 kB / 446.4 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.162e-05/0.1046, allocations: 0 / 446.4 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001349/0.1048, allocations: 55.97 kB / 446.5 MB, free: 11.97 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.491e-05/0.1048, allocations: 51.77 kB / 446.5 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.725e-05/0.1049, allocations: 97.17 kB / 446.6 MB, free: 11.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000234/0.1052, allocations: 223.5 kB / 446.8 MB, free: 11.6 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1052, allocations: 4 kB / 446.8 MB, free: 11.6 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1052, allocations: 0 / 446.8 MB, free: 11.6 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.1052, allocations: 4 kB / 446.8 MB, free: 11.59 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.0005798/0.1058, allocations: 0.4962 MB / 447.3 MB, free: 11.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.1058, allocations: 8.031 kB / 447.4 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.862e-05/0.1059, allocations: 46.73 kB / 447.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.486e-05/0.1059, allocations: 24.66 kB / 447.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002551/0.1062, allocations: 274.7 kB / 447.7 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.538e-05/0.1062, allocations: 8.375 kB / 447.7 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.83e-05/0.1062, allocations: 15.94 kB / 447.7 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003054/0.1066, allocations: 186.6 kB / 447.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.1066, allocations: 3.938 kB / 447.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.424e-05/0.1066, allocations: 4 kB / 447.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.1066, allocations: 0 / 447.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001163/0.1067, allocations: 47.97 kB / 448 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004838/0.1072, allocations: 417.4 kB / 448.4 MB, free: 9.898 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002215/0.1075, allocations: 125.3 kB / 448.5 MB, free: 9.758 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.832e-05/0.1075, allocations: 53.62 kB / 448.5 MB, free: 9.699 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.1076, allocations: 4 kB / 448.5 MB, free: 9.695 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001886/0.1078, allocations: 83.38 kB / 448.6 MB, free: 9.602 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.482e-06/0.1078, allocations: 8 kB / 448.6 MB, free: 9.594 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003554/0.1081, allocations: 185.2 kB / 448.8 MB, free: 9.406 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/0.1082, allocations: 140.5 kB / 448.9 MB, free: 9.238 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000237/0.1084, allocations: 321 kB / 449.3 MB, free: 8.914 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.511e-05/0.1085, allocations: 29.7 kB / 449.3 MB, free: 8.879 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.251e-05/0.1085, allocations: 128 kB / 449.4 MB, free: 8.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.95e-05/0.1086, allocations: 35.62 kB / 449.4 MB, free: 8.715 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.384e-06/0.1086, allocations: 0 / 449.4 MB, free: 8.715 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.014e-05/0.1087, allocations: 346.8 kB / 449.8 MB, free: 8.367 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.628e-05/0.1087, allocations: 35.98 kB / 449.8 MB, free: 8.332 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001003/0.1089, allocations: 112.5 kB / 449.9 MB, free: 8.191 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001576/0.109, allocations: 117.9 kB / 450 MB, free: 8.055 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.109, allocations: 0 / 450 MB, free: 8.055 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002313/0.1093, allocations: 181.2 kB / 450.2 MB, free: 7.871 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.317e-05/0.1093, allocations: 4 kB / 450.2 MB, free: 7.867 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.1093, allocations: 4 kB / 450.2 MB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.1093, allocations: 0 / 450.2 MB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.1094, allocations: 23.98 kB / 450.3 MB, free: 7.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/0.1094, allocations: 7.875 kB / 450.3 MB, free: 7.832 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.003e-05/0.1095, allocations: 12 kB / 450.3 MB, free: 7.82 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.049e-05/0.1095, allocations: 4 kB / 450.3 MB, free: 7.816 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001107/0.1097, allocations: 169.2 kB / 450.4 MB, free: 7.641 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.557e-05/0.1097, allocations: 73.33 kB / 450.5 MB, free: 7.562 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.969e-05/0.1098, allocations: 25.72 kB / 450.5 MB, free: 7.539 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.1098, allocations: 4.375 kB / 450.5 MB, free: 7.535 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1098, allocations: 3.938 kB / 450.5 MB, free: 7.531 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.1098, allocations: 3.984 kB / 450.6 MB, free: 7.527 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004016/0.1102, allocations: 466.2 kB / 451 MB, free: 7.016 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.1102, allocations: 0 / 451 MB, free: 7.016 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.139e-05/0.1103, allocations: 11.98 kB / 451 MB, free: 7.004 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.1103, allocations: 11.94 kB / 451 MB, free: 6.992 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.166e-05/0.1103, allocations: 0 / 451 MB, free: 6.992 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.1103, allocations: 4 kB / 451 MB, free: 6.988 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.1103, allocations: 0 / 451 MB, free: 6.988 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002378/0.1106, allocations: 252.1 kB / 451.3 MB, free: 6.723 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.792e-05/0.1106, allocations: 104.8 kB / 451.4 MB, free: 6.602 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.161e-05/0.1107, allocations: 11.98 kB / 451.4 MB, free: 6.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.428e-05/0.1108, allocations: 8 kB / 451.4 MB, free: 6.582 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.476e-05/0.1108, allocations: 7.984 kB / 451.4 MB, free: 6.574 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.934e-05/0.1109, allocations: 12.12 kB / 451.4 MB, free: 6.562 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001624/0.111, allocations: 236.4 kB / 451.7 MB, free: 6.332 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.111, allocations: 0 / 451.7 MB, free: 6.332 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002883/0.1113, allocations: 48.06 kB / 451.7 MB, free: 6.285 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 (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.001215/0.1126, allocations: 1.155 MB / 452.9 MB, free: 5.102 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002215/0.1128, allocations: 111.8 kB / 453 MB, free: 4.992 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1128, allocations: 0 / 453 MB, free: 4.992 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.205e-05/0.1129, allocations: 40.28 kB / 453 MB, free: 4.953 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004133/0.1133, allocations: 64.62 kB / 453.1 MB, free: 4.891 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001504/0.1148, allocations: 1.309 MB / 454.4 MB, free: 3.504 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001501/0.115, allocations: 0.744 MB / 455.1 MB, free: 2.734 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.973e-05/0.1151, allocations: 37.66 kB / 455.2 MB, free: 2.699 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001154/0.1152, allocations: 67.41 kB / 455.2 MB, free: 2.637 MB / 298.7 MB Notification: Performance of SimCode: time 2.61e-07/0.1152, allocations: 0 / 455.2 MB, free: 2.637 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01568/0.1309, allocations: 4.903 MB / 460.1 MB, free: 13.72 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002474/0.1312, allocations: 271.3 kB / 460.4 MB, free: 13.36 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.901/2.032, allocations: 0 / 460.4 MB, free: 13.36 MB / 314.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)