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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001304/0.001304, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001258/0.001258, allocations: 196.6 kB / 16.53 MB, free: 6.699 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.404/1.404, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.505/2.505, allocations: 390.2 MB / 0.6647 GB, free: 472 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001575, allocations: 59.91 kB / 0.8127 GB, free: 14.39 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.757/0.7586, allocations: 140.4 MB / 0.9497 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.001949/0.7606, allocations: 0.6705 MB / 0.9504 GB, free: 8.684 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001122/0.7617, allocations: 1.043 MB / 0.9514 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.226e-05/0.7618, allocations: 0 / 0.9514 GB, free: 7.844 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.914e-05/0.7618, allocations: 3.938 kB / 0.9514 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.367e-05/0.7619, allocations: 5.312 kB / 0.9514 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002519/0.7622, allocations: 45.45 kB / 0.9515 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.017e-05/0.7622, allocations: 42.95 kB / 0.9515 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.679e-05/0.7623, allocations: 17.45 kB / 0.9515 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.992e-05/0.7624, allocations: 14.55 kB / 0.9515 GB, free: 7.758 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.886e-05/0.7625, allocations: 26.52 kB / 0.9515 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.496e-05/0.7625, allocations: 3.438 kB / 0.9516 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.405e-05/0.7625, allocations: 27.69 kB / 0.9516 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.642e-05/0.7626, allocations: 9.266 kB / 0.9516 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.408e-05/0.7626, allocations: 11.94 kB / 0.9516 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001105/0.7627, allocations: 61.72 kB / 0.9517 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.7627, allocations: 0 / 0.9517 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.152e-06/0.7627, allocations: 0 / 0.9517 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.849e-06/0.7628, allocations: 4 kB / 0.9517 GB, free: 7.656 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.0004753/0.7632, allocations: 366.4 kB / 0.952 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.7633, allocations: 10.22 kB / 0.952 GB, free: 7.273 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.481e-05/0.7633, allocations: 31.78 kB / 0.9521 GB, free: 7.234 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.046e-05/0.7633, allocations: 7.781 kB / 0.9521 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.48e-05/0.7634, allocations: 165.5 kB / 0.9522 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.3e-05/0.7634, allocations: 6.531 kB / 0.9522 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.475e-05/0.7634, allocations: 10.83 kB / 0.9522 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001835/0.7636, allocations: 63.17 kB / 0.9523 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.363e-06/0.7637, allocations: 3.938 kB / 0.9523 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.061e-05/0.7637, allocations: 1.031 kB / 0.9523 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.209e-06/0.7637, allocations: 0.9062 kB / 0.9523 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001779/0.7639, allocations: 39.61 kB / 0.9523 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000371/0.7642, allocations: 285.8 kB / 0.9526 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001569/0.7644, allocations: 60.8 kB / 0.9527 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.643e-05/0.7645, allocations: 27.47 kB / 0.9527 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.397e-05/0.7645, allocations: 5.359 kB / 0.9527 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001938/0.7647, allocations: 75.77 kB / 0.9528 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=6): time 1.272e-06/0.7648, allocations: 0 / 0.9528 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=6): time 0.0004073/0.7652, allocations: 115.8 kB / 0.9529 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.498e-05/0.7652, allocations: 56.47 kB / 0.9529 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.178e-05/0.7653, allocations: 110.1 kB / 0.953 GB, free: 6.258 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.295e-05/0.7653, allocations: 33.7 kB / 0.9531 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.118e-05/0.7654, allocations: 85.42 kB / 0.9532 GB, free: 6.133 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.051e-05/0.7654, allocations: 21.73 kB / 0.9532 GB, free: 6.113 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.838e-05/0.7654, allocations: 19.78 kB / 0.9532 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.446e-05/0.7655, allocations: 325.6 kB / 0.9535 GB, free: 5.77 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.377e-05/0.7656, allocations: 20.98 kB / 0.9535 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001013/0.7657, allocations: 51.5 kB / 0.9536 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001818/0.7659, allocations: 81.73 kB / 0.9536 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.7659, allocations: 0 / 0.9536 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002376/0.7661, allocations: 100 kB / 0.9537 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.7662, allocations: 8.766 kB / 0.9538 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.7662, allocations: 1.25 kB / 0.9538 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.7662, allocations: 2.031 kB / 0.9538 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.7663, allocations: 21.89 kB / 0.9538 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.7663, allocations: 1.375 kB / 0.9538 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.327e-05/0.7664, allocations: 5.125 kB / 0.9538 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.005e-05/0.7664, allocations: 6.562 kB / 0.9538 GB, free: 5.57 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 6.086e-05/0.7664, allocations: 121.5 kB / 0.9539 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.302e-05/0.7665, allocations: 6.594 kB / 0.9539 GB, free: 5.441 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002701/0.7667, allocations: 104.1 kB / 0.954 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.7668, allocations: 1.438 kB / 0.954 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.7668, allocations: 0 / 0.954 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.536e-06/0.7668, allocations: 0 / 0.954 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003527/0.7671, allocations: 352.8 kB / 0.9543 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.7671, allocations: 1.688 kB / 0.9544 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.007e-05/0.7672, allocations: 9.484 kB / 0.9544 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-06/0.7672, allocations: 64 / 0.9544 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.171e-05/0.7672, allocations: 5.5 kB / 0.9544 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.7672, allocations: 3.938 kB / 0.9544 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.7672, allocations: 1.453 kB / 0.9544 GB, free: 5.008 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002834/0.7675, allocations: 204.5 kB / 0.9546 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.478e-05/0.7676, allocations: 78.33 kB / 0.9546 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.843e-05/0.7676, allocations: 1.406 kB / 0.9546 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.659e-05/0.7677, allocations: 12.55 kB / 0.9547 GB, free: 4.73 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.385e-05/0.7678, allocations: 6.281 kB / 0.9547 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.54e-05/0.7678, allocations: 3.125 kB / 0.9547 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.76e-05/0.7678, allocations: 91.23 kB / 0.9547 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.7678, allocations: 0 / 0.9547 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002471/0.7681, allocations: 17.47 kB / 0.9548 GB, free: 4.633 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.0004691/0.7685, allocations: 0.7368 MB / 0.9555 GB, free: 3.926 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002542/0.7688, allocations: 68.81 kB / 0.9556 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.7688, allocations: 1.344 kB / 0.9556 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001083/0.7689, allocations: 30.08 kB / 0.9556 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002648/0.7692, allocations: 17.3 kB / 0.9556 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001291/0.7705, allocations: 1.371 MB / 0.9569 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001345/0.7707, allocations: 0.6848 MB / 0.9576 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.314e-05/0.7707, allocations: 3 kB / 0.9576 GB, free: 1.844 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.004e-05/0.7707, allocations: 19.02 kB / 0.9576 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of SimCode: time 2.11e-07/0.7707, allocations: 0 / 0.9576 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01852/0.7893, allocations: 1.714 MB / 0.9593 GB, free: 0.8828 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.554/8.344, allocations: 15.33 kB / 0.9593 GB, free: 0.875 MB / 0.7169 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 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.csv","/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