Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.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.TestIntegerSamplerAndHolds,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestIntegerSamplerAndHolds",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestIntegerSamplerAndHolds",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.001145/0.001145, allocations: 170.7 kB / 16.11 MB, free: 5.547 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.685/1.685, allocations: 205 MB / 221.9 MB, free: 9.137 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.0007815/0.0007815, allocations: 92.19 kB / 269.9 MB, free: 8.68 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.07432/0.07432, allocations: 12.57 MB / 330.3 MB, free: 12.08 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004437/0.0004435, allocations: 12 kB / 391.2 MB, free: 66.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09077/0.09124, allocations: 49.98 MB / 441.1 MB, free: 16.3 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds): time 0.002757/0.09405, allocations: 1.906 MB / 443 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001841/0.09592, allocations: 1.205 MB / 444.2 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001652/0.09611, allocations: 7.938 kB / 444.3 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004409/0.09656, allocations: 91.62 kB / 444.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001988/0.09677, allocations: 87.66 kB / 444.4 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007705/0.09755, allocations: 283.4 kB / 444.7 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00033/0.09789, allocations: 303.6 kB / 445 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002225/0.09812, allocations: 119.4 kB / 445.1 MB, free: 12.29 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.09827, allocations: 111.4 kB / 445.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001543/0.09843, allocations: 135.2 kB / 445.4 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.367e-05/0.09847, allocations: 8 kB / 445.4 MB, free: 12.04 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001362/0.09862, allocations: 47.97 kB / 445.4 MB, free: 11.99 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.405e-05/0.09872, allocations: 83.67 kB / 445.5 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001038/0.09883, allocations: 135 kB / 445.6 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003421/0.09918, allocations: 374.9 kB / 446 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.216e-06/0.0992, allocations: 3.984 kB / 446 MB, free: 11.41 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.296e-06/0.09921, allocations: 0 / 446 MB, free: 11.41 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.34e-05/0.09923, allocations: 0 / 446 MB, free: 11.41 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.0009128/0.1001, allocations: 0.606 MB / 446.6 MB, free: 10.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.918e-05/0.1002, allocations: 8.031 kB / 446.6 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.527e-05/0.1003, allocations: 66.72 kB / 446.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.446e-05/0.1004, allocations: 52.38 kB / 446.7 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004475/0.1008, allocations: 360.3 kB / 447.1 MB, free: 10.22 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.237e-05/0.1009, allocations: 20.94 kB / 447.1 MB, free: 10.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.229e-05/0.1009, allocations: 39.84 kB / 447.1 MB, free: 10.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008575/0.1018, allocations: 0.6862 MB / 447.8 MB, free: 9.398 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.414e-05/0.1018, allocations: 4 kB / 447.8 MB, free: 9.395 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.389e-05/0.1019, allocations: 12 kB / 447.8 MB, free: 9.383 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.241e-05/0.1019, allocations: 8 kB / 447.9 MB, free: 9.375 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002277/0.1021, allocations: 147.7 kB / 448 MB, free: 9.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007406/0.1029, allocations: 1.137 MB / 449.1 MB, free: 7.992 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007084/0.1036, allocations: 0.6918 MB / 449.8 MB, free: 7.145 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000256/0.1039, allocations: 253.3 kB / 450.1 MB, free: 6.863 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.037e-05/0.1039, allocations: 8 kB / 450.1 MB, free: 6.855 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001643/0.1041, allocations: 121.8 kB / 450.2 MB, free: 6.715 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 2.625e-06/0.1041, allocations: 0 / 450.2 MB, free: 6.715 MB / 298.7 MB Notification: Performance of matching and sorting (n=46): time 0.0006802/0.1048, allocations: 473.7 kB / 450.7 MB, free: 6.246 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000109/0.1049, allocations: 403.6 kB / 451.1 MB, free: 5.766 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003292/0.1052, allocations: 441.5 kB / 451.5 MB, free: 5.328 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.18e-05/0.1053, allocations: 37.7 kB / 451.5 MB, free: 5.285 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.941e-05/0.1054, allocations: 165.1 kB / 451.7 MB, free: 5.117 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.519e-05/0.1054, allocations: 39.69 kB / 451.7 MB, free: 5.078 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.568e-05/0.1055, allocations: 57.69 kB / 451.8 MB, free: 5.016 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.895e-05/0.1055, allocations: 350.8 kB / 452.1 MB, free: 4.664 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000116/0.1056, allocations: 72.83 kB / 452.2 MB, free: 4.594 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000214/0.1059, allocations: 362 kB / 452.5 MB, free: 4.102 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003305/0.1062, allocations: 438.7 kB / 453 MB, free: 3.547 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.1062, allocations: 0 / 453 MB, free: 3.547 MB / 298.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0004823/0.1067, allocations: 432.7 kB / 453.4 MB, free: 3.117 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.748e-05/0.1067, allocations: 8 kB / 453.4 MB, free: 3.109 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.1068, allocations: 12.05 kB / 453.4 MB, free: 3.098 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.95e-05/0.1068, allocations: 16.77 kB / 453.4 MB, free: 3.082 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002199/0.107, allocations: 83.84 kB / 453.5 MB, free: 3 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.314e-05/0.107, allocations: 23.92 kB / 453.5 MB, free: 2.977 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001719/0.1072, allocations: 39.69 kB / 453.6 MB, free: 2.938 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.113e-05/0.1072, allocations: 24 kB / 453.6 MB, free: 2.914 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 51 ($PRE.integerTable.combiTimeTable.nextTimeEvent,$whenCondition1,integerTable.combiTimeTable.nextTimeEventScaled,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent,integerTable.y,ClockedSignalToSquare.y,$CLKPRE.ClockedSignalToSquare.y2,ClockedSignalToSquare.y2,ClockedSignalToSquare.u,superSample1.y,superSample1.u,subSample1.y,backSample1.y,backSample1.u,shiftSample1.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,fractionalDelay.y,fractionalDelay.u_buffer[1],fractionalDelay.u,UnitDelay1.y,$CLKPRE.UnitDelay1.u,UnitDelay1.u,$CLKPRE.upSample1.b,upSample1.b,upSample1.dummy,upSample1.u,sample3.y,shiftSample1.u,subSample1.u,assignClock2.y[3],assignClock2.y[2],assignClock2.y[1],assignClock2.u[3],assignClock2.u[2],assignClock2.u[1],integerConstant3[3].y,integerConstant3[2].y,integerConstant3[1].y,sample1.y[3],sample1.y[2],sample1.y[1],sample2.y,hold1.y,hold1.u,assignClock1.y,assignClock1.u,fractionalDelay.first) * Number of discrete states: 0 () * Number of clocked states: 4 (ClockedSignalToSquare.y2,upSample1.b_super,UnitDelay1.u,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 53 * 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.0001676/0.1074, allocations: 229.5 kB / 453.8 MB, free: 2.684 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003278/0.1077, allocations: 296.7 kB / 454.1 MB, free: 2.387 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.661e-05/0.1078, allocations: 51.27 kB / 454.2 MB, free: 2.332 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.537e-05/0.1078, allocations: 8 kB / 454.2 MB, free: 2.324 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.1079, allocations: 4 kB / 454.2 MB, free: 2.32 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.1079, allocations: 11.88 kB / 454.2 MB, free: 2.309 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002338/0.1081, allocations: 337.1 kB / 454.5 MB, free: 1.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.1081, allocations: 0 / 454.5 MB, free: 1.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001823/0.1083, allocations: 63.91 kB / 454.6 MB, free: 1.867 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.157e-06/0.1083, allocations: 4 kB / 454.6 MB, free: 1.863 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.954e-05/0.1083, allocations: 16.17 kB / 454.6 MB, free: 1.848 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.398e-06/0.1084, allocations: 11.94 kB / 454.6 MB, free: 1.836 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.1084, allocations: 0 / 454.6 MB, free: 1.836 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004716/0.1088, allocations: 461.7 kB / 455.1 MB, free: 1.336 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.1e-05/0.1089, allocations: 120.6 kB / 455.2 MB, free: 1.199 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.931e-05/0.109, allocations: 20.05 kB / 455.2 MB, free: 1.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001024/0.1091, allocations: 12 kB / 455.2 MB, free: 1.168 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.791e-05/0.1091, allocations: 15.98 kB / 455.2 MB, free: 1.152 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.272e-05/0.1092, allocations: 16 kB / 455.2 MB, free: 1.137 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002218/0.1094, allocations: 311.1 kB / 455.5 MB, free: 0.832 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1094, allocations: 0 / 455.5 MB, free: 0.832 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000376/0.1098, allocations: 71.91 kB / 455.6 MB, free: 0.7617 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 44 ($whenCondition1,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,ClockedSignalToSquare.y,hold1.y,ClockedSignalToSquare.y2,superSample1.y,ClockedSignalToSquare.u,subSample1.y,superSample1.u,backSample1.y,shiftSample1.y,backSample1.u,upSample1.y,upSample1.b_super,upSample1.u_super,fractionalDelay.y,assignClock1.u,assignClock1.y,hold1.u,sample2.y,sample1.y[1],sample1.y[2],sample1.y[3],integerConstant3[1].y,integerConstant3[2].y,integerConstant3[3].y,assignClock2.u[1],assignClock2.u[2],assignClock2.u[3],assignClock2.y[1],assignClock2.y[2],assignClock2.y[3],subSample1.u,shiftSample1.u,sample3.y,upSample1.u,upSample1.dummy,upSample1.b,UnitDelay1.u,UnitDelay1.y,fractionalDelay.u,fractionalDelay.u_buffer[1]) * Number of discrete states: 2 (integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (ClockedSignalToSquare.y2,upSample1.b_super,upSample1.b,UnitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 41 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001745/0.1115, allocations: 1.483 MB / 457.1 MB, free: 15.22 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005197/0.1121, allocations: 300.2 kB / 457.4 MB, free: 14.93 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.1121, allocations: 0 / 457.4 MB, free: 14.93 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.8e-05/0.1122, allocations: 37.55 kB / 457.4 MB, free: 14.89 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008304/0.113, allocations: 247.3 kB / 457.7 MB, free: 14.66 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003149/0.1162, allocations: 2.419 MB / 460.1 MB, free: 12.03 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003742/0.1166, allocations: 0.8281 MB / 460.9 MB, free: 11.18 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001492/0.1168, allocations: 55.48 kB / 461 MB, free: 11.12 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001726/0.1169, allocations: 123.4 kB / 461.1 MB, free: 11 MB / 314.7 MB Notification: Performance of SimCode: time 4.31e-07/0.1169, allocations: 0 / 461.1 MB, free: 11 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01871/0.1357, allocations: 8.103 MB / 469.2 MB, free: 2.875 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001963/0.1359, allocations: 274.1 kB / 469.5 MB, free: 2.512 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.15/2.286, allocations: 64 / 469.5 MB, free: 2.512 MB / 314.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestIntegerSamplerAndHolds_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestIntegerSamplerAndHolds.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.pipe 2>&1)