Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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: "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_11_Buildings_Templates_Components_Controls_Validation_StatusEmulator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Templates.Components.Controls.Validation.StatusEmulator,fileNamePrefix="Buildings_11_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.004814/0.004814, allocations: 100.1 kB / 15.73 MB, free: 6.004 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.001322/0.001322, allocations: 193.3 kB / 16.67 MB, free: 5.93 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 4.168 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.847/2.847, allocations: 469.8 MB / 0.7425 GB, free: 7.297 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 67.89 kB / 1.065 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2673/0.2693, allocations: 159.1 MB / 1.22 GB, free: 14.34 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Templates.Components.Controls.Validation.StatusEmulator): time 0.002911/0.2722, allocations: 1.784 MB / 1.222 GB, free: 12.54 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001337/0.2736, allocations: 0.8299 MB / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.186e-05/0.2737, allocations: 4 kB / 1.223 GB, free: 11.7 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001113/0.2738, allocations: 19.81 kB / 1.223 GB, free: 11.68 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002164/0.274, allocations: 39.7 kB / 1.223 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004343/0.2745, allocations: 155.4 kB / 1.223 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003117/0.2748, allocations: 227.5 kB / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.2749, allocations: 37.39 kB / 1.223 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001361/0.2751, allocations: 75.81 kB / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001726/0.2753, allocations: 87.61 kB / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.516e-05/0.2753, allocations: 23.98 kB / 1.223 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 8.296e-05/0.2754, allocations: 27.98 kB / 1.223 GB, free: 11.02 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.92e-05/0.2755, allocations: 31.92 kB / 1.223 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001025/0.2756, allocations: 71.64 kB / 1.223 GB, free: 10.92 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002847/0.2759, allocations: 203.2 kB / 1.224 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.2759, allocations: 0 / 1.224 GB, free: 10.72 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.136e-06/0.2759, allocations: 7.984 kB / 1.224 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.658e-06/0.2759, allocations: 0 / 1.224 GB, free: 10.71 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.0007849/0.2767, allocations: 472.5 kB / 1.224 GB, free: 10.2 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/0.2767, allocations: 12.03 kB / 1.224 GB, free: 10.18 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.504e-05/0.2768, allocations: 38.73 kB / 1.224 GB, free: 10.14 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.303e-05/0.2768, allocations: 20.84 kB / 1.224 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003493/0.2772, allocations: 241.4 kB / 1.224 GB, free: 9.844 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.801e-05/0.2772, allocations: 8.375 kB / 1.224 GB, free: 9.836 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.522e-05/0.2773, allocations: 8.375 kB / 1.224 GB, free: 9.828 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001733/0.2775, allocations: 93.78 kB / 1.225 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.2775, allocations: 0 / 1.225 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.928e-06/0.2775, allocations: 0 / 1.225 GB, free: 9.73 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.994e-05/0.2775, allocations: 7.938 kB / 1.225 GB, free: 9.723 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001355/0.2777, allocations: 59.95 kB / 1.225 GB, free: 9.664 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000653/0.2783, allocations: 448.4 kB / 1.225 GB, free: 9.176 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001755/0.2785, allocations: 94.5 kB / 1.225 GB, free: 9.074 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.857e-05/0.2786, allocations: 28.89 kB / 1.225 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 9.858e-06/0.2786, allocations: 0 / 1.225 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001493/0.2787, allocations: 83.38 kB / 1.225 GB, free: 8.949 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=9): time 1.373e-06/0.2787, allocations: 0 / 1.225 GB, free: 8.949 MB / 0.9825 GB Notification: Performance of matching and sorting (n=9): time 0.0002982/0.2791, allocations: 133.5 kB / 1.225 GB, free: 8.812 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.629e-05/0.2791, allocations: 67.33 kB / 1.225 GB, free: 8.734 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002266/0.2793, allocations: 175.3 kB / 1.226 GB, free: 8.551 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.8e-05/0.2794, allocations: 29.7 kB / 1.226 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.471e-05/0.2795, allocations: 108.1 kB / 1.226 GB, free: 8.406 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.575e-05/0.2795, allocations: 31.88 kB / 1.226 GB, free: 8.375 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.645e-05/0.2796, allocations: 41.7 kB / 1.226 GB, free: 8.328 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001405/0.2797, allocations: 322.8 kB / 1.226 GB, free: 8.004 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001251/0.2799, allocations: 59.91 kB / 1.226 GB, free: 7.945 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001325/0.28, allocations: 74.55 kB / 1.226 GB, free: 7.863 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002008/0.2802, allocations: 132.2 kB / 1.226 GB, free: 7.719 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.2802, allocations: 0 / 1.226 GB, free: 7.719 MB / 0.9825 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0003727/0.2806, allocations: 211.3 kB / 1.227 GB, free: 7.5 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.799e-05/0.2807, allocations: 37.75 kB / 1.227 GB, free: 7.457 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.918e-06/0.2807, allocations: 4 kB / 1.227 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.2807, allocations: 4 kB / 1.227 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000147/0.2808, allocations: 19.98 kB / 1.227 GB, free: 7.43 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.2809, allocations: 7.938 kB / 1.227 GB, free: 7.422 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000243/0.2811, allocations: 31.91 kB / 1.227 GB, free: 7.391 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.373e-05/0.2811, allocations: 12.45 kB / 1.227 GB, free: 7.379 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.000119/0.2813, allocations: 129.8 kB / 1.227 GB, free: 7.242 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.534e-05/0.2813, allocations: 15.91 kB / 1.227 GB, free: 7.227 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.487e-05/0.2813, allocations: 21.39 kB / 1.227 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.2814, allocations: 3.938 kB / 1.227 GB, free: 7.195 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.2814, allocations: 11.88 kB / 1.227 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.2814, allocations: 0 / 1.227 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002211/0.2816, allocations: 225.6 kB / 1.227 GB, free: 6.914 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.2816, allocations: 0 / 1.227 GB, free: 6.914 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.158e-05/0.2817, allocations: 11.98 kB / 1.227 GB, free: 6.902 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.2817, allocations: 0 / 1.227 GB, free: 6.902 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.677e-05/0.2817, allocations: 8 kB / 1.227 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.2817, allocations: 0 / 1.227 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.2817, allocations: 3.938 kB / 1.227 GB, free: 6.891 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000282/0.282, allocations: 168.9 kB / 1.227 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 8.407e-05/0.2821, allocations: 97.08 kB / 1.227 GB, free: 6.594 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.493e-05/0.2822, allocations: 4 kB / 1.227 GB, free: 6.59 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.255e-05/0.2822, allocations: 3.984 kB / 1.227 GB, free: 6.586 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.593e-05/0.2823, allocations: 11.94 kB / 1.227 GB, free: 6.574 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.405e-05/0.2823, allocations: 8.062 kB / 1.227 GB, free: 6.566 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001532/0.2825, allocations: 132.8 kB / 1.227 GB, free: 6.438 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2825, allocations: 0 / 1.227 GB, free: 6.438 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002488/0.2827, allocations: 35.89 kB / 1.227 GB, free: 6.402 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.0005968/0.2833, allocations: 0.7106 MB / 1.228 GB, free: 5.664 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000296/0.2836, allocations: 175.4 kB / 1.228 GB, free: 5.48 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.2837, allocations: 4 kB / 1.228 GB, free: 5.477 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 7.574e-05/0.2837, allocations: 39.92 kB / 1.228 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002737/0.284, allocations: 35.77 kB / 1.228 GB, free: 5.41 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002378/0.2864, allocations: 1.913 MB / 1.23 GB, free: 3.398 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003425/0.2868, allocations: 0.7119 MB / 1.231 GB, free: 2.66 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.493e-05/0.2868, allocations: 16.88 kB / 1.231 GB, free: 2.645 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.208e-05/0.2869, allocations: 43.36 kB / 1.231 GB, free: 2.602 MB / 0.9825 GB Notification: Performance of SimCode: time 2.3e-07/0.2869, allocations: 0 / 1.231 GB, free: 2.602 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02553/0.3124, allocations: 3.643 MB / 1.235 GB, free: 15.09 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.9/8.212, allocations: 7.844 kB / 1.235 GB, free: 15.08 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; mkfifo Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe ; head -c 1048576 < Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe >> ../files/Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Templates_Components_Controls_Validation_StatusEmulator.fmu > Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Templates_Components_Controls_Validation_StatusEmulator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Templates.Components.Controls.Validation.StatusEmulator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches