Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change.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.Logical.Validation.Change,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|change.u|change.y|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.Change,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|change.u|change.y|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001618/0.001618, allocations: 102.4 kB / 16.35 MB, free: 5.875 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.001732/0.001732, allocations: 191 kB / 17.29 MB, free: 5.516 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.431/1.431, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.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.511/2.511, allocations: 437.1 MB / 0.7112 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.00137, allocations: 63.94 kB / 0.8707 GB, free: 1.461 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3205/0.3218, allocations: 151.6 MB / 1.019 GB, free: 9.867 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.Change): time 0.002604/0.3245, allocations: 0.7585 MB / 1.02 GB, free: 9.102 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001596/0.3261, allocations: 1.149 MB / 1.021 GB, free: 7.938 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.547e-05/0.3262, allocations: 4 kB / 1.021 GB, free: 7.934 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.708e-05/0.3262, allocations: 3.938 kB / 1.021 GB, free: 7.93 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.062e-05/0.3264, allocations: 11.81 kB / 1.021 GB, free: 7.918 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005529/0.3269, allocations: 136.8 kB / 1.021 GB, free: 7.789 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002121/0.3272, allocations: 119.8 kB / 1.021 GB, free: 7.672 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.3273, allocations: 23.89 kB / 1.021 GB, free: 7.648 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001038/0.3274, allocations: 51.89 kB / 1.021 GB, free: 7.598 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001038/0.3275, allocations: 47.81 kB / 1.021 GB, free: 7.551 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.579e-05/0.3275, allocations: 8 kB / 1.021 GB, free: 7.543 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 7.275e-05/0.3276, allocations: 16 kB / 1.021 GB, free: 7.527 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.678e-05/0.3277, allocations: 15.98 kB / 1.021 GB, free: 7.512 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 7.755e-05/0.3277, allocations: 43.83 kB / 1.021 GB, free: 7.469 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001882/0.3279, allocations: 111.6 kB / 1.021 GB, free: 7.359 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.328, allocations: 4 kB / 1.021 GB, free: 7.355 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.733e-06/0.328, allocations: 4 kB / 1.021 GB, free: 7.352 MB / 0.795 GB Notification: Performance of Transformations before backend: time 6.332e-06/0.328, allocations: 0 / 1.021 GB, free: 7.352 MB / 0.795 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.0005901/0.3286, allocations: 409 kB / 1.022 GB, free: 6.895 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.888e-05/0.3286, allocations: 12.02 kB / 1.022 GB, free: 6.883 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.126e-05/0.3287, allocations: 12.84 kB / 1.022 GB, free: 6.871 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001222/0.3288, allocations: 164.3 kB / 1.022 GB, free: 6.672 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.493e-05/0.3288, allocations: 4.375 kB / 1.022 GB, free: 6.668 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.665e-05/0.3288, allocations: 12.38 kB / 1.022 GB, free: 6.656 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001927/0.329, allocations: 66.22 kB / 1.022 GB, free: 6.586 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.3291, allocations: 192 / 1.022 GB, free: 6.586 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.443e-05/0.3291, allocations: 7.938 kB / 1.022 GB, free: 6.578 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.3291, allocations: 0 / 1.022 GB, free: 6.578 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001687/0.3293, allocations: 51.81 kB / 1.022 GB, free: 6.527 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005248/0.3298, allocations: 324.7 kB / 1.022 GB, free: 6.16 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001913/0.33, allocations: 70.48 kB / 1.022 GB, free: 6.082 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.776e-05/0.3301, allocations: 28.97 kB / 1.022 GB, free: 6.051 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.569e-05/0.3301, allocations: 3.984 kB / 1.022 GB, free: 6.047 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002316/0.3304, allocations: 99.27 kB / 1.022 GB, free: 5.938 MB / 0.795 GB Notification: Performance of pre-optimization done (n=8): time 1.503e-06/0.3304, allocations: 0 / 1.022 GB, free: 5.938 MB / 0.795 GB Notification: Performance of matching and sorting (n=8): time 0.0004374/0.3308, allocations: 137.6 kB / 1.023 GB, free: 5.797 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.496e-05/0.3309, allocations: 59.34 kB / 1.023 GB, free: 5.727 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.485e-05/0.331, allocations: 125.7 kB / 1.023 GB, free: 5.594 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.576e-05/0.331, allocations: 33.7 kB / 1.023 GB, free: 5.555 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 7.177e-05/0.3311, allocations: 92.14 kB / 1.023 GB, free: 5.461 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.107e-05/0.3311, allocations: 11.8 kB / 1.023 GB, free: 5.449 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.954e-05/0.3312, allocations: 37.7 kB / 1.023 GB, free: 5.406 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001219/0.3313, allocations: 322.8 kB / 1.023 GB, free: 5.082 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001577/0.3315, allocations: 51.97 kB / 1.023 GB, free: 5.031 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001694/0.3317, allocations: 92.25 kB / 1.023 GB, free: 4.926 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002583/0.3319, allocations: 137.8 kB / 1.023 GB, free: 4.77 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.3319, allocations: 0 / 1.023 GB, free: 4.77 MB / 0.795 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000409/0.3324, allocations: 215.1 kB / 1.024 GB, free: 4.547 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 4.128e-05/0.3324, allocations: 41.69 kB / 1.024 GB, free: 4.5 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.3324, allocations: 0 / 1.024 GB, free: 4.5 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.3324, allocations: 4 kB / 1.024 GB, free: 4.496 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.846e-05/0.3325, allocations: 11.98 kB / 1.024 GB, free: 4.484 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.3325, allocations: 384 / 1.024 GB, free: 4.484 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001898/0.3327, allocations: 43.94 kB / 1.024 GB, free: 4.441 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.745e-05/0.3328, allocations: 15.98 kB / 1.024 GB, free: 4.426 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 10 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,$whenCondition2,change.y,change.u,$PRE.change.u,booPul.y,$PRE.booPul.y,$whenCondition3) * 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.0001153/0.3329, allocations: 126.4 kB / 1.024 GB, free: 4.293 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.14e-05/0.3329, allocations: 3.938 kB / 1.024 GB, free: 4.289 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.209e-05/0.333, allocations: 12.38 kB / 1.024 GB, free: 4.277 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.333, allocations: 3.984 kB / 1.024 GB, free: 4.273 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.333, allocations: 0 / 1.024 GB, free: 4.273 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.333, allocations: 0 / 1.024 GB, free: 4.273 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004464/0.3334, allocations: 378.3 kB / 1.024 GB, free: 3.848 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.3334, allocations: 4 kB / 1.024 GB, free: 3.844 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.88e-05/0.3335, allocations: 7.984 kB / 1.024 GB, free: 3.836 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.3335, allocations: 0 / 1.024 GB, free: 3.836 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.909e-06/0.3335, allocations: 0 / 1.024 GB, free: 3.836 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.3335, allocations: 4 kB / 1.024 GB, free: 3.832 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3335, allocations: 0 / 1.024 GB, free: 3.832 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000273/0.3338, allocations: 211.4 kB / 1.025 GB, free: 3.609 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.119e-05/0.3339, allocations: 88.94 kB / 1.025 GB, free: 3.504 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.79e-05/0.3339, allocations: 4 kB / 1.025 GB, free: 3.5 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.234e-05/0.334, allocations: 11.98 kB / 1.025 GB, free: 3.488 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.214e-05/0.334, allocations: 4 kB / 1.025 GB, free: 3.484 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.885e-06/0.334, allocations: 3.938 kB / 1.025 GB, free: 3.48 MB / 0.795 GB Notification: Performance of sorting global known variables: time 5.541e-05/0.3341, allocations: 95.27 kB / 1.025 GB, free: 3.387 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3341, allocations: 0 / 1.025 GB, free: 3.387 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002551/0.3344, allocations: 28 kB / 1.025 GB, free: 3.359 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (change.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul.y,change.u,triggeredSampler.y) * Number of discrete states: 1 (change.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * 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.0001725/0.3346, allocations: 111.2 kB / 1.025 GB, free: 3.242 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0003666/0.3349, allocations: 175.5 kB / 1.025 GB, free: 3.059 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3349, allocations: 4.062 kB / 1.025 GB, free: 3.055 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001127/0.3351, allocations: 39.92 kB / 1.025 GB, free: 3.016 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002745/0.3353, allocations: 13.53 kB / 1.025 GB, free: 3.004 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003432/0.3357, allocations: 162.7 kB / 1.025 GB, free: 2.816 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002347/0.3359, allocations: 0.6885 MB / 1.026 GB, free: 2.102 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 3.21e-05/0.336, allocations: 11.86 kB / 1.026 GB, free: 2.09 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.656e-05/0.336, allocations: 11.44 kB / 1.026 GB, free: 2.078 MB / 0.795 GB Notification: Performance of SimCode: time 2.2e-07/0.336, allocations: 3.938 kB / 1.026 GB, free: 2.074 MB / 0.795 GB Notification: Performance of Templates: time 0.004018/0.34, allocations: 1.445 MB / 1.027 GB, free: 0.6445 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_Change.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.Change.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches