Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009896/0.0009897, allocations: 91.84 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007913/0.007913, allocations: 169.9 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.373/1.373, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.294/2.294, allocations: 390.9 MB / 0.6664 GB, free: 2.359 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000493/0.0004933, allocations: 15.94 kB / 0.8161 GB, free: 13.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7415/0.742, allocations: 142.4 MB / 0.9552 GB, free: 7.664 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.0007223/0.7428, allocations: 395.8 kB / 0.9556 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001045/0.7438, allocations: 1.04 MB / 0.9566 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.57e-05/0.7439, allocations: 1.219 kB / 0.9566 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.452e-05/0.7439, allocations: 0 / 0.9566 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.754e-05/0.744, allocations: 9.047 kB / 0.9566 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002088/0.7442, allocations: 36.86 kB / 0.9566 GB, free: 6.496 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.608e-05/0.7443, allocations: 49.83 kB / 0.9567 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.032e-05/0.7443, allocations: 5.062 kB / 0.9567 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.603e-05/0.7444, allocations: 17.89 kB / 0.9567 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.67e-05/0.7445, allocations: 18.55 kB / 0.9567 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.141e-05/0.7445, allocations: 5.438 kB / 0.9567 GB, free: 6.438 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.495e-05/0.7445, allocations: 16.11 kB / 0.9567 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.602e-05/0.7446, allocations: 10.47 kB / 0.9567 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.598e-05/0.7446, allocations: 42.53 kB / 0.9568 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.46e-05/0.7447, allocations: 56.22 kB / 0.9568 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.7447, allocations: 0 / 0.9568 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.923e-06/0.7447, allocations: 1.344 kB / 0.9568 GB, free: 6.336 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.617e-06/0.7447, allocations: 0 / 0.9568 GB, free: 6.336 MB / 0.7169 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.0004412/0.7452, allocations: 369.4 kB / 0.9572 GB, free: 5.953 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.7452, allocations: 12.88 kB / 0.9572 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.777e-05/0.7453, allocations: 33.16 kB / 0.9572 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.399e-05/0.7453, allocations: 9.984 kB / 0.9572 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.607e-05/0.7454, allocations: 167.2 kB / 0.9574 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.095e-05/0.7454, allocations: 1.375 kB / 0.9574 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.306e-05/0.7454, allocations: 2.844 kB / 0.9574 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001774/0.7456, allocations: 72.55 kB / 0.9575 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.7456, allocations: 5.375 kB / 0.9575 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.037e-06/0.7456, allocations: 4 kB / 0.9575 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.658e-06/0.7456, allocations: 1.469 kB / 0.9575 GB, free: 5.641 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001823/0.7458, allocations: 56.33 kB / 0.9575 GB, free: 5.617 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003279/0.7461, allocations: 273.8 kB / 0.9578 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001545/0.7463, allocations: 63.11 kB / 0.9579 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.722e-05/0.7464, allocations: 35.02 kB / 0.9579 GB, free: 5.254 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.875e-05/0.7464, allocations: 5.281 kB / 0.9579 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001749/0.7466, allocations: 85.62 kB / 0.958 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.383e-06/0.7466, allocations: 0 / 0.958 GB, free: 5.176 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0003788/0.747, allocations: 129.4 kB / 0.9581 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.855e-05/0.747, allocations: 56.83 kB / 0.9582 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.021e-05/0.7471, allocations: 105.2 kB / 0.9583 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.018e-05/0.7471, allocations: 27.17 kB / 0.9583 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.607e-05/0.7471, allocations: 97.55 kB / 0.9584 GB, free: 4.809 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.575e-05/0.7472, allocations: 14.56 kB / 0.9584 GB, free: 4.797 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.363e-05/0.7472, allocations: 16.06 kB / 0.9584 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.404e-05/0.7472, allocations: 319.9 kB / 0.9587 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.69e-05/0.7473, allocations: 26.2 kB / 0.9587 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001048/0.7475, allocations: 64.62 kB / 0.9588 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001875/0.7476, allocations: 92.33 kB / 0.9589 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.7477, allocations: 0 / 0.9589 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002359/0.7479, allocations: 116.6 kB / 0.959 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.7479, allocations: 10.47 kB / 0.959 GB, free: 4.258 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.807e-06/0.7479, allocations: 3.938 kB / 0.959 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/0.7479, allocations: 2.531 kB / 0.959 GB, free: 4.254 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.459e-05/0.748, allocations: 16.27 kB / 0.959 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.7481, allocations: 1.375 kB / 0.959 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.23e-05/0.7481, allocations: 6.875 kB / 0.959 GB, free: 4.25 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.428e-06/0.7481, allocations: 6.75 kB / 0.959 GB, free: 4.246 MB / 0.7169 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 5.499e-05/0.7482, allocations: 125.8 kB / 0.9592 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.119e-05/0.7482, allocations: 9.281 kB / 0.9592 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002485/0.7485, allocations: 111.5 kB / 0.9593 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.7485, allocations: 0 / 0.9593 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.7485, allocations: 5.375 kB / 0.9593 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.726e-06/0.7485, allocations: 0 / 0.9593 GB, free: 4.039 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003339/0.7488, allocations: 361.7 kB / 0.9596 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.7488, allocations: 0 / 0.9596 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.936e-05/0.7489, allocations: 17.64 kB / 0.9596 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.7489, allocations: 0.8438 kB / 0.9596 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.694e-06/0.7489, allocations: 1.062 kB / 0.9596 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.7489, allocations: 0 / 0.9596 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.7489, allocations: 5.5 kB / 0.9596 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002417/0.7492, allocations: 213.5 kB / 0.9599 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.632e-05/0.7492, allocations: 82.42 kB / 0.9599 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.333e-05/0.7492, allocations: 1.812 kB / 0.9599 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.238e-05/0.7493, allocations: 11.02 kB / 0.9599 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.275e-05/0.7494, allocations: 6.75 kB / 0.9599 GB, free: 3.395 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.135e-05/0.7494, allocations: 6.141 kB / 0.96 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.334e-05/0.7494, allocations: 88.66 kB / 0.96 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7494, allocations: 0 / 0.96 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002268/0.7496, allocations: 18.56 kB / 0.9601 GB, free: 3.301 MB / 0.7169 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.0004118/0.7501, allocations: 0.7372 MB / 0.9608 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002317/0.7503, allocations: 70.25 kB / 0.9608 GB, free: 2.578 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.7503, allocations: 4.062 kB / 0.9608 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001086/0.7504, allocations: 39.73 kB / 0.9609 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002339/0.7507, allocations: 14.17 kB / 0.9609 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001173/0.7519, allocations: 1.41 MB / 0.9623 GB, free: 1.211 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001098/0.752, allocations: 0.6825 MB / 0.9629 GB, free: 0.5117 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.826e-05/0.752, allocations: 6.75 kB / 0.9629 GB, free: 0.5078 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.262e-05/0.752, allocations: 14.19 kB / 0.963 GB, free: 0.4961 MB / 0.7169 GB Notification: Performance of SimCode: time 3.2e-07/0.7521, allocations: 0 / 0.963 GB, free: 0.4961 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01013/0.7622, allocations: 1.476 MB / 0.9644 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001981/0.7624, allocations: 202.4 kB / 0.9646 GB, free: 15.54 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.69/2.452, allocations: 1.281 kB / 0.9646 GB, free: 15.54 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_Sampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches