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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007099/0.0007099, allocations: 101.9 kB / 16.07 MB, free: 32 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007657/0.0007658, allocations: 178.9 kB / 16.96 MB, free: 6.875 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.214/1.214, allocations: 205.4 MB / 223.1 MB, free: 5.496 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06065/0.06065, allocations: 12.59 MB / 284 MB, free: 8.574 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006525/0.0006525, allocations: 16 kB / 345.1 MB, free: 20.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08244/0.0831, allocations: 50.4 MB / 395.5 MB, free: 2.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds): time 0.002356/0.0855, allocations: 1.88 MB / 397.4 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001619/0.08713, allocations: 1.17 MB / 398.6 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.08726, allocations: 15.94 kB / 398.6 MB, free: 15.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003167/0.08759, allocations: 83.58 kB / 398.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001722/0.08777, allocations: 87.64 kB / 398.8 MB, free: 15.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006973/0.08848, allocations: 279.5 kB / 399.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002872/0.08878, allocations: 311.5 kB / 399.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001842/0.08897, allocations: 115.4 kB / 399.5 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001263/0.0891, allocations: 111.4 kB / 399.6 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001388/0.08925, allocations: 131.2 kB / 399.7 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.521e-05/0.08928, allocations: 8 kB / 399.7 MB, free: 14.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001113/0.0894, allocations: 59.91 kB / 399.8 MB, free: 14.17 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.023e-05/0.0895, allocations: 79.73 kB / 399.8 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001207/0.08963, allocations: 160.7 kB / 400 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003167/0.08995, allocations: 362.9 kB / 400.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.08996, allocations: 0 / 400.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.08997, allocations: 3.938 kB / 400.4 MB, free: 13.57 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.638e-06/0.08998, allocations: 0 / 400.4 MB, free: 13.57 MB / 302.1 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.0007249/0.09071, allocations: 0.6176 MB / 401 MB, free: 12.89 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.874e-05/0.09074, allocations: 8.031 kB / 401 MB, free: 12.89 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.648e-05/0.09082, allocations: 52.38 kB / 401 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000367/0.09119, allocations: 352.4 kB / 401.4 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.801e-05/0.09123, allocations: 24.92 kB / 401.4 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.597e-05/0.09127, allocations: 28.12 kB / 401.4 MB, free: 12.4 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008996/0.09217, allocations: 0.6902 MB / 402.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.143e-05/0.0922, allocations: 0 / 402.1 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.031e-05/0.09223, allocations: 12 kB / 402.1 MB, free: 11.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.441e-05/0.09226, allocations: 12 kB / 402.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002504/0.09252, allocations: 151.7 kB / 402.3 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000877/0.09341, allocations: 1.141 MB / 403.4 MB, free: 10.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007234/0.09414, allocations: 0.6879 MB / 404.1 MB, free: 9.379 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003126/0.09446, allocations: 245.3 kB / 404.4 MB, free: 9.105 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.625e-05/0.09451, allocations: 15.88 kB / 404.4 MB, free: 9.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001747/0.09469, allocations: 117.9 kB / 404.5 MB, free: 8.953 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.953e-06/0.0947, allocations: 0 / 404.5 MB, free: 8.953 MB / 302.1 MB Notification: Performance of matching and sorting (n=46): time 0.0007594/0.09547, allocations: 478.4 kB / 405 MB, free: 8.48 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001708/0.09565, allocations: 395.8 kB / 405.4 MB, free: 8.008 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004119/0.09607, allocations: 441.5 kB / 405.8 MB, free: 7.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.768e-05/0.09611, allocations: 41.64 kB / 405.8 MB, free: 7.523 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.09623, allocations: 169.1 kB / 406 MB, free: 7.352 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.161e-05/0.09628, allocations: 43.69 kB / 406 MB, free: 7.309 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.543e-05/0.09634, allocations: 53.69 kB / 406.1 MB, free: 7.25 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001238/0.09647, allocations: 354.8 kB / 406.4 MB, free: 6.895 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001288/0.0966, allocations: 64.83 kB / 406.5 MB, free: 6.832 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002849/0.09689, allocations: 362 kB / 406.8 MB, free: 6.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000422/0.09732, allocations: 434.6 kB / 407.3 MB, free: 5.789 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.799e-06/0.09734, allocations: 7.938 kB / 407.3 MB, free: 5.781 MB / 302.1 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0005794/0.09792, allocations: 436.5 kB / 407.7 MB, free: 5.348 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.09795, allocations: 8 kB / 407.7 MB, free: 5.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.328e-06/0.09796, allocations: 8 kB / 407.7 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.09799, allocations: 12.75 kB / 407.7 MB, free: 5.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002393/0.09823, allocations: 83.84 kB / 407.8 MB, free: 5.238 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.547e-05/0.09826, allocations: 23.92 kB / 407.8 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001935/0.09846, allocations: 35.69 kB / 407.9 MB, free: 5.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.796e-05/0.09849, allocations: 28 kB / 407.9 MB, free: 5.152 MB / 302.1 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.0002021/0.0987, allocations: 229.5 kB / 408.1 MB, free: 4.922 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003794/0.09909, allocations: 292.9 kB / 408.4 MB, free: 4.629 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.046e-05/0.09919, allocations: 55.58 kB / 408.5 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-05/0.09921, allocations: 8 kB / 408.5 MB, free: 4.562 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.09922, allocations: 4 kB / 408.5 MB, free: 4.559 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.09924, allocations: 8 kB / 408.5 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003041/0.09954, allocations: 337.1 kB / 408.8 MB, free: 4.172 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.901e-06/0.09956, allocations: 4 kB / 408.8 MB, free: 4.168 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001994/0.09976, allocations: 63.84 kB / 408.9 MB, free: 4.105 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.791e-06/0.09978, allocations: 8 kB / 408.9 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.209e-05/0.09981, allocations: 20.17 kB / 408.9 MB, free: 4.078 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.09982, allocations: 4 kB / 408.9 MB, free: 4.074 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.09982, allocations: 4 kB / 408.9 MB, free: 4.07 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005484/0.1004, allocations: 457.9 kB / 409.4 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.798e-05/0.1005, allocations: 132.5 kB / 409.5 MB, free: 3.426 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.642e-05/0.1005, allocations: 12 kB / 409.5 MB, free: 3.414 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.1006, allocations: 12 kB / 409.5 MB, free: 3.402 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.59e-05/0.1007, allocations: 15.98 kB / 409.5 MB, free: 3.387 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.552e-05/0.1007, allocations: 23.92 kB / 409.6 MB, free: 3.363 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002841/0.101, allocations: 307.1 kB / 409.9 MB, free: 3.062 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.101, allocations: 4 kB / 409.9 MB, free: 3.059 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003876/0.1014, allocations: 68 kB / 409.9 MB, free: 2.992 MB / 302.1 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.0008574/0.1023, allocations: 463.2 kB / 410.4 MB, free: 2.531 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004688/0.1028, allocations: 293.7 kB / 410.7 MB, free: 2.246 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.1028, allocations: 4.125 kB / 410.7 MB, free: 2.242 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.537e-05/0.1029, allocations: 43.92 kB / 410.7 MB, free: 2.199 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007863/0.1037, allocations: 244.9 kB / 410.9 MB, free: 1.961 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009944/0.1047, allocations: 0.8407 MB / 411.8 MB, free: 1.059 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003451/0.105, allocations: 0.8281 MB / 412.6 MB, free: 208 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001177/0.1052, allocations: 55.47 kB / 412.7 MB, free: 156 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.071e-05/0.1052, allocations: 43.42 kB / 412.7 MB, free: 112 kB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1052, allocations: 0 / 412.7 MB, free: 112 kB / 302.1 MB Notification: Performance of Templates: time 0.008108/0.1134, allocations: 4.612 MB / 417.3 MB, free: 11.49 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.makefile Environment - environmentSimulation: (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 & ./Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.pipe 2>&1) Environment - environmentSimulation: