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.001489/0.001489, allocations: 181 kB / 13.7 MB, free: 1.625 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.992/1.992, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001051/0.001051, allocations: 78.77 kB / 267.6 MB, free: 14.04 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.09802/0.09802, allocations: 12.6 MB / 328.2 MB, free: 11.15 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.575e-05/4.587e-05, allocations: 4 kB / 386 MB, free: 1.293 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.3229, allocations: 50.36 MB / 436.3 MB, free: 14.14 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1458/0.4687, allocations: 83.59 MB / 0.5077 GB, free: 10.44 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002358/0.469, allocations: 63.91 kB / 0.5078 GB, free: 10.38 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04595/0.515, allocations: 10.22 MB / 0.5178 GB, free: 148 kB / 362.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.5151, allocations: 0 / 0.5178 GB, free: 148 kB / 362.7 MB Notification: Performance of Transformations before backend: time 4.527e-05/0.5151, allocations: 8 kB / 0.5178 GB, free: 140 kB / 362.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.2737/0.7888, allocations: 0.5923 MB / 0.5184 GB, free: 84.9 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.022e-05/0.7889, allocations: 9.375 kB / 0.5184 GB, free: 84.9 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001657/0.7891, allocations: 47.83 kB / 0.5184 GB, free: 84.88 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008592/0.79, allocations: 370.4 kB / 0.5188 GB, free: 84.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.445e-05/0.79, allocations: 24.95 kB / 0.5188 GB, free: 84.66 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.779e-05/0.7901, allocations: 28.89 kB / 0.5188 GB, free: 84.66 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001482/0.7916, allocations: 0.6628 MB / 0.5195 GB, free: 84.43 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.206e-05/0.7917, allocations: 4.094 kB / 0.5195 GB, free: 84.43 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.05e-05/0.7917, allocations: 10.55 kB / 0.5195 GB, free: 84.43 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.374e-05/0.7917, allocations: 6.719 kB / 0.5195 GB, free: 84.43 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004094/0.7921, allocations: 152.8 kB / 0.5196 GB, free: 84.43 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001373/0.7935, allocations: 1.157 MB / 0.5208 GB, free: 83.52 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009258/0.7945, allocations: 0.6563 MB / 0.5214 GB, free: 82.98 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004464/0.7949, allocations: 236.5 kB / 0.5216 GB, free: 82.89 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.824e-05/0.795, allocations: 19.36 kB / 0.5217 GB, free: 82.89 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002226/0.7953, allocations: 117.3 kB / 0.5218 GB, free: 82.81 MB / 362.7 MB Notification: Performance of pre-optimization done (n=46): time 3.316e-06/0.7953, allocations: 0 / 0.5218 GB, free: 82.81 MB / 362.7 MB Notification: Performance of matching and sorting (n=46): time 0.0009711/0.7963, allocations: 354.9 kB / 0.5221 GB, free: 82.74 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001439/0.7964, allocations: 375.3 kB / 0.5225 GB, free: 82.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007024/0.7971, allocations: 393.1 kB / 0.5228 GB, free: 82.21 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.395e-05/0.7972, allocations: 35.23 kB / 0.5229 GB, free: 82.18 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.7973, allocations: 204.5 kB / 0.5231 GB, free: 82.03 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.002e-05/0.7974, allocations: 46.06 kB / 0.5231 GB, free: 82.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.033e-05/0.7974, allocations: 9.438 kB / 0.5231 GB, free: 82.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.684e-05/0.7975, allocations: 332.2 kB / 0.5234 GB, free: 81.7 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001911/0.7977, allocations: 64.22 kB / 0.5235 GB, free: 81.7 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003802/0.7981, allocations: 360.3 kB / 0.5238 GB, free: 81.34 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003049/0.7984, allocations: 131.1 kB / 0.524 GB, free: 81.32 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.508e-06/0.7985, allocations: 3 kB / 0.524 GB, free: 81.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0008661/0.7993, allocations: 393.8 kB / 0.5243 GB, free: 81.21 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.618e-05/0.7994, allocations: 11.92 kB / 0.5244 GB, free: 81.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.722e-05/0.7994, allocations: 9.812 kB / 0.5244 GB, free: 81.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.129e-05/0.7994, allocations: 15.2 kB / 0.5244 GB, free: 81.21 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005201/0.8, allocations: 86.72 kB / 0.5245 GB, free: 81.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.722e-05/0.8, allocations: 21.81 kB / 0.5245 GB, free: 81.2 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003708/0.8004, allocations: 44.36 kB / 0.5245 GB, free: 81.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.802e-05/0.8005, allocations: 29.56 kB / 0.5246 GB, free: 81.18 MB / 362.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,backSample1.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,backSample1.u,shiftSample1.y,fractionalDelay.y,ClockedSignalToSquare.u,superSample1.y,superSample1.u,subSample1.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,ClockedSignalToSquare.y2,$CLKPRE.ClockedSignalToSquare.y2,ClockedSignalToSquare.y,fractionalDelay.first) * Number of discrete states: 0 () * 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.0002084/0.8007, allocations: 163.5 kB / 0.5247 GB, free: 81.06 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006617/0.8014, allocations: 283.2 kB / 0.525 GB, free: 80.99 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004197/0.8018, allocations: 149.5 kB / 0.5251 GB, free: 80.94 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.269e-05/0.8018, allocations: 7.125 kB / 0.5251 GB, free: 80.94 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.859e-06/0.8018, allocations: 8.375 kB / 0.5251 GB, free: 80.94 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.418e-05/0.8019, allocations: 5.094 kB / 0.5251 GB, free: 80.94 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005304/0.8024, allocations: 339.7 kB / 0.5255 GB, free: 80.74 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.913e-06/0.8024, allocations: 1.781 kB / 0.5255 GB, free: 80.74 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005076/0.8029, allocations: 75.66 kB / 0.5255 GB, free: 80.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.247e-05/0.803, allocations: 4.375 kB / 0.5255 GB, free: 80.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.581e-05/0.803, allocations: 16.92 kB / 0.5256 GB, free: 80.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.051e-05/0.803, allocations: 8.062 kB / 0.5256 GB, free: 80.73 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.611e-06/0.803, allocations: 3 kB / 0.5256 GB, free: 80.73 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008854/0.8039, allocations: 0.5381 MB / 0.5261 GB, free: 80.32 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001411/0.8041, allocations: 136.5 kB / 0.5262 GB, free: 80.2 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.097e-05/0.8042, allocations: 14.56 kB / 0.5262 GB, free: 80.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002068/0.8044, allocations: 16.25 kB / 0.5263 GB, free: 80.18 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.666e-05/0.8045, allocations: 10.16 kB / 0.5263 GB, free: 80.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.065e-05/0.8045, allocations: 17.95 kB / 0.5263 GB, free: 80.18 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005142/0.8051, allocations: 305.9 kB / 0.5266 GB, free: 80.03 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.8051, allocations: 0 / 0.5266 GB, free: 80.03 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006811/0.8058, allocations: 90.89 kB / 0.5267 GB, free: 80.01 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 44 ($whenCondition1,integerTable.y,integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled,ClockedSignalToSquare.y,hold1.y,backSample1.y,upSample1.y,upSample1.b_super,upSample1.u_super,fractionalDelay.y,shiftSample1.y,backSample1.u,superSample1.y,ClockedSignalToSquare.u,subSample1.y,superSample1.u,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],ClockedSignalToSquare.y2) * Number of discrete states: 2 (integerTable.combiTimeTable.nextTimeEvent,integerTable.combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (47): * Single equations (assignments): 45 * Array equations: 0 * 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.001133/0.8069, allocations: 415 kB / 0.5271 GB, free: 79.74 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008293/0.8078, allocations: 298.8 kB / 0.5273 GB, free: 79.65 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.382e-06/0.8078, allocations: 1.031 kB / 0.5273 GB, free: 79.65 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001245/0.8079, allocations: 43.78 kB / 0.5274 GB, free: 79.63 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001057/0.809, allocations: 234.9 kB / 0.5276 GB, free: 79.55 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001652/0.8107, allocations: 0.6156 MB / 0.5282 GB, free: 79.2 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003902/0.8111, allocations: 0.8375 MB / 0.529 GB, free: 78.48 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001632/0.8113, allocations: 46.11 kB / 0.5291 GB, free: 78.46 MB / 362.7 MB Notification: Performance of SimCode: time 8.72e-07/0.8113, allocations: 0 / 0.5291 GB, free: 78.46 MB / 362.7 MB Notification: Performance of Templates: time 0.01094/0.8222, allocations: 5.255 MB / 0.5342 GB, free: 77.96 MB / 362.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)