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: 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/Complex 3.2.3+maint.om/package.mo): time 0.001358/0.001358, allocations: 182.3 kB / 13.23 MB, free: 2.086 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.612/1.612, allocations: 205.2 MB / 219 MB, free: 9.203 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.0008545/0.0008544, allocations: 93.84 kB / 267.1 MB, free: 9.27 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.08069/0.08069, allocations: 12.58 MB / 327.7 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.136e-05/3.138e-05, allocations: 4 kB / 386 MB, free: 69.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0851/0.08515, allocations: 50.37 MB / 436.4 MB, free: 19.23 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3112/0.3964, allocations: 83.58 MB / 0.5078 GB, free: 11.58 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002264/0.3967, allocations: 64.22 kB / 0.5078 GB, free: 11.57 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0248/0.4215, allocations: 10.22 MB / 0.5178 GB, free: 7.559 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.4216, allocations: 0 / 0.5178 GB, free: 7.559 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.622e-05/0.4216, allocations: 8 kB / 0.5178 GB, free: 7.551 MB / 330.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.0006396/0.4222, allocations: 0.6044 MB / 0.5184 GB, free: 6.922 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.4223, allocations: 8.031 kB / 0.5184 GB, free: 6.914 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.436e-05/0.4224, allocations: 47.44 kB / 0.5184 GB, free: 6.867 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000489/0.4229, allocations: 371.1 kB / 0.5188 GB, free: 6.5 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.886e-05/0.4229, allocations: 24.12 kB / 0.5188 GB, free: 6.488 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.831e-05/0.4229, allocations: 23.69 kB / 0.5188 GB, free: 6.473 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007921/0.4237, allocations: 0.6686 MB / 0.5195 GB, free: 5.855 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.4238, allocations: 4 kB / 0.5195 GB, free: 5.852 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.425e-05/0.4238, allocations: 11.75 kB / 0.5195 GB, free: 5.848 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.4238, allocations: 4 kB / 0.5195 GB, free: 5.844 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002064/0.424, allocations: 156.3 kB / 0.5197 GB, free: 5.73 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007805/0.4248, allocations: 1.155 MB / 0.5208 GB, free: 4.574 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004854/0.4253, allocations: 0.6492 MB / 0.5214 GB, free: 3.848 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002205/0.4255, allocations: 238.1 kB / 0.5217 GB, free: 3.637 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.357e-05/0.4256, allocations: 19.42 kB / 0.5217 GB, free: 3.621 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001335/0.4257, allocations: 110.6 kB / 0.5218 GB, free: 3.508 MB / 330.7 MB Notification: Performance of pre-optimization done (n=46): time 1.913e-06/0.4257, allocations: 0 / 0.5218 GB, free: 3.508 MB / 330.7 MB Notification: Performance of matching and sorting (n=46): time 0.000494/0.4262, allocations: 359 kB / 0.5221 GB, free: 3.215 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.485e-05/0.4263, allocations: 378.4 kB / 0.5225 GB, free: 2.781 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003247/0.4267, allocations: 392.3 kB / 0.5229 GB, free: 2.465 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.295e-05/0.4267, allocations: 36.58 kB / 0.5229 GB, free: 2.43 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.361e-05/0.4268, allocations: 159.6 kB / 0.523 GB, free: 2.324 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.207e-05/0.4268, allocations: 49.31 kB / 0.5231 GB, free: 2.289 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.029e-05/0.4268, allocations: 7.25 kB / 0.5231 GB, free: 2.289 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.131e-05/0.4269, allocations: 358.8 kB / 0.5234 GB, free: 1.945 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.323e-05/0.427, allocations: 65.5 kB / 0.5235 GB, free: 1.902 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001891/0.4272, allocations: 358.5 kB / 0.5238 GB, free: 1.453 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001482/0.4273, allocations: 127.4 kB / 0.524 GB, free: 1.355 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.4274, allocations: 8 kB / 0.524 GB, free: 1.348 MB / 330.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0004539/0.4278, allocations: 422.5 kB / 0.5244 GB, free: 0.9922 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.4278, allocations: 8 kB / 0.5244 GB, free: 0.9844 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.916e-06/0.4279, allocations: 8.875 kB / 0.5244 GB, free: 0.9766 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.055e-05/0.4279, allocations: 16 kB / 0.5244 GB, free: 0.9609 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002319/0.4281, allocations: 90.95 kB / 0.5245 GB, free: 0.875 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.331e-05/0.4281, allocations: 19.92 kB / 0.5245 GB, free: 0.8555 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001917/0.4283, allocations: 37.25 kB / 0.5246 GB, free: 0.8242 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.268e-05/0.4284, allocations: 22.88 kB / 0.5246 GB, free: 0.8047 MB / 330.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.0001012/0.4285, allocations: 176.6 kB / 0.5247 GB, free: 0.6445 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003128/0.4288, allocations: 287.2 kB / 0.525 GB, free: 412 kB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002196/0.429, allocations: 149.8 kB / 0.5252 GB, free: 304 kB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.429, allocations: 4 kB / 0.5252 GB, free: 300 kB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.4291, allocations: 4 kB / 0.5252 GB, free: 296 kB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.4291, allocations: 4 kB / 0.5252 GB, free: 292 kB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002671/0.4293, allocations: 338.6 kB / 0.5255 GB, free: 15.96 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.132e-06/0.4294, allocations: 4 kB / 0.5255 GB, free: 15.96 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002299/0.4296, allocations: 67.84 kB / 0.5256 GB, free: 15.89 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.732e-06/0.4296, allocations: 4.125 kB / 0.5256 GB, free: 15.89 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.424e-05/0.4296, allocations: 23.64 kB / 0.5256 GB, free: 15.87 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.4296, allocations: 7.984 kB / 0.5256 GB, free: 15.86 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.4297, allocations: 4 kB / 0.5256 GB, free: 15.86 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005909/0.4303, allocations: 0.5414 MB / 0.5261 GB, free: 15.3 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001267/0.4304, allocations: 128 kB / 0.5262 GB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.084e-05/0.4304, allocations: 17.94 kB / 0.5263 GB, free: 15.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001146/0.4306, allocations: 7.312 kB / 0.5263 GB, free: 15.15 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.198e-05/0.4306, allocations: 19.17 kB / 0.5263 GB, free: 15.14 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.54e-05/0.4307, allocations: 19.42 kB / 0.5263 GB, free: 15.12 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000302/0.431, allocations: 308.4 kB / 0.5266 GB, free: 14.88 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.431, allocations: 0 / 0.5266 GB, free: 14.88 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004418/0.4314, allocations: 91.45 kB / 0.5267 GB, free: 14.8 MB / 346.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.0009081/0.4323, allocations: 429.3 kB / 0.5271 GB, free: 14.41 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004583/0.4328, allocations: 298 kB / 0.5274 GB, free: 14.18 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.4328, allocations: 0 / 0.5274 GB, free: 14.18 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 8.124e-05/0.4329, allocations: 49.67 kB / 0.5274 GB, free: 14.14 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006272/0.4335, allocations: 232.7 kB / 0.5277 GB, free: 13.96 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008765/0.4344, allocations: 0.5781 MB / 0.5282 GB, free: 13.41 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004136/0.4349, allocations: 0.8466 MB / 0.529 GB, free: 12.55 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001384/0.435, allocations: 51.41 kB / 0.5291 GB, free: 12.5 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.483e-05/0.4351, allocations: 38.81 kB / 0.5291 GB, free: 12.46 MB / 346.7 MB Notification: Performance of SimCode: time 2.81e-07/0.4351, allocations: 4 kB / 0.5291 GB, free: 12.46 MB / 346.7 MB Notification: Performance of Templates: time 0.008704/0.4438, allocations: 4.627 MB / 0.5337 GB, free: 7.855 MB / 346.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.makefile (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)