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.002246/0.002246, allocations: 177.7 kB / 8.045 MB, free: 1.027 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.088/2.088, allocations: 205.3 MB / 213.8 MB, free: 1.668 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.001086/0.001086, allocations: 86.62 kB / 261.8 MB, free: 1.617 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.09879/0.09879, allocations: 12.6 MB / 322.3 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.644e-05/2.641e-05, allocations: 4 kB / 379 MB, free: 6.406 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3362/0.3363, allocations: 50.37 MB / 429.4 MB, free: 18.23 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1752/0.5116, allocations: 80.95 MB / 0.4984 GB, free: 1.168 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003305/0.5119, allocations: 63.97 kB / 0.4985 GB, free: 1.105 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03989/0.5519, allocations: 7.232 MB / 0.5055 GB, free: 9.867 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.5519, allocations: 0 / 0.5055 GB, free: 9.867 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.952e-05/0.552, allocations: 12 kB / 0.5055 GB, free: 9.855 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.001329/0.5534, allocations: 0.5722 MB / 0.5061 GB, free: 9.238 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.77e-05/0.5534, allocations: 8.031 kB / 0.5061 GB, free: 9.23 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/0.5536, allocations: 44.12 kB / 0.5061 GB, free: 9.188 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009271/0.5545, allocations: 358.6 kB / 0.5065 GB, free: 8.797 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.251e-05/0.5545, allocations: 11.98 kB / 0.5065 GB, free: 8.785 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.114e-05/0.5546, allocations: 19.91 kB / 0.5065 GB, free: 8.766 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004891/0.5551, allocations: 149.3 kB / 0.5067 GB, free: 8.621 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001488/0.5566, allocations: 0.6032 MB / 0.5072 GB, free: 7.973 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.533e-05/0.5567, allocations: 3.938 kB / 0.5072 GB, free: 7.969 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.069e-05/0.5567, allocations: 4 kB / 0.5073 GB, free: 7.965 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.539e-05/0.5568, allocations: 8 kB / 0.5073 GB, free: 7.957 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001227/0.558, allocations: 0.7103 MB / 0.508 GB, free: 7.184 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001155/0.5592, allocations: 0.5173 MB / 0.5085 GB, free: 6.59 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004783/0.5597, allocations: 207.2 kB / 0.5087 GB, free: 6.375 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009447/0.5606, allocations: 0.5817 MB / 0.5092 GB, free: 5.664 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.546e-05/0.5607, allocations: 50.5 kB / 0.5093 GB, free: 5.605 MB / 362.7 MB Notification: Performance of pre-optimization done (n=52): time 3.597e-06/0.5607, allocations: 0 / 0.5093 GB, free: 5.605 MB / 362.7 MB Notification: Performance of matching and sorting (n=52): time 0.0009994/0.5618, allocations: 297.6 kB / 0.5096 GB, free: 5.309 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001629/0.5619, allocations: 170.2 kB / 0.5097 GB, free: 5.105 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003587/0.5623, allocations: 210.1 kB / 0.5099 GB, free: 4.891 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.607e-05/0.5624, allocations: 29.73 kB / 0.5099 GB, free: 4.855 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00016/0.5625, allocations: 149.1 kB / 0.5101 GB, free: 4.703 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.254e-05/0.5626, allocations: 59.56 kB / 0.5101 GB, free: 4.645 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.59e-05/0.5627, allocations: 0 / 0.5101 GB, free: 4.645 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002027/0.5629, allocations: 342.8 kB / 0.5105 GB, free: 4.301 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001774/0.5631, allocations: 61.12 kB / 0.5105 GB, free: 4.242 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004945/0.5636, allocations: 400.5 kB / 0.5109 GB, free: 3.688 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003051/0.5639, allocations: 123.8 kB / 0.511 GB, free: 3.566 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.275e-06/0.5639, allocations: 4 kB / 0.511 GB, free: 3.562 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001008/0.5649, allocations: 393.5 kB / 0.5114 GB, free: 3.172 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.112e-05/0.565, allocations: 12 kB / 0.5114 GB, free: 3.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.07e-05/0.565, allocations: 12 kB / 0.5114 GB, free: 3.148 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.71e-05/0.5651, allocations: 16 kB / 0.5114 GB, free: 3.133 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006887/0.5658, allocations: 119.8 kB / 0.5116 GB, free: 3.016 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.85e-05/0.5658, allocations: 23.92 kB / 0.5116 GB, free: 2.992 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004192/0.5662, allocations: 51.98 kB / 0.5116 GB, free: 2.941 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.092e-05/0.5663, allocations: 28 kB / 0.5117 GB, free: 2.914 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 () * 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.0002244/0.5665, allocations: 135.2 kB / 0.5118 GB, free: 2.777 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008935/0.5674, allocations: 297.4 kB / 0.5121 GB, free: 2.48 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001434/0.5676, allocations: 39.53 kB / 0.5121 GB, free: 2.441 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008922/0.5685, allocations: 289 kB / 0.5124 GB, free: 2.156 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.537e-05/0.5685, allocations: 8 kB / 0.5124 GB, free: 2.148 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.5686, allocations: 0 / 0.5124 GB, free: 2.148 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.887e-06/0.5686, allocations: 0 / 0.5124 GB, free: 2.148 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006003/0.5692, allocations: 273.8 kB / 0.5127 GB, free: 1.844 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.558e-05/0.5692, allocations: 11.89 kB / 0.5127 GB, free: 1.832 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008377/0.5701, allocations: 103.9 kB / 0.5128 GB, free: 1.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.032e-05/0.5701, allocations: 0 / 0.5128 GB, free: 1.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.378e-05/0.5701, allocations: 7.938 kB / 0.5128 GB, free: 1.723 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.2e-05/0.5702, allocations: 15.98 kB / 0.5128 GB, free: 1.707 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.5702, allocations: 0 / 0.5128 GB, free: 1.707 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001419/0.5716, allocations: 0.6783 MB / 0.5135 GB, free: 0.9883 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001524/0.5718, allocations: 120.9 kB / 0.5136 GB, free: 0.8516 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.879e-05/0.5719, allocations: 4 kB / 0.5136 GB, free: 0.8477 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004588/0.5724, allocations: 15.98 kB / 0.5136 GB, free: 0.832 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.334e-05/0.5724, allocations: 15.97 kB / 0.5136 GB, free: 0.8164 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.394e-05/0.5725, allocations: 8 kB / 0.5136 GB, free: 0.8086 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002657/0.5728, allocations: 166 kB / 0.5138 GB, free: 0.6445 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5728, allocations: 4 kB / 0.5138 GB, free: 0.6406 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007891/0.5736, allocations: 67.92 kB / 0.5138 GB, free: 0.5742 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 () * 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.2694/0.843, allocations: 1.431 MB / 0.5152 GB, free: 88.85 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007427/0.8438, allocations: 275.7 kB / 0.5155 GB, free: 88.85 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.8439, allocations: 0 / 0.5155 GB, free: 88.85 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.486e-05/0.8439, allocations: 16.8 kB / 0.5155 GB, free: 88.85 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001296/0.8452, allocations: 243 kB / 0.5157 GB, free: 88.81 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002539/0.8478, allocations: 0.6225 MB / 0.5164 GB, free: 88.59 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004004/0.8482, allocations: 0.8204 MB / 0.5172 GB, free: 87.89 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000222/0.8485, allocations: 37.33 kB / 0.5172 GB, free: 87.88 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000218/0.8487, allocations: 113.6 kB / 0.5173 GB, free: 87.87 MB / 362.7 MB Notification: Performance of SimCode: time 1.072e-06/0.8487, allocations: 0 / 0.5173 GB, free: 87.87 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08471/0.9334, allocations: 6.535 MB / 0.5237 GB, free: 87.48 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002325/0.9337, allocations: 166.4 kB / 0.5238 GB, free: 87.29 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.968/3.902, allocations: 4 kB / 0.5238 GB, free: 87.29 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)