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.002515/0.002515, allocations: 184.2 kB / 15.8 MB, free: 6.316 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.14/2.14, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.001137/0.001137, allocations: 94.86 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09579/0.09579, allocations: 12.6 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005467/0.0005468, allocations: 17.02 kB / 392.1 MB, free: 54.71 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09687/0.09746, allocations: 50.37 MB / 442.5 MB, free: 10.8 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1499/0.2474, allocations: 81.71 MB / 0.5119 GB, free: 8.98 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000275/0.2478, allocations: 67.91 kB / 0.512 GB, free: 8.914 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03545/0.2832, allocations: 7.294 MB / 0.5191 GB, free: 1.605 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.2833, allocations: 0 / 0.5191 GB, free: 1.605 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.329e-05/0.2834, allocations: 16.14 kB / 0.5191 GB, free: 1.59 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.001512/0.2849, allocations: 0.6038 MB / 0.5197 GB, free: 0.9375 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.216e-05/0.2849, allocations: 8.031 kB / 0.5197 GB, free: 0.9297 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001146/0.2851, allocations: 74.48 kB / 0.5198 GB, free: 0.8477 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/0.2852, allocations: 40.22 kB / 0.5198 GB, free: 0.8086 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008972/0.2861, allocations: 358.6 kB / 0.5201 GB, free: 424 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.143e-05/0.2862, allocations: 20.56 kB / 0.5202 GB, free: 404 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.858e-05/0.2863, allocations: 31.94 kB / 0.5202 GB, free: 372 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2775/0.5637, allocations: 0.725 MB / 0.5209 GB, free: 83.59 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.425e-05/0.5638, allocations: 3.438 kB / 0.5209 GB, free: 83.59 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.972e-05/0.5639, allocations: 14.98 kB / 0.5209 GB, free: 83.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.418e-05/0.5639, allocations: 7.938 kB / 0.5209 GB, free: 83.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001023/0.565, allocations: 226 kB / 0.5211 GB, free: 83.59 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001215/0.5662, allocations: 0.7707 MB / 0.5219 GB, free: 83.07 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001682/0.5679, allocations: 0.6172 MB / 0.5225 GB, free: 82.79 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007676/0.5687, allocations: 0.5801 MB / 0.5231 GB, free: 82.13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.898e-05/0.5688, allocations: 49.23 kB / 0.5231 GB, free: 82.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=52): time 3.817e-06/0.5688, allocations: 2.297 kB / 0.5231 GB, free: 82.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=52): time 0.002261/0.571, allocations: 0.5966 MB / 0.5237 GB, free: 81.94 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000133/0.5712, allocations: 188.6 kB / 0.5239 GB, free: 81.75 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003622/0.5716, allocations: 217.6 kB / 0.5241 GB, free: 81.65 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.484e-05/0.5717, allocations: 32.45 kB / 0.5241 GB, free: 81.62 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00012/0.5718, allocations: 147.2 kB / 0.5243 GB, free: 81.53 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.92e-05/0.5719, allocations: 52.34 kB / 0.5243 GB, free: 81.52 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.553e-05/0.5719, allocations: 13.09 kB / 0.5243 GB, free: 81.51 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001069/0.572, allocations: 353.8 kB / 0.5247 GB, free: 81.2 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000333/0.5724, allocations: 88.16 kB / 0.5247 GB, free: 81.2 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005663/0.573, allocations: 423 kB / 0.5251 GB, free: 80.76 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004564/0.5734, allocations: 162.2 kB / 0.5253 GB, free: 80.74 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.127e-05/0.5735, allocations: 9.391 kB / 0.5253 GB, free: 80.73 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.00135/0.5748, allocations: 498.5 kB / 0.5258 GB, free: 80.61 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.535e-05/0.5749, allocations: 9.516 kB / 0.5258 GB, free: 80.61 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.48e-05/0.5749, allocations: 13.88 kB / 0.5258 GB, free: 80.61 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.164e-05/0.575, allocations: 17.2 kB / 0.5258 GB, free: 80.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006642/0.5757, allocations: 126.4 kB / 0.5259 GB, free: 80.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.414e-05/0.5757, allocations: 22.59 kB / 0.526 GB, free: 80.59 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004323/0.5761, allocations: 52.98 kB / 0.526 GB, free: 80.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.121e-05/0.5762, allocations: 28.88 kB / 0.526 GB, free: 80.58 MB / 362.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 () * Number of clocked states: 4 (PI.x,sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * 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.0003852/0.5766, allocations: 196 kB / 0.5262 GB, free: 80.45 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001192/0.5778, allocations: 348.1 kB / 0.5266 GB, free: 80.38 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001273/0.5791, allocations: 350 kB / 0.5269 GB, free: 80.33 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.752e-05/0.5792, allocations: 7.328 kB / 0.5269 GB, free: 80.33 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.5792, allocations: 4.875 kB / 0.5269 GB, free: 80.32 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.394e-05/0.5792, allocations: 3.438 kB / 0.5269 GB, free: 80.32 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007049/0.5799, allocations: 333.5 kB / 0.5272 GB, free: 80.12 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.686e-05/0.58, allocations: 6.75 kB / 0.5272 GB, free: 80.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008281/0.5808, allocations: 106.6 kB / 0.5273 GB, free: 80.12 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.477e-05/0.5809, allocations: 6.781 kB / 0.5273 GB, free: 80.11 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.478e-05/0.5809, allocations: 8.672 kB / 0.5273 GB, free: 80.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.797e-06/0.581, allocations: 2.031 kB / 0.5274 GB, free: 80.11 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.581, allocations: 2.781 kB / 0.5274 GB, free: 80.11 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002241/0.5832, allocations: 0.814 MB / 0.5281 GB, free: 79.8 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000143/0.5834, allocations: 122.4 kB / 0.5283 GB, free: 79.69 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.675e-05/0.5835, allocations: 13.3 kB / 0.5283 GB, free: 79.69 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004152/0.5839, allocations: 32.67 kB / 0.5283 GB, free: 79.68 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.085e-05/0.584, allocations: 11.59 kB / 0.5283 GB, free: 79.68 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.97e-05/0.5841, allocations: 15.88 kB / 0.5283 GB, free: 79.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002918/0.5844, allocations: 173.6 kB / 0.5285 GB, free: 79.6 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.01e-07/0.5844, allocations: 0 / 0.5285 GB, free: 79.6 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008559/0.5853, allocations: 75.23 kB / 0.5286 GB, free: 79.6 MB / 362.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 () * Number of clocked states: 4 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3],PI.x) * 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.002618/0.5879, allocations: 1.591 MB / 0.5301 GB, free: 78.55 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001332/0.5893, allocations: 364.5 kB / 0.5305 GB, free: 78.52 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/0.5893, allocations: 1.188 kB / 0.5305 GB, free: 78.52 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000188/0.5895, allocations: 34.12 kB / 0.5305 GB, free: 78.51 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001495/0.591, allocations: 292.4 kB / 0.5308 GB, free: 78.46 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007211/0.5982, allocations: 10.02 MB / 0.5406 GB, free: 69.42 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003645/0.5987, allocations: 0.8191 MB / 0.5414 GB, free: 68.72 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002319/0.5989, allocations: 36.42 kB / 0.5414 GB, free: 68.71 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000245/0.5992, allocations: 110.6 kB / 0.5415 GB, free: 68.7 MB / 362.7 MB Notification: Performance of SimCode: time 1.342e-06/0.5992, allocations: 0 / 0.5415 GB, free: 68.7 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03521/0.6344, allocations: 7.063 MB / 0.5484 GB, free: 67 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002037/0.6347, allocations: 203.1 kB / 0.5486 GB, free: 66.76 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.63/3.264, allocations: 0 / 0.5486 GB, free: 66.76 MB / 362.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)