Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.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.TestReplaceableSamplerHold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold",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.001716/0.001716, allocations: 179.6 kB / 13.23 MB, free: 2.082 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.273/2.273, allocations: 205.2 MB / 219 MB, free: 9.207 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.001185/0.001185, allocations: 94.59 kB / 267.1 MB, free: 9.277 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.1241/0.1241, allocations: 12.59 MB / 327.8 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.923e-05/3.952e-05, allocations: 4 kB / 386.1 MB, free: 69.52 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09299/0.09307, allocations: 50.38 MB / 436.5 MB, free: 19.12 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5068/0.6, allocations: 81.61 MB / 0.5059 GB, free: 11.9 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002252/0.6003, allocations: 68.78 kB / 0.506 GB, free: 11.9 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03047/0.6308, allocations: 7.272 MB / 0.5131 GB, free: 9.117 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.6308, allocations: 0 / 0.5131 GB, free: 9.117 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.67e-05/0.6309, allocations: 7.875 kB / 0.5131 GB, free: 9.113 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001123/0.632, allocations: 0.578 MB / 0.5137 GB, free: 8.625 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.919e-05/0.6321, allocations: 11.66 kB / 0.5137 GB, free: 8.625 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.497e-05/0.6322, allocations: 61.69 kB / 0.5138 GB, free: 8.578 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.128e-05/0.6323, allocations: 39.56 kB / 0.5138 GB, free: 8.559 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007814/0.633, allocations: 361.1 kB / 0.5141 GB, free: 8.273 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.832e-05/0.6331, allocations: 22.5 kB / 0.5142 GB, free: 8.273 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.344e-05/0.6332, allocations: 29.78 kB / 0.5142 GB, free: 8.27 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/0.6345, allocations: 0.6535 MB / 0.5148 GB, free: 8.016 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.295e-05/0.6346, allocations: 0 / 0.5148 GB, free: 8.016 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.128e-05/0.6346, allocations: 14.66 kB / 0.5148 GB, free: 8.012 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.277e-05/0.6346, allocations: 7.688 kB / 0.5148 GB, free: 8.012 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003994/0.635, allocations: 163.2 kB / 0.515 GB, free: 7.992 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009689/0.636, allocations: 0.7656 MB / 0.5157 GB, free: 7.34 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009884/0.637, allocations: 0.5435 MB / 0.5163 GB, free: 7.016 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004346/0.6375, allocations: 234 kB / 0.5165 GB, free: 6.973 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006952/0.6382, allocations: 0.5882 MB / 0.5171 GB, free: 6.293 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.6382, allocations: 41.22 kB / 0.5171 GB, free: 6.254 MB / 330.7 MB Notification: Performance of pre-optimization done (n=52): time 3.958e-06/0.6383, allocations: 0 / 0.5171 GB, free: 6.254 MB / 330.7 MB Notification: Performance of matching and sorting (n=52): time 0.000834/0.6391, allocations: 324.6 kB / 0.5174 GB, free: 6.168 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001258/0.6392, allocations: 186.1 kB / 0.5176 GB, free: 5.977 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002863/0.6395, allocations: 219.5 kB / 0.5178 GB, free: 5.855 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.856e-05/0.6396, allocations: 31.45 kB / 0.5178 GB, free: 5.824 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.983e-05/0.6397, allocations: 147.9 kB / 0.518 GB, free: 5.719 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.738e-05/0.6398, allocations: 61.19 kB / 0.518 GB, free: 5.684 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.951e-05/0.6398, allocations: 7.812 kB / 0.518 GB, free: 5.684 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.988e-05/0.6399, allocations: 352.2 kB / 0.5184 GB, free: 5.352 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001644/0.6401, allocations: 67.41 kB / 0.5184 GB, free: 5.352 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003272/0.6404, allocations: 405.9 kB / 0.5188 GB, free: 4.898 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002761/0.6407, allocations: 144.2 kB / 0.519 GB, free: 4.852 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.286e-06/0.6407, allocations: 3.969 kB / 0.519 GB, free: 4.852 MB / 330.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008365/0.6416, allocations: 466 kB / 0.5194 GB, free: 4.684 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.469e-05/0.6416, allocations: 11.62 kB / 0.5194 GB, free: 4.684 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.657e-05/0.6416, allocations: 12.56 kB / 0.5194 GB, free: 4.684 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.44e-05/0.6417, allocations: 15.41 kB / 0.5195 GB, free: 4.684 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006341/0.6423, allocations: 119.8 kB / 0.5196 GB, free: 4.66 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.569e-05/0.6424, allocations: 27.23 kB / 0.5196 GB, free: 4.648 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004058/0.6428, allocations: 53.98 kB / 0.5196 GB, free: 4.617 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.022e-05/0.6428, allocations: 31.06 kB / 0.5197 GB, free: 4.59 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 6 (sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[1],$CLKPRE.sample1.noise.seedState[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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.0001811/0.643, allocations: 151.2 kB / 0.5198 GB, free: 4.453 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006623/0.6437, allocations: 304.5 kB / 0.5201 GB, free: 4.215 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007354/0.6445, allocations: 318.1 kB / 0.5204 GB, free: 3.992 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.105e-05/0.6445, allocations: 7.984 kB / 0.5204 GB, free: 3.984 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.6445, allocations: 4 kB / 0.5204 GB, free: 3.98 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.047e-06/0.6445, allocations: 0 / 0.5204 GB, free: 3.98 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000442/0.645, allocations: 337.1 kB / 0.5208 GB, free: 3.656 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-05/0.645, allocations: 4 kB / 0.5208 GB, free: 3.652 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007623/0.6458, allocations: 107.1 kB / 0.5209 GB, free: 3.551 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.046e-05/0.6458, allocations: 4 kB / 0.5209 GB, free: 3.547 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.695e-05/0.6458, allocations: 14.56 kB / 0.5209 GB, free: 3.539 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.222e-06/0.6459, allocations: 4 kB / 0.5209 GB, free: 3.535 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.6459, allocations: 0 / 0.5209 GB, free: 3.535 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001118/0.647, allocations: 0.7118 MB / 0.5216 GB, free: 2.938 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.792e-05/0.6471, allocations: 116.5 kB / 0.5217 GB, free: 2.805 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.368e-05/0.6472, allocations: 15.56 kB / 0.5217 GB, free: 2.797 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003941/0.6476, allocations: 27.47 kB / 0.5217 GB, free: 2.777 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.406e-05/0.6477, allocations: 8.062 kB / 0.5217 GB, free: 2.77 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.501e-05/0.6477, allocations: 23.81 kB / 0.5218 GB, free: 2.75 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002028/0.6479, allocations: 169.5 kB / 0.5219 GB, free: 2.609 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6479, allocations: 0 / 0.5219 GB, free: 2.609 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006936/0.6486, allocations: 83.31 kB / 0.522 GB, free: 2.543 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 Backend phase and start with SimCode phase: time 0.001427/0.6501, allocations: 1.474 MB / 0.5234 GB, free: 1.18 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007433/0.6508, allocations: 308.8 kB / 0.5237 GB, free: 0.9492 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.6509, allocations: 0 / 0.5237 GB, free: 0.9492 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.799e-05/0.6509, allocations: 23.55 kB / 0.5238 GB, free: 0.9297 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001112/0.6521, allocations: 259.5 kB / 0.524 GB, free: 0.7305 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002351/0.6544, allocations: 0.6804 MB / 0.5247 GB, free: 104 kB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005221/0.655, allocations: 0.8162 MB / 0.5255 GB, free: 15.26 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0002079/0.6552, allocations: 39.27 kB / 0.5255 GB, free: 15.22 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002114/0.6554, allocations: 104.7 kB / 0.5256 GB, free: 15.18 MB / 346.7 MB Notification: Performance of SimCode: time 9.12e-07/0.6554, allocations: 0 / 0.5256 GB, free: 15.18 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03316/0.6886, allocations: 7.045 MB / 0.5325 GB, free: 8.156 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003534/0.689, allocations: 185.4 kB / 0.5327 GB, free: 7.922 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.718/3.407, allocations: 0 / 0.5327 GB, free: 7.922 MB / 346.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_WorkInProgress_Tests_TestReplaceableSamplerHold.fmu > Modelica_Synchronous_Modelica_Synchronous.WorkInProgress.Tests.TestReplaceableSamplerHold.pipe 2>&1)