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.002578/0.002583, allocations: 186.7 kB / 15.81 MB, free: 6.027 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.22/2.22, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.001672/0.001672, allocations: 90.86 kB / 270.3 MB, free: 13.34 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.09849/0.09849, allocations: 12.61 MB / 331.1 MB, free: 10.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006358/0.0006358, allocations: 13.59 kB / 392.1 MB, free: 54.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0958/0.09648, allocations: 50.37 MB / 442.5 MB, free: 10.81 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds): time 0.002973/0.09951, allocations: 1.823 MB / 444.3 MB, free: 8.973 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002407/0.102, allocations: 1.112 MB / 445.4 MB, free: 7.852 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002138/0.1022, allocations: 7.938 kB / 445.4 MB, free: 7.844 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004312/0.1027, allocations: 91.56 kB / 445.5 MB, free: 7.754 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002791/0.103, allocations: 91.69 kB / 445.6 MB, free: 7.664 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00117/0.1042, allocations: 267 kB / 445.9 MB, free: 7.406 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003445/0.1045, allocations: 196 kB / 446.1 MB, free: 7.211 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002509/0.1048, allocations: 109.8 kB / 446.2 MB, free: 7.102 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001721/0.105, allocations: 107.5 kB / 446.3 MB, free: 6.996 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001894/0.1052, allocations: 119.4 kB / 446.4 MB, free: 6.879 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.276e-05/0.1052, allocations: 4 kB / 446.4 MB, free: 6.875 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00018/0.1054, allocations: 47.91 kB / 446.4 MB, free: 6.828 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.57e-05/0.1055, allocations: 71.75 kB / 446.5 MB, free: 6.758 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.176e-05/0.1056, allocations: 81.45 kB / 446.6 MB, free: 6.672 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003793/0.106, allocations: 284.2 kB / 446.9 MB, free: 6.395 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.165e-06/0.106, allocations: 3.938 kB / 446.9 MB, free: 6.391 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.953e-06/0.106, allocations: 0 / 446.9 MB, free: 6.391 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.106, allocations: 0 / 446.9 MB, free: 6.391 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.001008/0.1071, allocations: 0.6214 MB / 447.5 MB, free: 5.715 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.1071, allocations: 8.031 kB / 447.5 MB, free: 5.707 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.321e-05/0.1072, allocations: 62.53 kB / 447.6 MB, free: 5.637 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.039e-05/0.1073, allocations: 51.39 kB / 447.6 MB, free: 5.586 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005981/0.1079, allocations: 343.3 kB / 447.9 MB, free: 5.215 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.273e-05/0.108, allocations: 20.56 kB / 448 MB, free: 5.195 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.695e-05/0.108, allocations: 24 kB / 448 MB, free: 5.172 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001265/0.1093, allocations: 0.6705 MB / 448.7 MB, free: 4.43 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.058e-05/0.1093, allocations: 7.938 kB / 448.7 MB, free: 4.422 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.672e-05/0.1094, allocations: 12 kB / 448.7 MB, free: 4.41 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.737e-05/0.1094, allocations: 11.98 kB / 448.7 MB, free: 4.398 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004139/0.1099, allocations: 155.7 kB / 448.8 MB, free: 4.246 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001148/0.111, allocations: 1.144 MB / 450 MB, free: 3 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/0.1121, allocations: 0.6879 MB / 450.7 MB, free: 2.16 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.644e-05/0.1122, allocations: 16.06 kB / 450.7 MB, free: 2.145 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002336/0.1124, allocations: 117.9 kB / 450.8 MB, free: 2.008 MB / 282.7 MB Notification: Performance of pre-optimization done (n=46): time 3.567e-06/0.1124, allocations: 0 / 450.8 MB, free: 2.008 MB / 282.7 MB Notification: Performance of matching and sorting (n=46): time 0.001248/0.1137, allocations: 0.534 MB / 451.3 MB, free: 1.449 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001473/0.1139, allocations: 399.9 kB / 451.7 MB, free: 0.9727 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005891/0.1145, allocations: 441.5 kB / 452.2 MB, free: 0.5352 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.75e-05/0.1145, allocations: 37.64 kB / 452.2 MB, free: 0.4922 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/0.1147, allocations: 172.9 kB / 452.4 MB, free: 324 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.481e-05/0.1147, allocations: 43.69 kB / 452.4 MB, free: 280 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.757e-05/0.1147, allocations: 8 kB / 452.4 MB, free: 272 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001528/0.1149, allocations: 354.8 kB / 452.8 MB, free: 15.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002403/0.1152, allocations: 72.83 kB / 452.8 MB, free: 15.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005123/0.1157, allocations: 354 kB / 453.2 MB, free: 15.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003585/0.1161, allocations: 131.7 kB / 453.3 MB, free: 15.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.963e-06/0.1161, allocations: 4 kB / 453.3 MB, free: 15.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0011/0.1172, allocations: 417.1 kB / 453.7 MB, free: 14.81 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.962e-05/0.1172, allocations: 8 kB / 453.7 MB, free: 14.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.702e-05/0.1173, allocations: 8 kB / 453.7 MB, free: 14.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.507e-05/0.1173, allocations: 16 kB / 453.7 MB, free: 14.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004968/0.1178, allocations: 87.78 kB / 453.8 MB, free: 14.69 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.914e-05/0.1179, allocations: 19.92 kB / 453.9 MB, free: 14.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003343/0.1182, allocations: 43.91 kB / 453.9 MB, free: 14.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.411e-05/0.1183, allocations: 24.34 kB / 453.9 MB, free: 14.61 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.0003997/0.1187, allocations: 245.5 kB / 454.2 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007595/0.1195, allocations: 289.1 kB / 454.4 MB, free: 14.07 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00015/0.1196, allocations: 55.27 kB / 454.5 MB, free: 14.01 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-05/0.1197, allocations: 12.19 kB / 454.5 MB, free: 14 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/0.1197, allocations: 4 kB / 454.5 MB, free: 13.99 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.072e-05/0.1197, allocations: 4 kB / 454.5 MB, free: 13.99 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005376/0.1203, allocations: 337.1 kB / 454.8 MB, free: 13.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.236e-05/0.1203, allocations: 7.953 kB / 454.9 MB, free: 13.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000449/0.1208, allocations: 63.91 kB / 454.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.158e-05/0.1208, allocations: 4 kB / 454.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.682e-05/0.1208, allocations: 15.98 kB / 454.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.28e-05/0.1209, allocations: 4 kB / 454.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.791e-05/0.1209, allocations: 7.938 kB / 454.9 MB, free: 13.51 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001855/0.1228, allocations: 0.5575 MB / 455.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002716/0.1231, allocations: 124.6 kB / 455.6 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001468/0.1232, allocations: 16 kB / 455.6 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003578/0.1236, allocations: 15.94 kB / 455.7 MB, free: 12.67 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001033/0.1237, allocations: 8 kB / 455.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.408e-05/0.1238, allocations: 19.98 kB / 455.7 MB, free: 12.64 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0008703/0.1247, allocations: 307.1 kB / 456 MB, free: 12.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.52e-07/0.1248, allocations: 4 kB / 456 MB, free: 12.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001622/0.1264, allocations: 67.98 kB / 456.1 MB, free: 12.27 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.006115/0.1326, allocations: 2.285 MB / 458.3 MB, free: 9.898 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001559/0.1342, allocations: 293.9 kB / 458.6 MB, free: 9.613 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 9.959e-06/0.1343, allocations: 4.125 kB / 458.6 MB, free: 9.609 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002773/0.1346, allocations: 43.92 kB / 458.7 MB, free: 9.566 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001836/0.1364, allocations: 233.8 kB / 458.9 MB, free: 9.34 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01102/0.1475, allocations: 8.301 MB / 467.2 MB, free: 0.7773 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001127/0.1487, allocations: 0.8398 MB / 468 MB, free: 15.91 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005056/0.1493, allocations: 51.19 kB / 468.1 MB, free: 15.86 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004882/0.1498, allocations: 135.3 kB / 468.2 MB, free: 15.73 MB / 314.7 MB Notification: Performance of SimCode: time 1.823e-06/0.1498, allocations: 0 / 468.2 MB, free: 15.73 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05249/0.2024, allocations: 8.12 MB / 476.3 MB, free: 7.598 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004192/0.2028, allocations: 253.2 kB / 476.6 MB, free: 7.258 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.859/3.061, allocations: 0 / 476.6 MB, free: 7.258 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)