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.001213/0.001213, allocations: 169.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.573/1.573, allocations: 205.4 MB / 222.3 MB, free: 9.012 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.0009834/0.0009833, allocations: 90.34 kB / 270.7 MB, free: 8.242 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.07307/0.07307, allocations: 12.59 MB / 331.5 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003774/0.0003775, allocations: 12 kB / 392.8 MB, free: 65.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07858/0.07898, allocations: 50.37 MB / 443.1 MB, free: 15.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds): time 0.002254/0.08127, allocations: 1.879 MB / 445 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00179/0.08309, allocations: 1.178 MB / 446.2 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002668/0.08338, allocations: 7.938 kB / 446.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005196/0.08392, allocations: 83.64 kB / 446.3 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003283/0.08427, allocations: 91.66 kB / 446.4 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009892/0.08528, allocations: 291.4 kB / 446.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004483/0.08574, allocations: 299.6 kB / 446.9 MB, free: 11.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002909/0.08604, allocations: 115.4 kB / 447.1 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002311/0.08628, allocations: 115.4 kB / 447.2 MB, free: 11.27 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002083/0.08649, allocations: 135.2 kB / 447.3 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.038e-05/0.08655, allocations: 4 kB / 447.3 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001702/0.08672, allocations: 51.97 kB / 447.4 MB, free: 11.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001177/0.08685, allocations: 83.67 kB / 447.4 MB, free: 11 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001453/0.08701, allocations: 164.7 kB / 447.6 MB, free: 10.84 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004023/0.08742, allocations: 370.9 kB / 448 MB, free: 10.47 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.718e-06/0.08743, allocations: 0 / 448 MB, free: 10.47 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.684e-06/0.08744, allocations: 0 / 448 MB, free: 10.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.394e-05/0.08746, allocations: 0 / 448 MB, free: 10.47 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.001088/0.08856, allocations: 0.6098 MB / 448.6 MB, free: 9.805 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.325e-05/0.08863, allocations: 8.031 kB / 448.6 MB, free: 9.797 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001171/0.08875, allocations: 62.72 kB / 448.6 MB, free: 9.727 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001263/0.08889, allocations: 48.38 kB / 448.7 MB, free: 9.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005562/0.08945, allocations: 360.3 kB / 449 MB, free: 9.289 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.663e-05/0.0895, allocations: 28.92 kB / 449.1 MB, free: 9.262 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.103e-05/0.08955, allocations: 27.92 kB / 449.1 MB, free: 9.234 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009781/0.09054, allocations: 0.6902 MB / 449.8 MB, free: 8.469 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.09057, allocations: 4 kB / 449.8 MB, free: 8.465 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.523e-05/0.0906, allocations: 12 kB / 449.8 MB, free: 8.453 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.004e-05/0.09064, allocations: 12 kB / 449.8 MB, free: 8.441 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002565/0.0909, allocations: 147.7 kB / 450 MB, free: 8.297 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009092/0.09182, allocations: 1.144 MB / 451.1 MB, free: 7.051 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006476/0.09248, allocations: 0.6918 MB / 451.8 MB, free: 6.203 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002493/0.09274, allocations: 250 kB / 452 MB, free: 5.926 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.566e-05/0.09279, allocations: 11.98 kB / 452 MB, free: 5.914 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001936/0.09299, allocations: 125.8 kB / 452.2 MB, free: 5.77 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 3.085e-06/0.09301, allocations: 0 / 452.2 MB, free: 5.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=46): time 0.0007551/0.09377, allocations: 473.4 kB / 452.6 MB, free: 5.301 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001627/0.09394, allocations: 403.8 kB / 453 MB, free: 4.82 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003623/0.09431, allocations: 441.5 kB / 453.5 MB, free: 4.383 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.36e-05/0.09435, allocations: 33.7 kB / 453.5 MB, free: 4.344 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.605e-05/0.09445, allocations: 165 kB / 453.7 MB, free: 4.176 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.851e-05/0.09449, allocations: 47.69 kB / 453.7 MB, free: 4.129 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.174e-05/0.09451, allocations: 4 kB / 453.7 MB, free: 4.125 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.819e-05/0.0946, allocations: 354.8 kB / 454.1 MB, free: 3.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001213/0.09472, allocations: 68.83 kB / 454.1 MB, free: 3.703 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002046/0.09494, allocations: 358 kB / 454.5 MB, free: 3.215 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003265/0.09527, allocations: 438.6 kB / 454.9 MB, free: 2.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.09528, allocations: 4 kB / 454.9 MB, free: 2.656 MB / 298.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0005076/0.0958, allocations: 432.9 kB / 455.3 MB, free: 2.227 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.09583, allocations: 8.938 kB / 455.3 MB, free: 2.219 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.18e-05/0.09584, allocations: 15.98 kB / 455.3 MB, free: 2.203 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.38e-05/0.09587, allocations: 12 kB / 455.4 MB, free: 2.191 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002377/0.09612, allocations: 79.84 kB / 455.4 MB, free: 2.113 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.538e-05/0.09614, allocations: 20.55 kB / 455.5 MB, free: 2.094 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001765/0.09632, allocations: 43.69 kB / 455.5 MB, free: 2.051 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.473e-05/0.09636, allocations: 24 kB / 455.5 MB, free: 2.027 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001792/0.09654, allocations: 233.5 kB / 455.8 MB, free: 1.793 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003239/0.09687, allocations: 293.1 kB / 456 MB, free: 1.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.769e-05/0.09696, allocations: 51.28 kB / 456.1 MB, free: 1.445 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.71e-05/0.09698, allocations: 8 kB / 456.1 MB, free: 1.438 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.672e-06/0.09699, allocations: 3.984 kB / 456.1 MB, free: 1.434 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.09701, allocations: 7.938 kB / 456.1 MB, free: 1.426 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000241/0.09725, allocations: 337.4 kB / 456.4 MB, free: 1.047 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/0.09726, allocations: 0 / 456.4 MB, free: 1.047 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001955/0.09746, allocations: 67.91 kB / 456.5 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.518e-06/0.09748, allocations: 4 kB / 456.5 MB, free: 0.9766 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.242e-05/0.0975, allocations: 19.98 kB / 456.5 MB, free: 0.957 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.09752, allocations: 8 kB / 456.5 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.09752, allocations: 4 kB / 456.5 MB, free: 0.9453 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004892/0.09802, allocations: 461.7 kB / 457 MB, free: 456 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.568e-05/0.09809, allocations: 128.5 kB / 457.1 MB, free: 308 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.545e-05/0.09815, allocations: 11.98 kB / 457.1 MB, free: 296 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001112/0.09826, allocations: 16 kB / 457.1 MB, free: 280 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.614e-05/0.09833, allocations: 15.98 kB / 457.2 MB, free: 264 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.303e-05/0.09836, allocations: 16 kB / 457.2 MB, free: 248 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002514/0.09861, allocations: 311.1 kB / 457.5 MB, free: 15.94 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09862, allocations: 0 / 457.5 MB, free: 15.94 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.000404/0.09903, allocations: 68 kB / 457.5 MB, free: 15.87 MB / 314.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.00192/0.101, allocations: 1.483 MB / 459 MB, free: 14.33 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0004811/0.1015, allocations: 297 kB / 459.3 MB, free: 14.04 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.1015, allocations: 4 kB / 459.3 MB, free: 14.04 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 9.695e-05/0.1016, allocations: 39.98 kB / 459.4 MB, free: 14 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008476/0.1024, allocations: 239.1 kB / 459.6 MB, free: 13.77 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00327/0.1057, allocations: 2.417 MB / 462 MB, free: 11.14 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004343/0.1062, allocations: 0.832 MB / 462.8 MB, free: 10.29 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000159/0.1063, allocations: 59.47 kB / 462.9 MB, free: 10.23 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001857/0.1065, allocations: 123.4 kB / 463 MB, free: 10.11 MB / 314.7 MB Notification: Performance of SimCode: time 4.6e-07/0.1065, allocations: 4 kB / 463 MB, free: 10.11 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01963/0.1262, allocations: 8.088 MB / 471.1 MB, free: 1.992 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002111/0.1264, allocations: 281.9 kB / 471.4 MB, free: 1.625 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.22/2.347, allocations: 0 / 471.4 MB, free: 1.625 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)