Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.45/2.45, allocations: 391.2 MB / 407 MB, free: 10.89 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001191/0.001191, allocations: 187.5 kB / 499.1 MB, free: 4.676 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.561/1.561, allocations: 222.9 MB / 0.7948 GB, free: 15.77 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001084/0.001084, allocations: 105.8 kB / 0.9329 GB, free: 7.098 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001075/0.001075, allocations: 53.8 kB / 1.081 GB, free: 218 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3079/0.309, allocations: 140.6 MB / 1.218 GB, free: 117.3 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.002082/0.3111, allocations: 0.7209 MB / 1.219 GB, free: 116.5 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.001236/0.3124, allocations: 1.055 MB / 1.22 GB, free: 115.5 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.6e-05/0.3124, allocations: 0 / 1.22 GB, free: 115.5 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 3.863e-05/0.3125, allocations: 4 kB / 1.22 GB, free: 115.5 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 6.171e-05/0.3125, allocations: 3.938 kB / 1.22 GB, free: 115.5 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002326/0.3128, allocations: 39.89 kB / 1.22 GB, free: 115.4 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 7.13e-05/0.3129, allocations: 43.86 kB / 1.22 GB, free: 115.4 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001093/0.313, allocations: 8 kB / 1.22 GB, free: 115.4 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 6.264e-05/0.313, allocations: 15.98 kB / 1.22 GB, free: 115.4 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 5.058e-05/0.3131, allocations: 23.91 kB / 1.22 GB, free: 115.3 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 1.573e-05/0.3131, allocations: 4 kB / 1.22 GB, free: 115.3 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 6.269e-05/0.3132, allocations: 23.91 kB / 1.22 GB, free: 115.3 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 1.823e-05/0.3132, allocations: 4 kB / 1.22 GB, free: 115.3 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 3.291e-05/0.3133, allocations: 19.92 kB / 1.22 GB, free: 115.3 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.000118/0.3134, allocations: 51.78 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.3134, allocations: 3.938 kB / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.482e-06/0.3134, allocations: 0 / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.139e-06/0.3134, allocations: 0 / 1.22 GB, free: 115.2 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005749/0.314, allocations: 365.6 kB / 1.22 GB, free: 114.8 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.314, allocations: 15.98 kB / 1.22 GB, free: 114.8 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.966e-05/0.3141, allocations: 4.844 kB / 1.22 GB, free: 114.8 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.9e-05/0.3142, allocations: 172.3 kB / 1.221 GB, free: 114.6 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.3142, allocations: 384 / 1.221 GB, free: 114.6 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.685e-05/0.3142, allocations: 4.375 kB / 1.221 GB, free: 114.6 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001917/0.3144, allocations: 62.22 kB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.3144, allocations: 4.188 kB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.3144, allocations: 3.938 kB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.98e-06/0.3145, allocations: 4 kB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001651/0.3146, allocations: 51.88 kB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003811/0.315, allocations: 272.8 kB / 1.221 GB, free: 114.1 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001487/0.3152, allocations: 62.48 kB / 1.221 GB, free: 114.1 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.604e-05/0.3153, allocations: 28.95 kB / 1.221 GB, free: 114 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.678e-05/0.3153, allocations: 0 / 1.221 GB, free: 114 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001879/0.3155, allocations: 75.33 kB / 1.221 GB, free: 114 MB / 0.823 GB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.3155, allocations: 0 / 1.221 GB, free: 114 MB / 0.823 GB Notification: Performance of matching and sorting (n=6): time 0.0003815/0.3159, allocations: 129.6 kB / 1.221 GB, free: 113.8 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.038e-05/0.3159, allocations: 55.39 kB / 1.221 GB, free: 113.8 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.238e-05/0.316, allocations: 101.9 kB / 1.221 GB, free: 113.7 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.102e-05/0.316, allocations: 25.7 kB / 1.221 GB, free: 113.6 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 3.454e-05/0.3161, allocations: 96.03 kB / 1.222 GB, free: 113.5 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.533e-05/0.3161, allocations: 7.844 kB / 1.222 GB, free: 113.5 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.491e-05/0.3161, allocations: 25.72 kB / 1.222 GB, free: 113.5 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 5.529e-05/0.3162, allocations: 318.8 kB / 1.222 GB, free: 113.2 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.002e-05/0.3163, allocations: 23.98 kB / 1.222 GB, free: 113.1 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.454e-05/0.3164, allocations: 59.33 kB / 1.222 GB, free: 113.1 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001696/0.3165, allocations: 83.27 kB / 1.222 GB, free: 113 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3166, allocations: 0 / 1.222 GB, free: 113 MB / 0.823 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002172/0.3168, allocations: 105.5 kB / 1.222 GB, free: 112.9 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.267e-05/0.3168, allocations: 4 kB / 1.222 GB, free: 112.9 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.3168, allocations: 12.03 kB / 1.222 GB, free: 112.9 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.183e-05/0.3168, allocations: 0 / 1.222 GB, free: 112.9 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001092/0.3169, allocations: 11.98 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.205e-05/0.317, allocations: 4 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.875e-05/0.317, allocations: 7.984 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.647e-06/0.317, allocations: 4 kB / 1.222 GB, free: 112.8 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 (sampler1.firstTrigger,$PRE.sampler1.firstTrigger,sampler1.sampleTrigger,$whenCondition1,sampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.359e-05/0.3171, allocations: 122.4 kB / 1.222 GB, free: 112.7 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.066e-05/0.3171, allocations: 3.906 kB / 1.222 GB, free: 112.7 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002398/0.3174, allocations: 106 kB / 1.222 GB, free: 112.6 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.3174, allocations: 0 / 1.222 GB, free: 112.6 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.3174, allocations: 0 / 1.222 GB, free: 112.6 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.486e-06/0.3174, allocations: 0 / 1.222 GB, free: 112.6 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003299/0.3177, allocations: 354.4 kB / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.3177, allocations: 0 / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.314e-05/0.3178, allocations: 16.61 kB / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3178, allocations: 4 kB / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.335e-06/0.3178, allocations: 0 / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.3178, allocations: 0 / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3178, allocations: 4 kB / 1.223 GB, free: 112.2 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004367/0.3183, allocations: 0.7668 MB / 1.224 GB, free: 111.3 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 1.953e-05/0.3183, allocations: 81.11 kB / 1.224 GB, free: 111.2 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.526e-05/0.3183, allocations: 3.938 kB / 1.224 GB, free: 111.2 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.976e-05/0.3184, allocations: 7.984 kB / 1.224 GB, free: 111.2 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.187e-05/0.3185, allocations: 7.984 kB / 1.224 GB, free: 111.2 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.088e-05/0.3185, allocations: 0 / 1.224 GB, free: 111.2 MB / 0.823 GB Notification: Performance of sorting global known variables: time 2.644e-05/0.3185, allocations: 91.22 kB / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3185, allocations: 4 kB / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0003178/0.3188, allocations: 11.94 kB / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 (sampler1.sampleTrigger,$whenCondition1,sampler1.y,sampler1.firstTrigger) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001454/0.319, allocations: 115.2 kB / 1.224 GB, free: 111 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0002408/0.3192, allocations: 59.89 kB / 1.224 GB, free: 110.9 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3193, allocations: 0 / 1.224 GB, free: 110.9 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001002/0.3194, allocations: 36.16 kB / 1.224 GB, free: 110.9 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002485/0.3196, allocations: 8 kB / 1.224 GB, free: 110.9 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000374/0.32, allocations: 262 kB / 1.224 GB, free: 110.6 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001367/0.3201, allocations: 0.6809 MB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 3.011e-05/0.3202, allocations: 8 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.995e-05/0.3202, allocations: 7.438 kB / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of SimCode: time 2.1e-07/0.3202, allocations: 0 / 1.225 GB, free: 109.9 MB / 0.823 GB Notification: Performance of Templates: time 0.002615/0.3228, allocations: 0.7274 MB / 1.226 GB, free: 109.1 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1)