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.002317/0.002322, allocations: 177.1 kB / 8.05 MB, free: 1.023 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.352/2.352, allocations: 205.3 MB / 213.8 MB, free: 13.77 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.001113/0.001113, allocations: 99.17 kB / 261.8 MB, free: 13.45 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.1047/0.1047, allocations: 12.59 MB / 322.3 MB, free: 0.7969 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 3.174e-05/3.193e-05, allocations: 4 kB / 379 MB, free: 75.2 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1172, allocations: 50.38 MB / 429.4 MB, free: 24.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4272/0.5444, allocations: 82.9 MB / 0.5003 GB, free: 11.74 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002521/0.5447, allocations: 63.72 kB / 0.5004 GB, free: 11.74 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04713/0.5919, allocations: 10.15 MB / 0.5103 GB, free: 8.742 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.592, allocations: 4 kB / 0.5103 GB, free: 8.738 MB / 330.7 MB Notification: Performance of Transformations before backend: time 6.859e-05/0.5921, allocations: 7.688 kB / 0.5103 GB, free: 8.738 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.001086/0.5932, allocations: 0.6047 MB / 0.5109 GB, free: 8.195 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.5932, allocations: 7.562 kB / 0.5109 GB, free: 8.195 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001223/0.5934, allocations: 46.59 kB / 0.5109 GB, free: 8.172 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007627/0.5941, allocations: 370.8 kB / 0.5113 GB, free: 7.895 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.983e-05/0.5942, allocations: 7.844 kB / 0.5113 GB, free: 7.895 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.394e-05/0.5942, allocations: 15.5 kB / 0.5113 GB, free: 7.895 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004013/0.5946, allocations: 151.7 kB / 0.5115 GB, free: 7.871 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001186/0.5959, allocations: 0.6194 MB / 0.5121 GB, free: 7.531 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.066e-05/0.5959, allocations: 3.938 kB / 0.5121 GB, free: 7.527 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.044e-05/0.596, allocations: 0 / 0.5121 GB, free: 7.527 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.226e-05/0.596, allocations: 7.812 kB / 0.5121 GB, free: 7.527 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001286/0.5973, allocations: 1.099 MB / 0.5131 GB, free: 6.535 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000796/0.5981, allocations: 0.6271 MB / 0.5138 GB, free: 5.965 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003658/0.5985, allocations: 215.2 kB / 0.514 GB, free: 5.863 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.627e-05/0.5986, allocations: 18.86 kB / 0.514 GB, free: 5.859 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002054/0.5988, allocations: 114.6 kB / 0.5141 GB, free: 5.766 MB / 330.7 MB Notification: Performance of pre-optimization done (n=46): time 3.447e-06/0.5988, allocations: 0 / 0.5141 GB, free: 5.766 MB / 330.7 MB Notification: Performance of matching and sorting (n=46): time 0.000861/0.5997, allocations: 311.6 kB / 0.5144 GB, free: 5.668 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001252/0.5998, allocations: 361.3 kB / 0.5147 GB, free: 5.25 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005373/0.6004, allocations: 356.7 kB / 0.5151 GB, free: 5.105 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.955e-05/0.6004, allocations: 25.7 kB / 0.5151 GB, free: 5.074 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001239/0.6006, allocations: 169.2 kB / 0.5153 GB, free: 4.973 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.614e-05/0.6006, allocations: 45.66 kB / 0.5153 GB, free: 4.949 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.603e-05/0.6007, allocations: 4 kB / 0.5153 GB, free: 4.945 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 9.418e-05/0.6008, allocations: 348.5 kB / 0.5156 GB, free: 4.621 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001407/0.6009, allocations: 64.73 kB / 0.5157 GB, free: 4.609 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003062/0.6012, allocations: 351.8 kB / 0.516 GB, free: 4.234 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002411/0.6015, allocations: 117.1 kB / 0.5161 GB, free: 4.199 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.044e-06/0.6015, allocations: 0 / 0.5161 GB, free: 4.199 MB / 330.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.0007248/0.6023, allocations: 353.7 kB / 0.5165 GB, free: 4.066 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/0.6023, allocations: 15.58 kB / 0.5165 GB, free: 4.062 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.365e-05/0.6023, allocations: 7.688 kB / 0.5165 GB, free: 4.062 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.232e-05/0.6024, allocations: 15.66 kB / 0.5165 GB, free: 4.062 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004685/0.6028, allocations: 91.86 kB / 0.5166 GB, free: 4.039 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.107e-05/0.6029, allocations: 15.09 kB / 0.5166 GB, free: 4.035 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003113/0.6032, allocations: 31.23 kB / 0.5167 GB, free: 4.016 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.62e-05/0.6032, allocations: 25.94 kB / 0.5167 GB, free: 4.016 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.0001923/0.6034, allocations: 158.8 kB / 0.5168 GB, free: 3.879 MB / 330.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007222/0.6042, allocations: 334.2 kB / 0.5171 GB, free: 3.762 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.226e-05/0.6043, allocations: 46.3 kB / 0.5172 GB, free: 3.738 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003535/0.6046, allocations: 136.2 kB / 0.5173 GB, free: 3.688 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.09e-05/0.6047, allocations: 11.7 kB / 0.5173 GB, free: 3.684 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.705e-06/0.6047, allocations: 0 / 0.5173 GB, free: 3.684 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.097e-05/0.6047, allocations: 3.969 kB / 0.5173 GB, free: 3.684 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003684/0.6051, allocations: 289.8 kB / 0.5176 GB, free: 3.457 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.032e-06/0.6051, allocations: 3.844 kB / 0.5176 GB, free: 3.457 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004487/0.6056, allocations: 69.09 kB / 0.5177 GB, free: 3.445 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.138e-05/0.6056, allocations: 3.812 kB / 0.5177 GB, free: 3.445 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.019e-05/0.6056, allocations: 15.66 kB / 0.5177 GB, free: 3.438 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.492e-06/0.6056, allocations: 7.781 kB / 0.5177 GB, free: 3.434 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.6057, allocations: 3.844 kB / 0.5177 GB, free: 3.434 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000736/0.6064, allocations: 0.5119 MB / 0.5182 GB, free: 3.07 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001301/0.6066, allocations: 127.2 kB / 0.5183 GB, free: 2.949 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.653e-05/0.6066, allocations: 7.406 kB / 0.5183 GB, free: 2.949 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000208/0.6069, allocations: 7.719 kB / 0.5183 GB, free: 2.949 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.391e-05/0.6069, allocations: 7.828 kB / 0.5184 GB, free: 2.945 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.818e-05/0.607, allocations: 22.86 kB / 0.5184 GB, free: 2.941 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003789/0.6074, allocations: 260.4 kB / 0.5186 GB, free: 2.84 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.6074, allocations: 0 / 0.5186 GB, free: 2.84 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007901/0.6082, allocations: 81.02 kB / 0.5187 GB, free: 2.824 MB / 330.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.002357/0.6106, allocations: 2.105 MB / 0.5208 GB, free: 1.109 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007046/0.6113, allocations: 267 kB / 0.521 GB, free: 1.062 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/0.6113, allocations: 7.906 kB / 0.521 GB, free: 1.059 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001109/0.6115, allocations: 41.17 kB / 0.5211 GB, free: 1.055 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001036/0.6125, allocations: 203.6 kB / 0.5213 GB, free: 1.008 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001718/0.6142, allocations: 0.6431 MB / 0.5219 GB, free: 0.6406 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003675/0.6147, allocations: 0.8386 MB / 0.5227 GB, free: 15.88 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002395/0.6149, allocations: 60.69 kB / 0.5228 GB, free: 15.85 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002456/0.6152, allocations: 125 kB / 0.5229 GB, free: 15.83 MB / 346.7 MB Notification: Performance of SimCode: time 1.423e-06/0.6152, allocations: 0 / 0.5229 GB, free: 15.83 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1163/0.7315, allocations: 7.504 MB / 0.5302 GB, free: 10.68 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003799/0.7319, allocations: 196.2 kB / 0.5304 GB, free: 10.42 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.139/3.871, allocations: 3.938 kB / 0.5304 GB, free: 10.41 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)