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.002279/0.002279, allocations: 177.8 kB / 8.403 MB, free: 0.6719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.034/2.034, allocations: 205.3 MB / 214.1 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001072/0.001071, allocations: 78.42 kB / 262.1 MB, free: 1.684 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.09672/0.09672, allocations: 12.59 MB / 322.7 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.062e-05/2.071e-05, allocations: 4 kB / 378.9 MB, free: 6.906 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.299, allocations: 50.38 MB / 429.3 MB, free: 18.42 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1431/0.4421, allocations: 82.92 MB / 0.5002 GB, free: 15.39 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002351/0.4424, allocations: 63.97 kB / 0.5003 GB, free: 15.33 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0478/0.4902, allocations: 10.14 MB / 0.5102 GB, free: 5.172 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.4902, allocations: 0 / 0.5102 GB, free: 5.172 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.659e-05/0.4903, allocations: 8 kB / 0.5102 GB, free: 5.164 MB / 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.001153/0.4914, allocations: 0.6023 MB / 0.5108 GB, free: 4.512 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.552e-05/0.4915, allocations: 8.031 kB / 0.5108 GB, free: 4.504 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001354/0.4917, allocations: 43.44 kB / 0.5108 GB, free: 4.461 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008899/0.4926, allocations: 372.5 kB / 0.5112 GB, free: 4.055 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.307e-05/0.4926, allocations: 15.94 kB / 0.5112 GB, free: 4.039 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.642e-05/0.4927, allocations: 20 kB / 0.5112 GB, free: 4.02 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004471/0.4931, allocations: 145.1 kB / 0.5113 GB, free: 3.879 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001317/0.4945, allocations: 0.6136 MB / 0.5119 GB, free: 3.195 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.4945, allocations: 3.938 kB / 0.5119 GB, free: 3.191 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.491e-05/0.4946, allocations: 8 kB / 0.5119 GB, free: 3.184 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.4946, allocations: 4 kB / 0.5119 GB, free: 3.18 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001582/0.4962, allocations: 1.09 MB / 0.513 GB, free: 2.004 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001064/0.4973, allocations: 0.6262 MB / 0.5136 GB, free: 1.23 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004525/0.4978, allocations: 221.5 kB / 0.5138 GB, free: 0.9844 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.728e-05/0.4978, allocations: 19.86 kB / 0.5138 GB, free: 0.9648 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002423/0.4981, allocations: 109.9 kB / 0.514 GB, free: 0.8359 MB / 362.7 MB Notification: Performance of pre-optimization done (n=46): time 3.867e-06/0.4981, allocations: 0 / 0.514 GB, free: 0.8359 MB / 362.7 MB Notification: Performance of matching and sorting (n=46): time 0.0009646/0.4991, allocations: 326.9 kB / 0.5143 GB, free: 0.5117 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000281/0.4994, allocations: 358.1 kB / 0.5146 GB, free: 84 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3386/0.838, allocations: 348.9 kB / 0.5149 GB, free: 88.72 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001075/0.8382, allocations: 27.95 kB / 0.515 GB, free: 88.69 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002065/0.8384, allocations: 212.9 kB / 0.5152 GB, free: 88.54 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001295/0.8385, allocations: 51.66 kB / 0.5152 GB, free: 88.54 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.369e-05/0.8386, allocations: 0 / 0.5152 GB, free: 88.54 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.8387, allocations: 329.6 kB / 0.5155 GB, free: 88.22 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002512/0.839, allocations: 61.22 kB / 0.5156 GB, free: 88.22 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005289/0.8395, allocations: 347.9 kB / 0.5159 GB, free: 87.87 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004169/0.84, allocations: 118.7 kB / 0.516 GB, free: 87.87 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.33e-05/0.84, allocations: 3.625 kB / 0.516 GB, free: 87.87 MB / 362.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001287/0.8413, allocations: 330.9 kB / 0.5164 GB, free: 87.83 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.222e-05/0.8414, allocations: 11.66 kB / 0.5164 GB, free: 87.83 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.374e-05/0.8414, allocations: 9.406 kB / 0.5164 GB, free: 87.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.11e-05/0.8415, allocations: 14.33 kB / 0.5164 GB, free: 87.83 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007595/0.8423, allocations: 88.08 kB / 0.5165 GB, free: 87.83 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.362e-05/0.8424, allocations: 16.95 kB / 0.5165 GB, free: 87.83 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006062/0.843, allocations: 24.2 kB / 0.5165 GB, free: 87.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.002e-05/0.8431, allocations: 24.81 kB / 0.5165 GB, free: 87.83 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.0003107/0.8434, allocations: 157.4 kB / 0.5167 GB, free: 87.71 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001009/0.8444, allocations: 254.3 kB / 0.5169 GB, free: 87.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005802/0.8451, allocations: 138.7 kB / 0.5171 GB, free: 87.61 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-05/0.8451, allocations: 8.062 kB / 0.5171 GB, free: 87.61 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.527e-05/0.8451, allocations: 4.062 kB / 0.5171 GB, free: 87.61 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.561e-05/0.8452, allocations: 7.234 kB / 0.5171 GB, free: 87.6 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007021/0.8459, allocations: 289.2 kB / 0.5174 GB, free: 87.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.036e-05/0.8459, allocations: 1.312 kB / 0.5174 GB, free: 87.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007446/0.8467, allocations: 72.06 kB / 0.5174 GB, free: 87.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-05/0.8467, allocations: 6.969 kB / 0.5174 GB, free: 87.44 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.301e-05/0.8468, allocations: 9.141 kB / 0.5174 GB, free: 87.44 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-05/0.8468, allocations: 16.33 kB / 0.5175 GB, free: 87.43 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.228e-06/0.8468, allocations: 3.312 kB / 0.5175 GB, free: 87.43 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001307/0.8482, allocations: 0.5079 MB / 0.518 GB, free: 87.11 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002245/0.8484, allocations: 128.7 kB / 0.5181 GB, free: 86.99 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001289/0.8486, allocations: 9.625 kB / 0.5181 GB, free: 86.99 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000345/0.8489, allocations: 7.438 kB / 0.5181 GB, free: 86.99 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.8491, allocations: 14.08 kB / 0.5181 GB, free: 86.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.957e-05/0.8492, allocations: 17.22 kB / 0.5181 GB, free: 86.99 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0006579/0.8498, allocations: 265.2 kB / 0.5184 GB, free: 86.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.71e-07/0.8499, allocations: 0 / 0.5184 GB, free: 86.91 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001266/0.8511, allocations: 79.2 kB / 0.5185 GB, free: 86.91 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.001658/0.8528, allocations: 393.4 kB / 0.5188 GB, free: 86.67 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001125/0.854, allocations: 270.6 kB / 0.5191 GB, free: 86.64 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/0.854, allocations: 1.375 kB / 0.5191 GB, free: 86.64 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001549/0.8542, allocations: 34.8 kB / 0.5191 GB, free: 86.64 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001737/0.856, allocations: 213.3 kB / 0.5193 GB, free: 86.61 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002261/0.8583, allocations: 0.58 MB / 0.5199 GB, free: 86.34 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005855/0.8589, allocations: 0.8365 MB / 0.5207 GB, free: 85.64 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000259/0.8592, allocations: 39.95 kB / 0.5207 GB, free: 85.63 MB / 362.7 MB Notification: Performance of SimCode: time 1.182e-06/0.8592, allocations: 2.953 kB / 0.5207 GB, free: 85.63 MB / 362.7 MB Notification: Performance of Templates: time 0.01895/0.8782, allocations: 5.121 MB / 0.5258 GB, free: 85.18 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)