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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sampler1.u|sampler1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001329/0.001329, allocations: 103.6 kB / 16.41 MB, free: 6.512 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.001311/0.001311, allocations: 189.7 kB / 17.34 MB, free: 5.738 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.374/1.374, allocations: 222.9 MB / 241 MB, free: 15.14 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.253/2.253, allocations: 390.2 MB / 0.6655 GB, free: 0.5781 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001748/0.001748, allocations: 71.89 kB / 0.9515 GB, free: 7.621 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9129/0.9147, allocations: 140.4 MB / 1.089 GB, free: 5.492 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler): time 0.00178/0.9165, allocations: 0.667 MB / 1.089 GB, free: 5.074 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001251/0.9178, allocations: 1.053 MB / 1.09 GB, free: 4.297 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.617e-05/0.9178, allocations: 0.75 kB / 1.09 GB, free: 4.297 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.484e-05/0.9179, allocations: 4.594 kB / 1.09 GB, free: 4.293 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.924e-05/0.918, allocations: 5.344 kB / 1.09 GB, free: 4.289 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003006/0.9183, allocations: 46.09 kB / 1.09 GB, free: 4.262 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001038/0.9184, allocations: 41.02 kB / 1.09 GB, free: 4.246 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.9185, allocations: 10.38 kB / 1.09 GB, free: 4.242 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.887e-05/0.9186, allocations: 18.33 kB / 1.09 GB, free: 4.234 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.709e-05/0.9186, allocations: 28.78 kB / 1.09 GB, free: 4.219 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.771e-05/0.9186, allocations: 4.156 kB / 1.09 GB, free: 4.219 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.428e-05/0.9187, allocations: 21.47 kB / 1.09 GB, free: 4.211 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.117e-05/0.9188, allocations: 11.91 kB / 1.09 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.653e-05/0.9188, allocations: 16.52 kB / 1.09 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001455/0.9189, allocations: 60.05 kB / 1.091 GB, free: 4.168 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.919, allocations: 5.828 kB / 1.091 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.313e-06/0.919, allocations: 0 / 1.091 GB, free: 4.164 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.919, allocations: 0 / 1.091 GB, free: 4.164 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.0005284/0.9195, allocations: 365.5 kB / 1.091 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.9196, allocations: 9.594 kB / 1.091 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.757e-05/0.9196, allocations: 3.531 kB / 1.091 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.446e-05/0.9197, allocations: 167.7 kB / 1.091 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.193e-05/0.9197, allocations: 2.562 kB / 1.091 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.915e-05/0.9197, allocations: 3.172 kB / 1.091 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002071/0.9199, allocations: 62.08 kB / 1.091 GB, free: 3.559 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.9199, allocations: 4.188 kB / 1.091 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.357e-05/0.92, allocations: 5.719 kB / 1.091 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.421e-06/0.92, allocations: 1.375 kB / 1.091 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001946/0.9202, allocations: 49.56 kB / 1.091 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003793/0.9206, allocations: 275.3 kB / 1.091 GB, free: 3.254 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001545/0.9207, allocations: 60.5 kB / 1.092 GB, free: 3.215 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/0.9208, allocations: 28.28 kB / 1.092 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.81e-05/0.9209, allocations: 1.734 kB / 1.092 GB, free: 3.203 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001905/0.9211, allocations: 80.08 kB / 1.092 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=6): time 1.393e-06/0.9211, allocations: 0 / 1.092 GB, free: 3.141 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0004309/0.9215, allocations: 126.2 kB / 1.092 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.799e-05/0.9215, allocations: 53.3 kB / 1.092 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.078e-05/0.9216, allocations: 108.9 kB / 1.092 GB, free: 2.914 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.023e-05/0.9216, allocations: 26.5 kB / 1.092 GB, free: 2.883 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.969e-05/0.9217, allocations: 87.12 kB / 1.092 GB, free: 2.797 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.72e-05/0.9217, allocations: 14.77 kB / 1.092 GB, free: 2.785 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.686e-05/0.9217, allocations: 21.52 kB / 1.092 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.198e-05/0.9218, allocations: 323.3 kB / 1.092 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001024/0.9219, allocations: 26.75 kB / 1.092 GB, free: 2.438 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001075/0.922, allocations: 46.7 kB / 1.092 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001962/0.9222, allocations: 88.97 kB / 1.092 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.9222, allocations: 0 / 1.092 GB, free: 2.344 MB / 0.8575 GB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002692/0.9225, allocations: 102.7 kB / 1.093 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.9225, allocations: 5.938 kB / 1.093 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/0.9225, allocations: 5.656 kB / 1.093 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.987e-05/0.9225, allocations: 5.531 kB / 1.093 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001087/0.9227, allocations: 13.95 kB / 1.093 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.186e-06/0.9227, allocations: 6.109 kB / 1.093 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.739e-05/0.9227, allocations: 7.359 kB / 1.093 GB, free: 2.281 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.138e-05/0.9228, allocations: 2.469 kB / 1.093 GB, free: 2.281 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 6.98e-05/0.9228, allocations: 118.3 kB / 1.093 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.373e-05/0.9229, allocations: 2.719 kB / 1.093 GB, free: 2.16 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002937/0.9232, allocations: 104.5 kB / 1.093 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.9232, allocations: 0.7812 kB / 1.093 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.9232, allocations: 1.453 kB / 1.093 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.967e-06/0.9232, allocations: 0.7188 kB / 1.093 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003926/0.9236, allocations: 360.9 kB / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.9236, allocations: 0 / 1.093 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.225e-05/0.9237, allocations: 12.84 kB / 1.093 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.796e-06/0.9237, allocations: 4.75 kB / 1.093 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.578e-06/0.9237, allocations: 5.547 kB / 1.093 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.9237, allocations: 0.75 kB / 1.093 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.9237, allocations: 0.5938 kB / 1.093 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002666/0.924, allocations: 191.1 kB / 1.093 GB, free: 1.613 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.341e-05/0.924, allocations: 91.7 kB / 1.093 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.795e-05/0.924, allocations: 2.297 kB / 1.093 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.9241, allocations: 7.594 kB / 1.094 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.251e-05/0.9242, allocations: 5.094 kB / 1.094 GB, free: 1.508 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.492e-05/0.9242, allocations: 6.031 kB / 1.094 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.778e-05/0.9242, allocations: 85.38 kB / 1.094 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.2e-07/0.9242, allocations: 0 / 1.094 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002468/0.9245, allocations: 14.62 kB / 1.094 GB, free: 1.422 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.0001474/0.9246, allocations: 116.6 kB / 1.094 GB, free: 1.32 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002695/0.9249, allocations: 66.44 kB / 1.094 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.9249, allocations: 0 / 1.094 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001161/0.9251, allocations: 37 kB / 1.094 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002716/0.9253, allocations: 6.578 kB / 1.094 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003018/0.9256, allocations: 157 kB / 1.094 GB, free: 1.137 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001203/0.9258, allocations: 0.6817 MB / 1.095 GB, free: 452 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.874e-05/0.9258, allocations: 14.52 kB / 1.095 GB, free: 440 kB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.9258, allocations: 4.656 kB / 1.095 GB, free: 436 kB / 0.8575 GB Notification: Performance of Templates: time 0.002809/0.9286, allocations: 0.8635 MB / 1.096 GB, free: 368 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.Sampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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