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-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: translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001293/0.001294, allocations: 175.4 kB / 16.45 MB, free: 5.684 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.286/1.286, allocations: 205.4 MB / 222.6 MB, free: 9.098 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.0007566/0.0007566, allocations: 92.91 kB / 270.9 MB, free: 8.348 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.07547/0.07547, allocations: 12.59 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004132/0.0004134, allocations: 15.98 kB / 392 MB, free: 66.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06834/0.06877, allocations: 50.37 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds): time 0.002016/0.07082, allocations: 1.821 MB / 444.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00152/0.07237, allocations: 1.159 MB / 445.3 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001828/0.07258, allocations: 11.94 kB / 445.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003394/0.07293, allocations: 87.58 kB / 445.4 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002088/0.07315, allocations: 79.64 kB / 445.5 MB, free: 13.28 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007527/0.07392, allocations: 267.5 kB / 445.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002963/0.07422, allocations: 287.5 kB / 446.1 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001853/0.07442, allocations: 109.8 kB / 446.2 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001483/0.07457, allocations: 107.4 kB / 446.3 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000148/0.07473, allocations: 119.4 kB / 446.4 MB, free: 12.41 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.909e-05/0.07476, allocations: 12 kB / 446.4 MB, free: 12.39 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001363/0.07491, allocations: 51.97 kB / 446.5 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.797e-05/0.07498, allocations: 79.67 kB / 446.5 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.483e-05/0.07505, allocations: 73.52 kB / 446.6 MB, free: 12.19 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002497/0.0753, allocations: 283.7 kB / 446.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.07531, allocations: 0 / 446.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.07532, allocations: 0 / 446.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.815e-06/0.07534, allocations: 0 / 446.9 MB, free: 11.91 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.0007231/0.07607, allocations: 0.6213 MB / 447.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.07611, allocations: 12.03 kB / 447.5 MB, free: 11.22 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.712e-05/0.07619, allocations: 43.44 kB / 447.6 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.07656, allocations: 343.3 kB / 447.9 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.602e-05/0.07659, allocations: 20.56 kB / 447.9 MB, free: 10.79 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.253e-05/0.07663, allocations: 27.98 kB / 447.9 MB, free: 10.76 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008317/0.07747, allocations: 0.6783 MB / 448.6 MB, free: 10.01 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.0775, allocations: 7.938 kB / 448.6 MB, free: 10 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.623e-05/0.07753, allocations: 15.98 kB / 448.6 MB, free: 9.984 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.365e-05/0.07756, allocations: 8 kB / 448.6 MB, free: 9.977 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002413/0.07781, allocations: 147.7 kB / 448.8 MB, free: 9.832 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000771/0.07859, allocations: 1.148 MB / 449.9 MB, free: 8.582 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005975/0.0792, allocations: 0.6779 MB / 450.6 MB, free: 7.75 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002513/0.07946, allocations: 246.5 kB / 450.9 MB, free: 7.477 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.686e-05/0.07951, allocations: 23.98 kB / 450.9 MB, free: 7.453 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001654/0.07968, allocations: 113.9 kB / 451 MB, free: 7.32 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 3.046e-06/0.07969, allocations: 0 / 451 MB, free: 7.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=46): time 0.0007107/0.08041, allocations: 473.4 kB / 451.5 MB, free: 6.852 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.514e-05/0.08052, allocations: 391.8 kB / 451.8 MB, free: 6.383 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003447/0.08087, allocations: 441.7 kB / 452.3 MB, free: 5.945 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.528e-05/0.0809, allocations: 41.7 kB / 452.3 MB, free: 5.898 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.977e-05/0.08099, allocations: 165 kB / 452.5 MB, free: 5.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.613e-05/0.08103, allocations: 47.61 kB / 452.5 MB, free: 5.684 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.099e-05/0.08105, allocations: 8 kB / 452.5 MB, free: 5.676 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.179e-05/0.08112, allocations: 354.8 kB / 452.9 MB, free: 5.32 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001205/0.08124, allocations: 68.83 kB / 452.9 MB, free: 5.254 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001996/0.08145, allocations: 358 kB / 453.3 MB, free: 4.766 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001797/0.08164, allocations: 131.8 kB / 453.4 MB, free: 4.637 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.698e-06/0.08165, allocations: 4 kB / 453.4 MB, free: 4.633 MB / 298.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0005319/0.08219, allocations: 424.5 kB / 453.8 MB, free: 4.211 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/0.08222, allocations: 12 kB / 453.8 MB, free: 4.199 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/0.08223, allocations: 12.25 kB / 453.9 MB, free: 4.188 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.08226, allocations: 12.78 kB / 453.9 MB, free: 4.176 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002325/0.08249, allocations: 87.83 kB / 454 MB, free: 4.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/0.08252, allocations: 23.94 kB / 454 MB, free: 4.066 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001825/0.08271, allocations: 43.62 kB / 454 MB, free: 4.023 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.339e-05/0.08274, allocations: 31.98 kB / 454.1 MB, free: 3.992 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.0001686/0.08291, allocations: 225.6 kB / 454.3 MB, free: 3.766 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003147/0.08323, allocations: 289 kB / 454.6 MB, free: 3.477 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.255e-05/0.08331, allocations: 59.2 kB / 454.6 MB, free: 3.41 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.56e-05/0.08334, allocations: 8 kB / 454.6 MB, free: 3.402 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/0.08335, allocations: 4 kB / 454.6 MB, free: 3.398 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.334e-06/0.08336, allocations: 7.984 kB / 454.6 MB, free: 3.391 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002195/0.08358, allocations: 325.1 kB / 454.9 MB, free: 3.023 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.0836, allocations: 4 kB / 455 MB, free: 3.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002009/0.0838, allocations: 67.91 kB / 455 MB, free: 2.953 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.66e-06/0.08382, allocations: 4 kB / 455 MB, free: 2.949 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.939e-05/0.08384, allocations: 16.17 kB / 455 MB, free: 2.934 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.08385, allocations: 8 kB / 455 MB, free: 2.926 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.08386, allocations: 3.938 kB / 455.1 MB, free: 2.922 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004614/0.08432, allocations: 449.8 kB / 455.5 MB, free: 2.434 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.317e-05/0.0844, allocations: 132.5 kB / 455.6 MB, free: 2.285 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.8e-05/0.08445, allocations: 16 kB / 455.6 MB, free: 2.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.08457, allocations: 15.88 kB / 455.7 MB, free: 2.254 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.715e-05/0.08463, allocations: 19.98 kB / 455.7 MB, free: 2.234 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.245e-05/0.08465, allocations: 19.98 kB / 455.7 MB, free: 2.215 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002235/0.08488, allocations: 307.1 kB / 456 MB, free: 1.914 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08489, allocations: 0 / 456 MB, free: 1.914 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003758/0.08527, allocations: 75.89 kB / 456.1 MB, free: 1.84 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.0007822/0.08606, allocations: 452.9 kB / 456.5 MB, free: 1.391 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004113/0.08648, allocations: 289.7 kB / 456.8 MB, free: 1.109 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.0865, allocations: 4.125 kB / 456.8 MB, free: 1.105 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.004e-05/0.08658, allocations: 39.92 kB / 456.8 MB, free: 1.066 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006546/0.08724, allocations: 237 kB / 457.1 MB, free: 0.8359 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008916/0.08815, allocations: 0.8348 MB / 457.9 MB, free: 15.93 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003775/0.08854, allocations: 0.8281 MB / 458.7 MB, free: 15.08 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.443e-05/0.08864, allocations: 43.42 kB / 458.8 MB, free: 15.04 MB / 314.7 MB Notification: Performance of SimCode: time 2.11e-07/0.08865, allocations: 0 / 458.8 MB, free: 15.04 MB / 314.7 MB Notification: Performance of Templates: time 0.007839/0.09649, allocations: 5.198 MB / 464 MB, free: 9.832 MB / 314.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.makefile (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 & ./Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds --alarm=480 > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.pipe 2>&1)