Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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/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/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_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestIntegerSamplerAndHolds",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds,fileNamePrefix="Modelica_Synchronous_cpp_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.0008691/0.0008692, allocations: 175 kB / 16.76 MB, free: 4.906 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.142/1.142, allocations: 205.4 MB / 222.9 MB, free: 9.004 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.0006851/0.0006849, allocations: 89.34 kB / 271.3 MB, free: 8.23 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.05901/0.05901, allocations: 12.2 MB / 331.8 MB, free: 11.62 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003827/0.0003827, allocations: 12 kB / 392.2 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07468/0.07508, allocations: 50.29 MB / 442.5 MB, free: 16.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds): time 0.001985/0.07712, allocations: 1.829 MB / 444.3 MB, free: 14.71 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001282/0.07842, allocations: 1.132 MB / 445.5 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001119/0.07854, allocations: 7.938 kB / 445.5 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003161/0.07887, allocations: 87.64 kB / 445.5 MB, free: 13.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001586/0.07904, allocations: 79.66 kB / 445.6 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006217/0.07967, allocations: 263.5 kB / 445.9 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002237/0.0799, allocations: 279.6 kB / 446.2 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001792/0.08009, allocations: 123.3 kB / 446.3 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001096/0.0802, allocations: 115.4 kB / 446.4 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001109/0.08032, allocations: 115.4 kB / 446.5 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.423e-05/0.08035, allocations: 8 kB / 446.5 MB, free: 12.51 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001033/0.08046, allocations: 55.91 kB / 446.6 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.094e-05/0.08054, allocations: 75.73 kB / 446.6 MB, free: 12.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.226e-05/0.08064, allocations: 152.8 kB / 446.8 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002131/0.08086, allocations: 283.6 kB / 447.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.08087, allocations: 0 / 447.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.08088, allocations: 0 / 447.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.229e-06/0.08089, allocations: 0 / 447.1 MB, free: 11.95 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.000615/0.08151, allocations: 0.6176 MB / 447.7 MB, free: 11.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.08155, allocations: 8.031 kB / 447.7 MB, free: 11.26 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.966e-05/0.0816, allocations: 66.72 kB / 447.8 MB, free: 11.19 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.362e-05/0.08166, allocations: 44.38 kB / 447.8 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003079/0.08198, allocations: 364.3 kB / 448.2 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.042e-05/0.08201, allocations: 20.94 kB / 448.2 MB, free: 10.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.714e-05/0.08204, allocations: 27.94 kB / 448.2 MB, free: 10.7 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000769/0.08281, allocations: 0.6862 MB / 448.9 MB, free: 9.941 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.08284, allocations: 4 kB / 448.9 MB, free: 9.938 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.285e-05/0.08287, allocations: 12 kB / 448.9 MB, free: 9.926 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.103e-05/0.08289, allocations: 8 kB / 448.9 MB, free: 9.918 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002201/0.08312, allocations: 147.7 kB / 449.1 MB, free: 9.773 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007004/0.08383, allocations: 1.14 MB / 450.2 MB, free: 8.531 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005893/0.08443, allocations: 0.6958 MB / 450.9 MB, free: 7.68 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002424/0.08468, allocations: 250.1 kB / 451.1 MB, free: 7.402 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.01e-05/0.08472, allocations: 11.98 kB / 451.1 MB, free: 7.391 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001517/0.08488, allocations: 113.8 kB / 451.3 MB, free: 7.258 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 1.984e-06/0.08489, allocations: 0 / 451.3 MB, free: 7.258 MB / 298.7 MB Notification: Performance of matching and sorting (n=46): time 0.0006632/0.08556, allocations: 473.4 kB / 451.7 MB, free: 6.789 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.78e-05/0.08567, allocations: 399.9 kB / 452.1 MB, free: 6.312 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003167/0.08599, allocations: 441.5 kB / 452.5 MB, free: 5.875 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.043e-05/0.08602, allocations: 33.7 kB / 452.6 MB, free: 5.836 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.661e-05/0.0861, allocations: 165 kB / 452.7 MB, free: 5.668 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.242e-05/0.08614, allocations: 47.69 kB / 452.8 MB, free: 5.621 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.137e-05/0.08616, allocations: 4 kB / 452.8 MB, free: 5.617 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.772e-05/0.08622, allocations: 354.8 kB / 453.1 MB, free: 5.262 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001121/0.08634, allocations: 72.83 kB / 453.2 MB, free: 5.191 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001907/0.08653, allocations: 354 kB / 453.5 MB, free: 4.707 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003053/0.08685, allocations: 434.6 kB / 454 MB, free: 4.156 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.787e-06/0.08686, allocations: 0 / 454 MB, free: 4.156 MB / 298.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0004669/0.08733, allocations: 436.6 kB / 454.4 MB, free: 3.723 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.08735, allocations: 8 kB / 454.4 MB, free: 3.715 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.167e-06/0.08737, allocations: 12 kB / 454.4 MB, free: 3.703 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.08739, allocations: 12 kB / 454.4 MB, free: 3.691 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002157/0.08761, allocations: 84.47 kB / 454.5 MB, free: 3.609 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/0.08763, allocations: 23.91 kB / 454.5 MB, free: 3.586 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001671/0.0878, allocations: 39.69 kB / 454.6 MB, free: 3.547 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.033e-05/0.08783, allocations: 24 kB / 454.6 MB, free: 3.523 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 ($whenCondition1,$PRE.integerTable.combiTimeTable.nextTimeEvent,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,$PRE.integerTable.combiTimeTable.nextTimeEventScaled,integerTable.combiTimeTable.nextTimeEventScaled,ClockedSignalToSquare.y2,$CLKPRE.ClockedSignalToSquare.y2,ClockedSignalToSquare.y,ClockedSignalToSquare.u,superSample1.y,superSample1.u,subSample1.y,backSample1.y,backSample1.u,shiftSample1.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,fractionalDelay.y,fractionalDelay.u_buffer[1],fractionalDelay.u,UnitDelay1.y,UnitDelay1.u,$CLKPRE.UnitDelay1.u,upSample1.b,$CLKPRE.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.u,hold1.y,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001567/0.08799, allocations: 241.5 kB / 454.8 MB, free: 3.277 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003004/0.0883, allocations: 289.1 kB / 455.1 MB, free: 2.988 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.142e-05/0.08838, allocations: 51.28 kB / 455.2 MB, free: 2.934 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.531e-05/0.0884, allocations: 11.98 kB / 455.2 MB, free: 2.922 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.08841, allocations: 4 kB / 455.2 MB, free: 2.918 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.08842, allocations: 0 / 455.2 MB, free: 2.918 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002197/0.08865, allocations: 341.1 kB / 455.5 MB, free: 2.535 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.08866, allocations: 4.312 kB / 455.5 MB, free: 2.531 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001861/0.08885, allocations: 59.91 kB / 455.6 MB, free: 2.473 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.219e-06/0.08886, allocations: 8 kB / 455.6 MB, free: 2.465 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.217e-05/0.08889, allocations: 19.98 kB / 455.6 MB, free: 2.445 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.579e-06/0.0889, allocations: 8 kB / 455.6 MB, free: 2.438 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.08891, allocations: 8 kB / 455.6 MB, free: 2.43 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004719/0.08938, allocations: 453.7 kB / 456.1 MB, free: 1.938 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.362e-05/0.08946, allocations: 132.4 kB / 456.2 MB, free: 1.789 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.442e-05/0.08951, allocations: 16 kB / 456.2 MB, free: 1.773 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001042/0.08962, allocations: 8 kB / 456.2 MB, free: 1.766 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.246e-05/0.08968, allocations: 19.98 kB / 456.2 MB, free: 1.746 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.183e-05/0.08971, allocations: 15.98 kB / 456.3 MB, free: 1.73 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002128/0.08992, allocations: 307.1 kB / 456.6 MB, free: 1.43 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08993, allocations: 0 / 456.6 MB, free: 1.43 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003661/0.0903, allocations: 72 kB / 456.6 MB, free: 1.359 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 (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.001551/0.09186, allocations: 1.48 MB / 458.1 MB, free: 15.83 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000468/0.09234, allocations: 292.9 kB / 458.4 MB, free: 15.54 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.09236, allocations: 0 / 458.4 MB, free: 15.54 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 8.31e-05/0.09245, allocations: 39.98 kB / 458.4 MB, free: 15.5 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008223/0.09328, allocations: 235.2 kB / 458.7 MB, free: 15.28 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003128/0.09642, allocations: 2.409 MB / 461.1 MB, free: 12.66 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003829/0.09682, allocations: 0.8242 MB / 461.9 MB, free: 11.81 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001733/0.097, allocations: 127.4 kB / 462 MB, free: 11.68 MB / 314.7 MB Notification: Performance of SimCode: time 2.5e-07/0.09701, allocations: 0 / 462 MB, free: 11.68 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.974/3.071, allocations: 6.139 MB / 468.2 MB, free: 5.531 MB / 314.7 MB (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestIntegerSamplerAndHolds_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_cpp_Modelica_Synchronous_WorkInProgress_Tests_TestIntegerSamplerAndHolds.fmu > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.pipe 2>&1)