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.01075/0.01075, allocations: 103.3 kB / 15.74 MB, free: 6.004 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.001822/0.001822, allocations: 191.2 kB / 16.67 MB, free: 5.93 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.26/2.26, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.581/2.581, allocations: 390.3 MB / 0.6648 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001421/0.001421, allocations: 67.91 kB / 0.9504 GB, free: 8.156 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8773/0.8787, allocations: 140.4 MB / 1.087 GB, free: 5.285 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.00182/0.8806, allocations: 0.6674 MB / 1.088 GB, free: 4.863 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001269/0.8819, allocations: 1.05 MB / 1.089 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.312e-05/0.8819, allocations: 1 kB / 1.089 GB, free: 4.086 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.271e-05/0.8819, allocations: 3.938 kB / 1.089 GB, free: 4.082 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.446e-05/0.882, allocations: 14.06 kB / 1.089 GB, free: 4.07 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002778/0.8823, allocations: 38.48 kB / 1.089 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001018/0.8824, allocations: 47.52 kB / 1.089 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001023/0.8825, allocations: 11.34 kB / 1.089 GB, free: 4.023 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.616e-05/0.8826, allocations: 22.92 kB / 1.089 GB, free: 4.012 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.464e-05/0.8827, allocations: 23.78 kB / 1.089 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.614e-05/0.8827, allocations: 4.094 kB / 1.089 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.073e-05/0.8828, allocations: 12.73 kB / 1.089 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.213e-05/0.8828, allocations: 20.98 kB / 1.089 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.97e-05/0.8828, allocations: 19.64 kB / 1.089 GB, free: 3.973 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001398/0.883, allocations: 60.72 kB / 1.089 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.883, allocations: 0 / 1.089 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.813e-06/0.883, allocations: 1.031 kB / 1.089 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.883, allocations: 0.7031 kB / 1.089 GB, free: 3.945 MB / 0.8575 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.0004882/0.8835, allocations: 363.7 kB / 1.09 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.002e-05/0.8836, allocations: 13.56 kB / 1.09 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.294e-05/0.8836, allocations: 36.84 kB / 1.09 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.953e-05/0.8836, allocations: 4.141 kB / 1.09 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.715e-05/0.8837, allocations: 167.6 kB / 1.09 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.196e-05/0.8837, allocations: 2.062 kB / 1.09 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.305e-05/0.8838, allocations: 3.656 kB / 1.09 GB, free: 3.332 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000199/0.884, allocations: 61.61 kB / 1.09 GB, free: 3.293 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.087e-06/0.884, allocations: 5 kB / 1.09 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.417e-05/0.884, allocations: 0.6094 kB / 1.09 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.992e-06/0.884, allocations: 1.062 kB / 1.09 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002081/0.8842, allocations: 54.28 kB / 1.09 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003806/0.8846, allocations: 272.6 kB / 1.09 GB, free: 2.988 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001603/0.8848, allocations: 52.97 kB / 1.09 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001027/0.8849, allocations: 37.48 kB / 1.09 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.024e-05/0.8849, allocations: 0.7188 kB / 1.09 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001922/0.8851, allocations: 72.44 kB / 1.09 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.322e-06/0.8851, allocations: 0 / 1.09 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0004068/0.8855, allocations: 122.2 kB / 1.091 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.365e-05/0.8856, allocations: 57.19 kB / 1.091 GB, free: 2.762 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.588e-05/0.8856, allocations: 105.1 kB / 1.091 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.019e-05/0.8857, allocations: 26.77 kB / 1.091 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.972e-05/0.8857, allocations: 90.58 kB / 1.091 GB, free: 2.539 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.717e-05/0.8857, allocations: 14.77 kB / 1.091 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.659e-05/0.8857, allocations: 26.42 kB / 1.091 GB, free: 2.504 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.117e-05/0.8858, allocations: 318.4 kB / 1.091 GB, free: 2.188 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.98e-05/0.8859, allocations: 26.33 kB / 1.091 GB, free: 2.18 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001082/0.886, allocations: 56.03 kB / 1.091 GB, free: 2.137 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001934/0.8862, allocations: 80.53 kB / 1.091 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.8862, allocations: 4 kB / 1.091 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002499/0.8865, allocations: 102.6 kB / 1.091 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.8865, allocations: 9.656 kB / 1.091 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.8865, allocations: 5.531 kB / 1.091 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.8865, allocations: 1.906 kB / 1.091 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000105/0.8866, allocations: 18.25 kB / 1.092 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.8866, allocations: 2.078 kB / 1.092 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.529e-05/0.8867, allocations: 11.23 kB / 1.092 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.047e-06/0.8867, allocations: 2.344 kB / 1.092 GB, free: 2.016 MB / 0.8575 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.823e-05/0.8868, allocations: 127.8 kB / 1.092 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.181e-05/0.8868, allocations: 1.281 kB / 1.092 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002759/0.8871, allocations: 101.3 kB / 1.092 GB, free: 1.84 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.8871, allocations: 5.156 kB / 1.092 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.8871, allocations: 0 / 1.092 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.8871, allocations: 0.7969 kB / 1.092 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003925/0.8875, allocations: 355.2 kB / 1.092 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.8875, allocations: 0.6562 kB / 1.092 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.446e-05/0.8876, allocations: 10 kB / 1.092 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.574e-06/0.8876, allocations: 0.9062 kB / 1.092 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.856e-06/0.8876, allocations: 4.656 kB / 1.092 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.8876, allocations: 1.547 kB / 1.092 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.8876, allocations: 0 / 1.092 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002757/0.8879, allocations: 194.8 kB / 1.092 GB, free: 1.352 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.167e-05/0.8879, allocations: 83.38 kB / 1.092 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.564e-05/0.888, allocations: 2.531 kB / 1.092 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001034/0.8881, allocations: 15.5 kB / 1.092 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.362e-05/0.8881, allocations: 8.5 kB / 1.092 GB, free: 1.242 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.8881, allocations: 7.25 kB / 1.092 GB, free: 1.238 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.975e-05/0.8882, allocations: 81.09 kB / 1.092 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8882, allocations: 1 kB / 1.092 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002458/0.8884, allocations: 22.2 kB / 1.093 GB, free: 1.152 MB / 0.8575 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.0005324/0.889, allocations: 0.7259 MB / 1.093 GB, free: 16.48 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002769/0.8893, allocations: 65.66 kB / 1.093 GB, free: 16.46 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.8893, allocations: 4.625 kB / 1.093 GB, free: 16.46 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001176/0.8894, allocations: 29.31 kB / 1.093 GB, free: 16.45 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002483/0.8897, allocations: 17.2 kB / 1.093 GB, free: 16.44 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00145/0.8911, allocations: 1.378 MB / 1.095 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002449/0.8914, allocations: 0.6854 MB / 1.095 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 3.087e-05/0.8914, allocations: 7.938 kB / 1.095 GB, free: 14.46 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.715e-05/0.8915, allocations: 20.59 kB / 1.095 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of SimCode: time 2.1e-07/0.8915, allocations: 0 / 1.095 GB, free: 14.44 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.079/2.97, allocations: 1.749 MB / 1.097 GB, free: 14.04 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.25/19.23, allocations: 6.938 kB / 1.097 GB, free: 14.04 MB / 0.8731 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