Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007672/0.0007672, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001077/0.001077, allocations: 170.3 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8706/0.8706, allocations: 177.1 MB / 202.8 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.695/1.695, allocations: 377.8 MB / 0.6221 GB, free: 8.641 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_12_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_12_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 0.9809 GB, free: 2.582 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.929e-05/2.107e-05, allocations: 2.281 kB / 0.9809 GB, free: 2.578 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002451/0.002472, allocations: 1.769 MB / 0.9827 GB, free: 0.8008 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0009688/0.003441, allocations: 0.6853 MB / 0.9833 GB, free: 116 kB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.756e-05/0.003538, allocations: 7.938 kB / 0.9833 GB, free: 108 kB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 0.0001395/0.003678, allocations: 35.61 kB / 0.9834 GB, free: 72 kB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 5.682e-05/0.003735, allocations: 23.78 kB / 0.9834 GB, free: 48 kB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.000682/0.004416, allocations: 265.5 kB / 0.9836 GB, free: 15.79 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0003924/0.004809, allocations: 419.2 kB / 0.984 GB, free: 15.38 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002704/0.005079, allocations: 177.7 kB / 0.9842 GB, free: 15.21 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001812/0.00526, allocations: 207.7 kB / 0.9844 GB, free: 15 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001544/0.005415, allocations: 99.72 kB / 0.9845 GB, free: 14.91 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 4.232e-05/0.005457, allocations: 40 kB / 0.9845 GB, free: 14.87 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 9.638e-05/0.005554, allocations: 59.92 kB / 0.9846 GB, free: 14.81 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 7.13e-05/0.005625, allocations: 71.8 kB / 0.9847 GB, free: 14.74 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 9.413e-05/0.005719, allocations: 103.8 kB / 0.9848 GB, free: 14.64 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0003612/0.00608, allocations: 438.8 kB / 0.9852 GB, free: 14.21 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.006084, allocations: 7.875 kB / 0.9852 GB, free: 14.2 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.523e-06/0.006086, allocations: 0 / 0.9852 GB, free: 14.2 MB / 0.948 GB Notification: Performance of Transformations before backend: time 6.232e-06/0.006092, allocations: 0 / 0.9852 GB, free: 14.2 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0006248/0.006717, allocations: 494.6 kB / 0.9857 GB, free: 13.68 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.047e-05/0.006757, allocations: 12.03 kB / 0.9857 GB, free: 13.66 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.819e-05/0.006806, allocations: 66.72 kB / 0.9857 GB, free: 13.59 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001889/0.006995, allocations: 36.78 kB / 0.9858 GB, free: 13.55 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003009/0.007295, allocations: 205.4 kB / 0.986 GB, free: 13.33 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.438e-05/0.00733, allocations: 28.86 kB / 0.986 GB, free: 13.3 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.342e-05/0.007363, allocations: 32.38 kB / 0.986 GB, free: 13.27 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000328/0.007691, allocations: 271.3 kB / 0.9863 GB, free: 13 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.408e-06/0.007701, allocations: 192 / 0.9863 GB, free: 13 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.866e-05/0.007719, allocations: 8.375 kB / 0.9863 GB, free: 12.99 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.007727, allocations: 12.12 kB / 0.9863 GB, free: 12.98 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002243/0.007951, allocations: 181.9 kB / 0.9865 GB, free: 12.8 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008319/0.008783, allocations: 0.7372 MB / 0.9872 GB, free: 12.02 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002354/0.009019, allocations: 166.7 kB / 0.9874 GB, free: 11.84 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.694e-05/0.009106, allocations: 76.83 kB / 0.9874 GB, free: 11.77 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.169e-05/0.009127, allocations: 4 kB / 0.9874 GB, free: 11.76 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001937/0.009321, allocations: 138.4 kB / 0.9876 GB, free: 11.61 MB / 0.948 GB Notification: Performance of pre-optimization done (n=27): time 2.004e-06/0.009323, allocations: 0 / 0.9876 GB, free: 11.61 MB / 0.948 GB Notification: Performance of matching and sorting (n=27): time 0.0003655/0.009689, allocations: 272.9 kB / 0.9878 GB, free: 11.34 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.931e-05/0.009728, allocations: 59.41 kB / 0.9879 GB, free: 11.27 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/0.009832, allocations: 164.3 kB / 0.988 GB, free: 11.11 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 2.884e-05/0.009861, allocations: 41.7 kB / 0.9881 GB, free: 11.06 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 7.576e-05/0.009936, allocations: 140.8 kB / 0.9882 GB, free: 10.91 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 3.946e-05/0.009976, allocations: 71.44 kB / 0.9883 GB, free: 10.84 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.636e-05/0.01006, allocations: 85.67 kB / 0.9884 GB, free: 10.75 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 9.136e-05/0.01015, allocations: 330.8 kB / 0.9887 GB, free: 10.42 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001484/0.0103, allocations: 125.7 kB / 0.9888 GB, free: 10.29 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001557/0.01046, allocations: 193.5 kB / 0.989 GB, free: 10.07 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002237/0.01068, allocations: 251.1 kB / 0.9892 GB, free: 9.797 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.01068, allocations: 0 / 0.9892 GB, free: 9.797 MB / 0.948 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003782/0.01106, allocations: 385.8 kB / 0.9896 GB, free: 9.402 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 4.259e-05/0.0111, allocations: 37.69 kB / 0.9896 GB, free: 9.359 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.534e-06/0.01111, allocations: 4.219 kB / 0.9896 GB, free: 9.355 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.519e-05/0.01113, allocations: 7.938 kB / 0.9896 GB, free: 9.348 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.773e-05/0.01123, allocations: 31.92 kB / 0.9897 GB, free: 9.316 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.933e-06/0.01123, allocations: 4 kB / 0.9897 GB, free: 9.312 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001358/0.01137, allocations: 47.8 kB / 0.9897 GB, free: 9.266 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.099e-05/0.01139, allocations: 19.98 kB / 0.9897 GB, free: 9.246 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 33 ($PRE.sta.offToOn.enableFire,$PRE.sta.onToOff.enableFire,$whenCondition1,$whenCondition2,sta.onToOff.t_start,$PRE.sta.onToOff.t_start,sta.onToOff.fire,sta.onToOff.enableFire,sta.on.active,sta.on.oldActive,$PRE.sta.on.oldActive,sta.on.newActive,$PRE.sta.on.newActive,sta.on.localActive,$PRE.sta.on.localActive,sta.offToOn.t_start,$PRE.sta.offToOn.t_start,sta.offToOn.fire,sta.offToOn.enableFire,sta.off.active,sta.off.oldActive,$PRE.sta.off.oldActive,sta.off.newActive,$PRE.sta.off.newActive,sta.off.localActive,$PRE.sta.off.localActive,sta.stateGraphRoot.activeSteps,y1.y,$PRE.y1.y,$whenCondition3,$whenCondition4,sta.stateGraphRoot.resume,sta.stateGraphRoot.suspend) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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.0001207/0.01151, allocations: 169.8 kB / 0.9899 GB, free: 9.074 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.658e-05/0.01153, allocations: 23.83 kB / 0.9899 GB, free: 9.051 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.477e-05/0.01156, allocations: 21.91 kB / 0.99 GB, free: 9.031 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.01156, allocations: 7.938 kB / 0.99 GB, free: 9.023 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.01157, allocations: 0 / 0.99 GB, free: 9.023 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.01157, allocations: 0 / 0.99 GB, free: 9.023 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005739/0.01215, allocations: 0.5806 MB / 0.9905 GB, free: 8.391 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.305e-06/0.01215, allocations: 0 / 0.9905 GB, free: 8.391 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.893e-05/0.0122, allocations: 19.92 kB / 0.9905 GB, free: 8.371 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.0122, allocations: 4 kB / 0.9905 GB, free: 8.367 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.258e-05/0.01222, allocations: 8 kB / 0.9906 GB, free: 8.359 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.01222, allocations: 4 kB / 0.9906 GB, free: 8.355 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.01222, allocations: 3.984 kB / 0.9906 GB, free: 8.352 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002235/0.01244, allocations: 308 kB / 0.9909 GB, free: 8.035 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.357e-05/0.01246, allocations: 19.84 kB / 0.9909 GB, free: 8.016 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.924e-05/0.01248, allocations: 4 kB / 0.9909 GB, free: 8.012 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.191e-05/0.01253, allocations: 11.98 kB / 0.9909 GB, free: 8 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.03e-05/0.01259, allocations: 23.97 kB / 0.9909 GB, free: 7.977 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.478e-06/0.0126, allocations: 7.984 kB / 0.9909 GB, free: 7.969 MB / 0.948 GB Notification: Performance of sorting global known variables: time 4.521e-05/0.01264, allocations: 105.3 kB / 0.991 GB, free: 7.867 MB / 0.948 GB Notification: Performance of sort global known variables: time 6.1e-08/0.01264, allocations: 0 / 0.991 GB, free: 7.867 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002114/0.01285, allocations: 63.89 kB / 0.9911 GB, free: 7.805 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 20 (sta.offToOn.enableFire,sta.onToOff.enableFire,sta.on.active,sta.off.active,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,y1.y,sta.stateGraphRoot.activeSteps,sta.off.localActive,sta.off.newActive,sta.off.oldActive,sta.offToOn.fire,sta.offToOn.t_start,sta.on.localActive,sta.on.newActive,sta.on.oldActive,sta.onToOff.fire,sta.onToOff.t_start) * Number of discrete states: 2 (sta.off.newActive,sta.on.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (27): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0004703/0.01332, allocations: 0.8604 MB / 0.9919 GB, free: 6.918 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0003272/0.01365, allocations: 306.7 kB / 0.9922 GB, free: 6.602 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.01365, allocations: 0 / 0.9922 GB, free: 6.602 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 9.384e-05/0.01375, allocations: 95.81 kB / 0.9923 GB, free: 6.508 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002404/0.01399, allocations: 32.42 kB / 0.9923 GB, free: 6.477 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001923/0.01591, allocations: 2.495 MB / 0.9948 GB, free: 3.828 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.401e-05/0.016, allocations: 137.6 kB / 0.9949 GB, free: 3.672 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 6.061e-05/0.01607, allocations: 21.94 kB / 0.9949 GB, free: 3.645 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.272e-05/0.01615, allocations: 64.47 kB / 0.995 GB, free: 3.582 MB / 0.948 GB Notification: Performance of SimCode: time 9.62e-07/0.01615, allocations: 8 kB / 0.995 GB, free: 3.574 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01766/0.03381, allocations: 5.569 MB / 1 GB, free: 14.18 MB / 0.9636 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.542/6.576, allocations: 2.438 kB / 1 GB, free: 14.18 MB / 0.9636 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv --start-time 0 --stop-time 50 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.02 Buildings_12_Buildings_Templates_Components_Controls_Validation_StatusEmulator.fmu > Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable sta.y1 in file Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv. Warning: Get data of variable sta.y1 from file Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv failed! Error: Could not read variable sta.y1_actual in file Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv. Warning: Get data of variable sta.y1_actual from file Buildings_12_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.661667423322797]