Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001383/0.001383, allocations: 108 kB / 15.61 MB, free: 152 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.00176/0.001761, allocations: 193.2 kB / 16.53 MB, free: 6.664 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.526/1.526, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.731/2.731, allocations: 437 MB / 0.7103 GB, free: 5.094 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 59.91 kB / 0.8692 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.924/0.9255, allocations: 151.6 MB / 1.017 GB, free: 2.543 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002858/0.9284, allocations: 0.7558 MB / 1.018 GB, free: 1.785 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002032/0.9305, allocations: 1.159 MB / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.453e-05/0.9306, allocations: 0 / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 4.425e-05/0.9307, allocations: 7.875 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.747e-05/0.9308, allocations: 11.92 kB / 1.019 GB, free: 0.5898 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006563/0.9315, allocations: 131.7 kB / 1.019 GB, free: 472 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002188/0.9317, allocations: 131.8 kB / 1.019 GB, free: 340 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001454/0.9318, allocations: 28.09 kB / 1.019 GB, free: 308 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001559/0.932, allocations: 55.89 kB / 1.02 GB, free: 252 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 9.404e-05/0.9321, allocations: 35.89 kB / 1.02 GB, free: 216 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.393e-05/0.9322, allocations: 19.94 kB / 1.02 GB, free: 196 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 9.971e-05/0.9323, allocations: 27.98 kB / 1.02 GB, free: 168 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.859e-05/0.9323, allocations: 7.984 kB / 1.02 GB, free: 160 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 9.178e-05/0.9324, allocations: 51.78 kB / 1.02 GB, free: 108 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002499/0.9326, allocations: 111.8 kB / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.9327, allocations: 0 / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of FrontEnd: time 5.661e-06/0.9327, allocations: 4 kB / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.277e-06/0.9327, allocations: 0 / 1.02 GB, free: 15.99 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0007768/0.9335, allocations: 419 kB / 1.02 GB, free: 15.53 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.093e-05/0.9335, allocations: 12.03 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.474e-05/0.9336, allocations: 12.78 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001504/0.9338, allocations: 180.2 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.056e-05/0.9338, allocations: 4.375 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.09e-05/0.9338, allocations: 12.38 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002354/0.9341, allocations: 70.16 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.9341, allocations: 3.938 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.668e-05/0.9341, allocations: 4 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.9341, allocations: 4 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002161/0.9344, allocations: 47.89 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006595/0.935, allocations: 344.6 kB / 1.021 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002401/0.9353, allocations: 70.58 kB / 1.021 GB, free: 14.68 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001068/0.9354, allocations: 24.97 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.75e-05/0.9354, allocations: 11.89 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003804/0.9358, allocations: 87.36 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 2.234e-06/0.9358, allocations: 0 / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0005824/0.9364, allocations: 149.5 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.106e-05/0.9365, allocations: 55.34 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001447/0.9367, allocations: 125.8 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.334e-05/0.9367, allocations: 25.7 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.552e-05/0.9368, allocations: 92.05 kB / 1.021 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.597e-05/0.9368, allocations: 23.78 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/0.937, allocations: 41.7 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001636/0.9371, allocations: 326.8 kB / 1.022 GB, free: 13.67 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001742/0.9373, allocations: 43.97 kB / 1.022 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002082/0.9375, allocations: 92.61 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003161/0.9379, allocations: 150.8 kB / 1.022 GB, free: 13.35 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.9379, allocations: 3.938 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005065/0.9384, allocations: 211.1 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.095e-05/0.9384, allocations: 41.69 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.604e-05/0.9385, allocations: 8 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.004e-05/0.9385, allocations: 0 / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00012/0.9386, allocations: 19.92 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.094e-06/0.9386, allocations: 0 / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002528/0.9389, allocations: 47.95 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.699e-05/0.9389, allocations: 8 kB / 1.022 GB, free: 13 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001418/0.9391, allocations: 129.7 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.213e-05/0.9391, allocations: 4 kB / 1.023 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003594/0.9395, allocations: 114 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.446e-06/0.9395, allocations: 8 kB / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.9395, allocations: 0 / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.252e-06/0.9395, allocations: 0 / 1.023 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000555/0.9401, allocations: 390.2 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.9401, allocations: 0 / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.881e-05/0.9402, allocations: 11.98 kB / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.407e-06/0.9402, allocations: 0 / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.9402, allocations: 0 / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.9402, allocations: 4 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.883e-06/0.9402, allocations: 3.938 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003337/0.9406, allocations: 215.9 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.231e-05/0.9406, allocations: 81.02 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.427e-05/0.9406, allocations: 7.984 kB / 1.023 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.314e-05/0.9407, allocations: 4.047 kB / 1.023 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.725e-05/0.9408, allocations: 23.84 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.406e-06/0.9408, allocations: 4 kB / 1.023 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.792e-05/0.9409, allocations: 91.27 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.4e-07/0.9409, allocations: 0 / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002813/0.9412, allocations: 24 kB / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001768/0.9414, allocations: 104.8 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0004195/0.9418, allocations: 191.2 kB / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.9418, allocations: 0 / 1.024 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001297/0.9419, allocations: 39.92 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003216/0.9423, allocations: 15.92 kB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004363/0.9427, allocations: 171.4 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002753/0.943, allocations: 0.6885 MB / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.905e-05/0.943, allocations: 3.984 kB / 1.025 GB, free: 10.52 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.617e-05/0.9431, allocations: 11.44 kB / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of SimCode: time 2.8e-07/0.9431, allocations: 0 / 1.025 GB, free: 10.5 MB / 0.7794 GB Notification: Performance of Templates: time 0.005005/0.9481, allocations: 1.447 MB / 1.026 GB, free: 9.07 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches