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: "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestIntegerSamplerAndHolds",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestIntegerSamplerAndHolds",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00168/0.001679, allocations: 181.4 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 2.352/2.352, 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.001707/0.001706, allocations: 95.09 kB / 267.1 MB, free: 9.266 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.112/0.112, allocations: 12.59 MB / 327.8 MB, free: 12.48 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.802e-05/3.824e-05, allocations: 4 kB / 386.1 MB, free: 69.5 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09326/0.09335, allocations: 50.38 MB / 436.5 MB, free: 19.11 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4973/0.5907, allocations: 83.58 MB / 0.5079 GB, free: 11.11 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002489/0.591, allocations: 57.8 kB / 0.5079 GB, free: 11.11 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04513/0.6362, allocations: 10.22 MB / 0.5179 GB, free: 7.125 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.6362, allocations: 0 / 0.5179 GB, free: 7.125 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.716e-05/0.6363, allocations: 7.828 kB / 0.5179 GB, free: 7.121 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.00136/0.6377, allocations: 0.6141 MB / 0.5185 GB, free: 6.484 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.274e-05/0.6377, allocations: 8.031 kB / 0.5185 GB, free: 6.477 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001424/0.6379, allocations: 60.11 kB / 0.5186 GB, free: 6.422 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001732/0.6381, allocations: 47.38 kB / 0.5186 GB, free: 6.379 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009668/0.6391, allocations: 370.5 kB / 0.519 GB, free: 6.008 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.374e-05/0.6392, allocations: 23.56 kB / 0.519 GB, free: 5.996 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.352e-05/0.6392, allocations: 22.94 kB / 0.519 GB, free: 5.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001374/0.6406, allocations: 0.6699 MB / 0.5197 GB, free: 5.367 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.546e-05/0.6407, allocations: 8 kB / 0.5197 GB, free: 5.359 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.053e-05/0.6408, allocations: 11.75 kB / 0.5197 GB, free: 5.355 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.6408, allocations: 4 kB / 0.5197 GB, free: 5.352 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003829/0.6412, allocations: 146.8 kB / 0.5198 GB, free: 5.242 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001498/0.6427, allocations: 1.162 MB / 0.521 GB, free: 4.082 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009925/0.6437, allocations: 0.6489 MB / 0.5216 GB, free: 3.352 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004525/0.6442, allocations: 234.4 kB / 0.5218 GB, free: 3.145 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.403e-05/0.6443, allocations: 23.25 kB / 0.5218 GB, free: 3.129 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002265/0.6446, allocations: 109.1 kB / 0.5219 GB, free: 3.016 MB / 330.7 MB Notification: Performance of pre-optimization done (n=46): time 5.009e-06/0.6446, allocations: 0 / 0.5219 GB, free: 3.016 MB / 330.7 MB Notification: Performance of matching and sorting (n=46): time 0.0009785/0.6456, allocations: 361.7 kB / 0.5223 GB, free: 2.723 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001519/0.6458, allocations: 373.6 kB / 0.5226 GB, free: 2.289 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007041/0.6465, allocations: 393.5 kB / 0.523 GB, free: 1.973 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.714e-05/0.6466, allocations: 36.2 kB / 0.5231 GB, free: 1.938 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001399/0.6467, allocations: 165.1 kB / 0.5232 GB, free: 1.828 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.799e-05/0.6468, allocations: 48.62 kB / 0.5233 GB, free: 1.793 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.101e-05/0.6469, allocations: 8.438 kB / 0.5233 GB, free: 1.793 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.647, allocations: 355.3 kB / 0.5236 GB, free: 1.453 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001822/0.6472, allocations: 68.36 kB / 0.5237 GB, free: 1.406 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003403/0.6475, allocations: 360.3 kB / 0.524 GB, free: 0.957 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003055/0.6479, allocations: 125.6 kB / 0.5241 GB, free: 0.8594 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.277e-06/0.6479, allocations: 4 kB / 0.5241 GB, free: 0.8555 MB / 330.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0009367/0.6488, allocations: 427.3 kB / 0.5245 GB, free: 0.4961 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.032e-05/0.6489, allocations: 8 kB / 0.5246 GB, free: 500 kB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.525e-05/0.6489, allocations: 8 kB / 0.5246 GB, free: 492 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.504e-05/0.649, allocations: 16 kB / 0.5246 GB, free: 476 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005196/0.6495, allocations: 83.28 kB / 0.5247 GB, free: 396 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.355e-05/0.6496, allocations: 19.92 kB / 0.5247 GB, free: 376 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003937/0.65, allocations: 38.91 kB / 0.5247 GB, free: 344 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.129e-05/0.65, allocations: 27.25 kB / 0.5247 GB, free: 320 kB / 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.000232/0.6503, allocations: 179.8 kB / 0.5249 GB, free: 152 kB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007276/0.651, allocations: 282.6 kB / 0.5252 GB, free: 15.91 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000515/0.6515, allocations: 147.4 kB / 0.5253 GB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.555e-05/0.6516, allocations: 8 kB / 0.5253 GB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.919e-06/0.6516, allocations: 0 / 0.5253 GB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.681e-05/0.6516, allocations: 7.984 kB / 0.5253 GB, free: 15.79 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006836/0.6524, allocations: 336.1 kB / 0.5257 GB, free: 15.47 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.097e-05/0.6524, allocations: 4 kB / 0.5257 GB, free: 15.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005433/0.653, allocations: 71.22 kB / 0.5257 GB, free: 15.4 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.061e-05/0.653, allocations: 11.95 kB / 0.5257 GB, free: 15.39 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.777e-05/0.6531, allocations: 14.61 kB / 0.5258 GB, free: 15.38 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.959e-06/0.6531, allocations: 4 kB / 0.5258 GB, free: 15.38 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.132e-06/0.6531, allocations: 4 kB / 0.5258 GB, free: 15.37 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/0.6543, allocations: 0.5425 MB / 0.5263 GB, free: 14.81 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002264/0.6546, allocations: 131.2 kB / 0.5264 GB, free: 14.67 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.6547, allocations: 14.75 kB / 0.5264 GB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002454/0.655, allocations: 14.86 kB / 0.5264 GB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.424e-05/0.6551, allocations: 19.05 kB / 0.5265 GB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.493e-05/0.6551, allocations: 15.31 kB / 0.5265 GB, free: 14.63 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0006189/0.6557, allocations: 307 kB / 0.5268 GB, free: 14.39 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.41e-07/0.6558, allocations: 0 / 0.5268 GB, free: 14.39 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008658/0.6567, allocations: 92.73 kB / 0.5269 GB, free: 14.31 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.003661/0.6604, allocations: 2.161 MB / 0.529 GB, free: 12.23 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001052/0.6615, allocations: 301.2 kB / 0.5293 GB, free: 12 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.596e-06/0.6615, allocations: 5.875 kB / 0.5293 GB, free: 12 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001616/0.6617, allocations: 42.73 kB / 0.5293 GB, free: 11.96 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001309/0.663, allocations: 223.4 kB / 0.5295 GB, free: 11.79 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002515/0.6656, allocations: 0.7008 MB / 0.5302 GB, free: 11.13 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006239/0.6663, allocations: 0.8374 MB / 0.531 GB, free: 10.27 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003378/0.6666, allocations: 59.41 kB / 0.5311 GB, free: 10.21 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003047/0.667, allocations: 129.3 kB / 0.5312 GB, free: 10.17 MB / 346.7 MB Notification: Performance of SimCode: time 1.152e-06/0.667, allocations: 0 / 0.5312 GB, free: 10.17 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04082/0.7078, allocations: 8.262 MB / 0.5393 GB, free: 1.902 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000213/0.7081, allocations: 214.1 kB / 0.5395 GB, free: 1.68 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.024/3.732, allocations: 0 / 0.5395 GB, free: 1.68 MB / 346.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestIntegerSamplerAndHolds_fmu --startTime=0 --stopTime=1.2 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestIntegerSamplerAndHolds.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestIntegerSamplerAndHolds.pipe 2>&1)