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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001151/0.001151, allocations: 91.92 kB / 15.06 MB, free: 1.098 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.001407/0.001407, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.512/1.512, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.93/2.93, allocations: 437.7 MB / 0.7117 GB, free: 7.109 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005449/0.0005452, allocations: 8 kB / 0.8722 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8166/0.8171, allocations: 153.8 MB / 1.022 GB, free: 20 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.000983/0.8182, allocations: 477.4 kB / 1.023 GB, free: 15.56 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001319/0.8195, allocations: 1.124 MB / 1.024 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.548e-05/0.8196, allocations: 0 / 1.024 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.898e-05/0.8196, allocations: 3.984 kB / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 8.121e-05/0.8197, allocations: 15.86 kB / 1.024 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004317/0.8201, allocations: 119.5 kB / 1.024 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001158/0.8202, allocations: 103.8 kB / 1.024 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.639e-05/0.8204, allocations: 20.16 kB / 1.024 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.473e-05/0.8204, allocations: 43.89 kB / 1.024 GB, free: 14.12 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 7.747e-05/0.8205, allocations: 35.83 kB / 1.024 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 2.254e-05/0.8206, allocations: 8 kB / 1.024 GB, free: 14.07 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.353e-05/0.8206, allocations: 15.98 kB / 1.024 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.201e-05/0.8207, allocations: 11.92 kB / 1.024 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.821e-05/0.8207, allocations: 45.7 kB / 1.024 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001218/0.8208, allocations: 75.81 kB / 1.024 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.8209, allocations: 0 / 1.024 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.283e-06/0.8209, allocations: 0 / 1.024 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.099e-06/0.8209, allocations: 3.938 kB / 1.024 GB, free: 13.92 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.0005036/0.8214, allocations: 410.7 kB / 1.025 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.8214, allocations: 8.562 kB / 1.025 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.576e-05/0.8215, allocations: 15.91 kB / 1.025 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001069/0.8216, allocations: 174.9 kB / 1.025 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.999e-05/0.8216, allocations: 4 kB / 1.025 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.245e-05/0.8216, allocations: 8 kB / 1.025 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002015/0.8219, allocations: 81.59 kB / 1.025 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.8219, allocations: 3.984 kB / 1.025 GB, free: 13.13 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.8219, allocations: 4 kB / 1.025 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.8219, allocations: 8 kB / 1.025 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001818/0.8221, allocations: 55.89 kB / 1.025 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005092/0.8226, allocations: 344.7 kB / 1.026 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001618/0.8228, allocations: 58.55 kB / 1.026 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001077/0.8229, allocations: 48.98 kB / 1.026 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.097e-05/0.8229, allocations: 0 / 1.026 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002354/0.8232, allocations: 91.36 kB / 1.026 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.593e-06/0.8232, allocations: 0 / 1.026 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.0004447/0.8236, allocations: 165.5 kB / 1.026 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.392e-05/0.8237, allocations: 59.33 kB / 1.026 GB, free: 12.22 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.722e-05/0.8238, allocations: 121.8 kB / 1.026 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.477e-05/0.8238, allocations: 29.7 kB / 1.026 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.422e-05/0.8239, allocations: 104 kB / 1.026 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.026e-05/0.8239, allocations: 11.81 kB / 1.026 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.399e-05/0.8239, allocations: 4 kB / 1.026 GB, free: 11.93 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.613e-05/0.824, allocations: 322.8 kB / 1.026 GB, free: 11.61 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001494/0.8242, allocations: 51.97 kB / 1.027 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001771/0.8244, allocations: 105.1 kB / 1.027 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001647/0.8245, allocations: 89.67 kB / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.8246, allocations: 0 / 1.027 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004259/0.825, allocations: 219.1 kB / 1.027 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.581e-05/0.825, allocations: 41.84 kB / 1.027 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.8251, allocations: 4 kB / 1.027 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.226e-05/0.8251, allocations: 0 / 1.027 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.8252, allocations: 23.92 kB / 1.027 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.267e-06/0.8252, allocations: 4.312 kB / 1.027 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002197/0.8254, allocations: 55.75 kB / 1.027 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.41e-05/0.8255, allocations: 11.98 kB / 1.027 GB, free: 10.97 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 ($PRE.triSam1.y,triSam1.y,$PRE.triSam.y,triSam.y,$whenCondition3,$PRE.booPul.y,booPul.y,$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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.474e-05/0.8256, allocations: 123.1 kB / 1.027 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.564e-05/0.8256, allocations: 7.906 kB / 1.027 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00031/0.8259, allocations: 145.9 kB / 1.027 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-06/0.8259, allocations: 0 / 1.027 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.8259, allocations: 4 kB / 1.027 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.8259, allocations: 0 / 1.027 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004356/0.8264, allocations: 382.5 kB / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.8264, allocations: 0 / 1.028 GB, free: 10.25 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.147e-05/0.8265, allocations: 15.98 kB / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.8265, allocations: 0 / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.848e-06/0.8265, allocations: 4 kB / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/0.8265, allocations: 3.984 kB / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.8265, allocations: 0 / 1.028 GB, free: 10.23 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003139/0.8268, allocations: 235.4 kB / 1.028 GB, free: 9.98 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.503e-05/0.8269, allocations: 77.11 kB / 1.028 GB, free: 9.887 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.704e-05/0.8269, allocations: 0 / 1.028 GB, free: 9.887 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.432e-05/0.827, allocations: 15.98 kB / 1.028 GB, free: 9.871 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.524e-05/0.827, allocations: 11.98 kB / 1.028 GB, free: 9.859 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.413e-06/0.8271, allocations: 3.938 kB / 1.028 GB, free: 9.855 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.538e-05/0.8271, allocations: 91.77 kB / 1.028 GB, free: 9.766 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8271, allocations: 4 kB / 1.028 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002794/0.8274, allocations: 27.89 kB / 1.028 GB, free: 9.734 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001687/0.8276, allocations: 115.2 kB / 1.028 GB, free: 9.613 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003908/0.828, allocations: 187.3 kB / 1.028 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.828, allocations: 0 / 1.028 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001208/0.8281, allocations: 48.28 kB / 1.028 GB, free: 9.371 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002921/0.8284, allocations: 17.66 kB / 1.029 GB, free: 9.355 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003704/0.8288, allocations: 192.9 kB / 1.029 GB, free: 9.141 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002301/0.829, allocations: 0.7004 MB / 1.029 GB, free: 8.414 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.191e-05/0.8291, allocations: 3.984 kB / 1.029 GB, free: 8.41 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.145e-05/0.8291, allocations: 11.44 kB / 1.029 GB, free: 8.398 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.8291, allocations: 0 / 1.029 GB, free: 8.398 MB / 0.7794 GB Notification: Performance of Templates: time 0.003745/0.8329, allocations: 1.265 MB / 1.031 GB, free: 7.148 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