Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator",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.01013/0.01013, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.002146/0.002146, allocations: 202.3 kB / 16.68 MB, free: 5.969 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.371/1.371, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.905/2.905, allocations: 469.4 MB / 0.7421 GB, free: 7.574 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001405/0.001405, allocations: 59.91 kB / 1.064 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3395/0.3409, allocations: 159.1 MB / 1.22 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.003375/0.3443, allocations: 1.785 MB / 1.221 GB, free: 12.86 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001668/0.346, allocations: 0.826 MB / 1.222 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001293/0.3462, allocations: 4 kB / 1.222 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001368/0.3464, allocations: 19.8 kB / 1.222 GB, free: 12 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0003059/0.3467, allocations: 42.22 kB / 1.222 GB, free: 11.96 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.000571/0.3472, allocations: 154.3 kB / 1.222 GB, free: 11.81 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003181/0.3476, allocations: 223.5 kB / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.3477, allocations: 49.38 kB / 1.223 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001493/0.3479, allocations: 71.77 kB / 1.223 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002375/0.3481, allocations: 83.72 kB / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.007e-05/0.3482, allocations: 16 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.855e-05/0.3483, allocations: 31.92 kB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.88e-05/0.3483, allocations: 35.91 kB / 1.223 GB, free: 11.31 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 9.329e-05/0.3484, allocations: 75.58 kB / 1.223 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002599/0.3487, allocations: 203.3 kB / 1.223 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3487, allocations: 7.938 kB / 1.223 GB, free: 11.03 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.322e-06/0.3487, allocations: 0 / 1.223 GB, free: 11.03 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.462e-06/0.3487, allocations: 0 / 1.223 GB, free: 11.03 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0007595/0.3495, allocations: 472.5 kB / 1.224 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.3496, allocations: 8.031 kB / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.318e-05/0.3496, allocations: 42.73 kB / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.084e-05/0.3497, allocations: 16.84 kB / 1.224 GB, free: 10.44 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003508/0.35, allocations: 240.8 kB / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/0.3501, allocations: 8.375 kB / 1.224 GB, free: 10.16 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.102e-05/0.3501, allocations: 16.36 kB / 1.224 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001733/0.3503, allocations: 85.78 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.3503, allocations: 0 / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.3503, allocations: 4 kB / 1.224 GB, free: 10.05 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.638e-05/0.3504, allocations: 11.97 kB / 1.224 GB, free: 10.04 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001334/0.3505, allocations: 63.84 kB / 1.224 GB, free: 9.973 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006348/0.3511, allocations: 440.5 kB / 1.225 GB, free: 9.492 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001541/0.3513, allocations: 86.52 kB / 1.225 GB, free: 9.398 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.223e-05/0.3514, allocations: 28.89 kB / 1.225 GB, free: 9.367 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.115e-05/0.3514, allocations: 4 kB / 1.225 GB, free: 9.363 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001408/0.3515, allocations: 91.31 kB / 1.225 GB, free: 9.262 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=9): time 1.262e-06/0.3515, allocations: 0 / 1.225 GB, free: 9.262 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9): time 0.0002904/0.3518, allocations: 137.5 kB / 1.225 GB, free: 9.121 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.113e-05/0.3519, allocations: 55.34 kB / 1.225 GB, free: 9.055 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002054/0.3521, allocations: 171.3 kB / 1.225 GB, free: 8.875 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.098e-05/0.3521, allocations: 33.7 kB / 1.225 GB, free: 8.836 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.363e-05/0.3522, allocations: 112.2 kB / 1.225 GB, free: 8.723 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.318e-05/0.3523, allocations: 31.88 kB / 1.225 GB, free: 8.691 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.039e-05/0.3524, allocations: 41.7 kB / 1.225 GB, free: 8.645 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.3525, allocations: 326.8 kB / 1.226 GB, free: 8.316 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001137/0.3526, allocations: 47.97 kB / 1.226 GB, free: 8.27 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001263/0.3527, allocations: 78.55 kB / 1.226 GB, free: 8.184 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001843/0.3529, allocations: 140.1 kB / 1.226 GB, free: 8.031 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3529, allocations: 0 / 1.226 GB, free: 8.031 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003556/0.3533, allocations: 207.2 kB / 1.226 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.746e-05/0.3533, allocations: 38.94 kB / 1.226 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.3534, allocations: 0 / 1.226 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.3534, allocations: 0 / 1.226 GB, free: 7.773 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001585/0.3535, allocations: 23.98 kB / 1.226 GB, free: 7.75 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.055e-05/0.3536, allocations: 7.875 kB / 1.226 GB, free: 7.742 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002411/0.3538, allocations: 39.97 kB / 1.226 GB, free: 7.703 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.324e-05/0.3538, allocations: 7.984 kB / 1.226 GB, free: 7.695 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$whenCondition2,sta.y1_actual,y1.y,$PRE.y1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 11 * 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.000111/0.354, allocations: 126.8 kB / 1.226 GB, free: 7.562 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.568e-05/0.354, allocations: 15.91 kB / 1.226 GB, free: 7.547 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.29e-05/0.354, allocations: 17.39 kB / 1.226 GB, free: 7.523 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.354, allocations: 0 / 1.226 GB, free: 7.523 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.3541, allocations: 11.88 kB / 1.226 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.3541, allocations: 0 / 1.226 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002002/0.3543, allocations: 233.6 kB / 1.227 GB, free: 7.234 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3543, allocations: 0 / 1.227 GB, free: 7.234 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.588e-05/0.3544, allocations: 11.98 kB / 1.227 GB, free: 7.223 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.285e-06/0.3544, allocations: 3.938 kB / 1.227 GB, free: 7.219 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.315e-05/0.3544, allocations: 0 / 1.227 GB, free: 7.219 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.654e-06/0.3544, allocations: 0 / 1.227 GB, free: 7.219 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.3544, allocations: 11.88 kB / 1.227 GB, free: 7.207 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00026/0.3547, allocations: 168.9 kB / 1.227 GB, free: 7.023 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.703e-05/0.3548, allocations: 97.14 kB / 1.227 GB, free: 6.91 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.502e-05/0.3548, allocations: 4 kB / 1.227 GB, free: 6.906 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.329e-05/0.3549, allocations: 7.984 kB / 1.227 GB, free: 6.898 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.175e-05/0.3549, allocations: 7.938 kB / 1.227 GB, free: 6.891 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.176e-06/0.355, allocations: 7.984 kB / 1.227 GB, free: 6.883 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.000143/0.3551, allocations: 128.9 kB / 1.227 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3551, allocations: 0 / 1.227 GB, free: 6.758 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002482/0.3554, allocations: 39.89 kB / 1.227 GB, free: 6.719 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (sta.fil.s[1],sta.fil.s[2]) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,y1.y,sta.y1_actual) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0005438/0.3559, allocations: 0.71 MB / 1.228 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003075/0.3562, allocations: 171.5 kB / 1.228 GB, free: 5.801 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.3563, allocations: 192 / 1.228 GB, free: 5.801 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 7.964e-05/0.3563, allocations: 47.86 kB / 1.228 GB, free: 5.754 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002876/0.3566, allocations: 38.08 kB / 1.228 GB, free: 5.719 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002141/0.3588, allocations: 1.895 MB / 1.23 GB, free: 3.73 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002522/0.359, allocations: 0.7158 MB / 1.231 GB, free: 2.988 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.714e-05/0.3591, allocations: 16.86 kB / 1.231 GB, free: 2.973 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.807e-05/0.3592, allocations: 39.42 kB / 1.231 GB, free: 2.934 MB / 0.9825 GB Notification: Performance of SimCode: time 4.71e-07/0.3592, allocations: 0 / 1.231 GB, free: 2.934 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02302/0.3822, allocations: 3.662 MB / 1.234 GB, free: 15.43 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.886/8.268, allocations: 10.81 kB / 1.234 GB, free: 15.42 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv --start-time 0 --stop-time 50 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 Buildings_latest_Buildings_Templates_Components_Controls_Validation_StatusEmulator.fmu > Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Templates.Components.Controls.Validation.StatusEmulator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches