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.001355/0.001355, allocations: 173.8 kB / 15.81 MB, free: 6.285 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.592/1.592, allocations: 205.4 MB / 222 MB, free: 13.83 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.000683/0.0006831, allocations: 94.3 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.0715/0.0715, allocations: 12.59 MB / 331.2 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003989/0.0003992, allocations: 20.66 kB / 392.1 MB, free: 54.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07307/0.07349, allocations: 50.38 MB / 442.5 MB, free: 10.83 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds): time 0.002042/0.07557, allocations: 1.818 MB / 444.3 MB, free: 9 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001636/0.07723, allocations: 1.147 MB / 445.5 MB, free: 7.844 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000245/0.0775, allocations: 11.94 kB / 445.5 MB, free: 7.832 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004002/0.07792, allocations: 79.59 kB / 445.6 MB, free: 7.754 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00028/0.07821, allocations: 87.64 kB / 445.6 MB, free: 7.668 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001192/0.07942, allocations: 271.2 kB / 445.9 MB, free: 7.406 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004613/0.0799, allocations: 283.6 kB / 446.2 MB, free: 7.125 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002941/0.08021, allocations: 109.8 kB / 446.3 MB, free: 7.016 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002355/0.08046, allocations: 115.4 kB / 446.4 MB, free: 6.902 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002478/0.08072, allocations: 119.4 kB / 446.5 MB, free: 6.785 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.701e-05/0.08078, allocations: 4 kB / 446.5 MB, free: 6.781 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001948/0.08098, allocations: 59.91 kB / 446.6 MB, free: 6.723 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001028/0.0811, allocations: 75.69 kB / 446.7 MB, free: 6.648 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.908e-05/0.0812, allocations: 73.52 kB / 446.7 MB, free: 6.57 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003768/0.08158, allocations: 280.3 kB / 447 MB, free: 6.297 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.0816, allocations: 3.938 kB / 447 MB, free: 6.293 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.08161, allocations: 4 kB / 447 MB, free: 6.289 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.405e-05/0.08164, allocations: 0 / 447 MB, free: 6.289 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: 66 * Number of variables: 66 Notification: Performance of Generate backend data structure: time 0.001044/0.08269, allocations: 0.6135 MB / 447.6 MB, free: 5.621 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.888e-05/0.08275, allocations: 12.03 kB / 447.6 MB, free: 5.609 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001031/0.08286, allocations: 66.53 kB / 447.7 MB, free: 5.535 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001323/0.08301, allocations: 47.39 kB / 447.7 MB, free: 5.488 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005836/0.0836, allocations: 347.3 kB / 448.1 MB, free: 5.113 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.585e-05/0.08365, allocations: 20.56 kB / 448.1 MB, free: 5.094 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.129e-05/0.08371, allocations: 24 kB / 448.1 MB, free: 5.07 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001297/0.08502, allocations: 0.6861 MB / 448.8 MB, free: 4.312 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.846e-05/0.08506, allocations: 0 / 448.8 MB, free: 4.312 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.565e-05/0.0851, allocations: 12 kB / 448.8 MB, free: 4.301 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.098e-05/0.08514, allocations: 8 kB / 448.8 MB, free: 4.293 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003887/0.08554, allocations: 151.6 kB / 449 MB, free: 4.145 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001177/0.08673, allocations: 1.144 MB / 450.1 MB, free: 2.898 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009481/0.0877, allocations: 0.6918 MB / 450.8 MB, free: 2.055 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004223/0.08814, allocations: 237.8 kB / 451 MB, free: 1.789 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.028e-05/0.08821, allocations: 19.92 kB / 451.1 MB, free: 1.77 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002344/0.08845, allocations: 113.9 kB / 451.2 MB, free: 1.637 MB / 282.7 MB Notification: Performance of pre-optimization done (n=46): time 3.727e-06/0.08847, allocations: 0 / 451.2 MB, free: 1.637 MB / 282.7 MB Notification: Performance of matching and sorting (n=46): time 0.001105/0.08959, allocations: 477.6 kB / 451.6 MB, free: 1.164 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001471/0.08975, allocations: 399.7 kB / 452 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005573/0.09032, allocations: 445.4 kB / 452.5 MB, free: 252 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.49e-05/0.09037, allocations: 33.89 kB / 452.5 MB, free: 212 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.0905, allocations: 169 kB / 452.7 MB, free: 36 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.151e-05/0.0906, allocations: 43.75 kB / 452.7 MB, free: 15.99 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.088e-05/0.09063, allocations: 7.938 kB / 452.7 MB, free: 15.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001718/0.09081, allocations: 354.8 kB / 453.1 MB, free: 15.63 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002213/0.09104, allocations: 72.83 kB / 453.1 MB, free: 15.55 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004497/0.09151, allocations: 362 kB / 453.5 MB, free: 15.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003501/0.09187, allocations: 127.8 kB / 453.6 MB, free: 14.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/0.0919, allocations: 4 kB / 453.6 MB, free: 14.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001001/0.09291, allocations: 420.7 kB / 454 MB, free: 14.52 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.213e-05/0.09295, allocations: 11.94 kB / 454 MB, free: 14.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.535e-05/0.09297, allocations: 8 kB / 454 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.74e-05/0.09301, allocations: 12.75 kB / 454.1 MB, free: 14.49 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004165/0.09344, allocations: 96.08 kB / 454.2 MB, free: 14.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.485e-05/0.09348, allocations: 19.94 kB / 454.2 MB, free: 14.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003543/0.09384, allocations: 43.67 kB / 454.2 MB, free: 14.33 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.281e-05/0.0939, allocations: 24 kB / 454.2 MB, free: 14.31 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.0003268/0.09424, allocations: 225.4 kB / 454.5 MB, free: 14.08 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005938/0.09484, allocations: 300.9 kB / 454.8 MB, free: 13.78 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001238/0.09498, allocations: 51.28 kB / 454.8 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.507e-05/0.09501, allocations: 8 kB / 454.8 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.111e-05/0.09503, allocations: 4 kB / 454.8 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.291e-05/0.09505, allocations: 3.984 kB / 454.8 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004788/0.09554, allocations: 337 kB / 455.1 MB, free: 13.33 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.083e-06/0.09556, allocations: 0 / 455.1 MB, free: 13.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000356/0.09592, allocations: 71.89 kB / 455.2 MB, free: 13.26 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.174e-05/0.09595, allocations: 4 kB / 455.2 MB, free: 13.25 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.627e-05/0.096, allocations: 12.19 kB / 455.2 MB, free: 13.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.899e-06/0.09603, allocations: 8 kB / 455.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.654e-06/0.09605, allocations: 7.938 kB / 455.2 MB, free: 13.23 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009348/0.09699, allocations: 449.8 kB / 455.7 MB, free: 12.74 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001404/0.09715, allocations: 124.7 kB / 455.8 MB, free: 12.6 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.074e-05/0.09724, allocations: 16 kB / 455.8 MB, free: 12.58 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001982/0.09745, allocations: 15.97 kB / 455.8 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.753e-05/0.09754, allocations: 19.98 kB / 455.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.255e-05/0.09759, allocations: 16 kB / 455.9 MB, free: 12.53 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004854/0.09809, allocations: 303.1 kB / 456.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.0981, allocations: 0 / 456.2 MB, free: 12.23 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000736/0.09884, allocations: 75.98 kB / 456.2 MB, free: 12.16 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.002779/0.1016, allocations: 1.476 MB / 457.7 MB, free: 10.64 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0007183/0.1024, allocations: 292.6 kB / 458 MB, free: 10.35 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.1024, allocations: 0 / 458 MB, free: 10.35 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001484/0.1026, allocations: 45.48 kB / 458.1 MB, free: 10.31 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001194/0.1038, allocations: 242.3 kB / 458.3 MB, free: 10.07 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005229/0.109, allocations: 2.376 MB / 460.7 MB, free: 7.492 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005078/0.1095, allocations: 0.832 MB / 461.5 MB, free: 6.637 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002384/0.1098, allocations: 59.47 kB / 461.6 MB, free: 6.578 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000247/0.11, allocations: 123.4 kB / 461.7 MB, free: 6.461 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.1101, allocations: 0 / 461.7 MB, free: 6.461 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02657/0.1366, allocations: 8.111 MB / 469.8 MB, free: 14.33 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003301/0.137, allocations: 255.3 kB / 470 MB, free: 14 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.224/2.361, allocations: 0 / 470 MB, free: 14 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)