Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Controls.OBC.CDL.Logical.Sources.Validation.Pulse,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Pulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Pulse",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.001194/0.001195, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001343/0.001343, allocations: 191 kB / 16.53 MB, free: 6.391 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.329/1.329, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.6/2.6, allocations: 469.4 MB / 0.742 GB, free: 7.75 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 63.06 kB / 0.9083 GB, free: 34.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2691/0.2703, allocations: 159.1 MB / 1.064 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse): time 0.002179/0.2725, allocations: 1.166 MB / 1.065 GB, free: 13.34 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002363/0.2749, allocations: 2.182 MB / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001393/0.2751, allocations: 4 kB / 1.067 GB, free: 11.14 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 5.545e-05/0.2752, allocations: 19.69 kB / 1.067 GB, free: 11.12 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002017/0.2754, allocations: 75.27 kB / 1.067 GB, free: 11.05 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.002752/0.2781, allocations: 1.381 MB / 1.068 GB, free: 9.711 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001259/0.2794, allocations: 1.287 MB / 1.07 GB, free: 8.422 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 7.446e-05/0.2795, allocations: 20.75 kB / 1.07 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000631/0.2801, allocations: 479.2 kB / 1.07 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004165/0.2806, allocations: 343.1 kB / 1.07 GB, free: 7.598 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0002898/0.2808, allocations: 108 kB / 1.071 GB, free: 7.492 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002901/0.2811, allocations: 116 kB / 1.071 GB, free: 7.379 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.345e-05/0.2812, allocations: 63.75 kB / 1.071 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0004742/0.2817, allocations: 391 kB / 1.071 GB, free: 6.934 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0009593/0.2827, allocations: 0.9704 MB / 1.072 GB, free: 5.961 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.2827, allocations: 0 / 1.072 GB, free: 5.961 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.352e-06/0.2827, allocations: 0 / 1.072 GB, free: 5.961 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.599e-05/0.2827, allocations: 0 / 1.072 GB, free: 5.961 MB / 0.8262 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.001413/0.2841, allocations: 1.172 MB / 1.073 GB, free: 4.637 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.2842, allocations: 12.03 kB / 1.073 GB, free: 4.625 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.637e-05/0.2842, allocations: 42.72 kB / 1.073 GB, free: 4.574 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002251/0.2845, allocations: 64.66 kB / 1.073 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00015/0.2846, allocations: 216.4 kB / 1.074 GB, free: 4.266 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.992e-05/0.2847, allocations: 36.36 kB / 1.074 GB, free: 4.23 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001586/0.2848, allocations: 72.36 kB / 1.074 GB, free: 4.16 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002529/0.2851, allocations: 208 kB / 1.074 GB, free: 3.906 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.236e-06/0.2851, allocations: 3.938 kB / 1.074 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.981e-05/0.2851, allocations: 15.98 kB / 1.074 GB, free: 3.887 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.2851, allocations: 4 kB / 1.074 GB, free: 3.883 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001075/0.2853, allocations: 63.78 kB / 1.074 GB, free: 3.82 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008433/0.2861, allocations: 0.8522 MB / 1.075 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002568/0.2864, allocations: 335.2 kB / 1.075 GB, free: 2.41 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001413/0.2865, allocations: 136.9 kB / 1.075 GB, free: 2.23 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.325e-05/0.2865, allocations: 7.938 kB / 1.075 GB, free: 2.223 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005255/0.2871, allocations: 462.9 kB / 1.076 GB, free: 1.703 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=45): time 2.435e-06/0.2871, allocations: 0 / 1.076 GB, free: 1.703 MB / 0.8262 GB Notification: Performance of matching and sorting (n=45): time 0.0009675/0.2881, allocations: 0.5654 MB / 1.076 GB, free: 1.133 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001671/0.2882, allocations: 435.2 kB / 1.077 GB, free: 0.6094 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002553/0.2885, allocations: 292.3 kB / 1.077 GB, free: 320 kB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001367/0.2886, allocations: 69.69 kB / 1.077 GB, free: 244 kB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001767/0.2888, allocations: 165.3 kB / 1.077 GB, free: 72 kB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 9.593e-05/0.2889, allocations: 98.89 kB / 1.077 GB, free: 15.97 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004449/0.2894, allocations: 274 kB / 1.077 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.2895, allocations: 350.8 kB / 1.078 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008053/0.2903, allocations: 421.3 kB / 1.078 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009302/0.2912, allocations: 0.7027 MB / 1.079 GB, free: 14.1 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001249/0.2925, allocations: 1.199 MB / 1.08 GB, free: 12.67 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-05/0.2925, allocations: 4 kB / 1.08 GB, free: 12.67 MB / 0.8419 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.002615/0.2951, allocations: 1.713 MB / 1.082 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002434/0.2954, allocations: 481.5 kB / 1.082 GB, free: 10.29 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.114e-05/0.2954, allocations: 12 kB / 1.082 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.846e-05/0.2955, allocations: 16.12 kB / 1.082 GB, free: 10.27 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.105e-05/0.2955, allocations: 27.86 kB / 1.082 GB, free: 10.24 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.275e-05/0.2956, allocations: 19.92 kB / 1.082 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002447/0.298, allocations: 426.9 kB / 1.083 GB, free: 9.801 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002195/0.2982, allocations: 103.9 kB / 1.083 GB, free: 9.699 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 60 (booPul_c5.y,$PRE.booPul_c5.y,$whenCondition29,$whenCondition30,booPul_b5.y,$PRE.booPul_b5.y,$whenCondition27,$whenCondition28,booPul_a5.y,$PRE.booPul_a5.y,$whenCondition25,$whenCondition26,booPul_c4.y,$PRE.booPul_c4.y,$whenCondition23,$whenCondition24,booPul_b4.y,$PRE.booPul_b4.y,$whenCondition21,$whenCondition22,booPul_a4.y,$PRE.booPul_a4.y,$whenCondition19,$whenCondition20,booPul_c3.y,$PRE.booPul_c3.y,$whenCondition17,$whenCondition18,booPul_b3.y,$PRE.booPul_b3.y,$whenCondition15,$whenCondition16,booPul_a3.y,$PRE.booPul_a3.y,$whenCondition13,$whenCondition14,booPul_c2.y,$PRE.booPul_c2.y,$whenCondition11,$whenCondition12,booPul_b2.y,$PRE.booPul_b2.y,$whenCondition9,$whenCondition10,booPul_a2.y,$PRE.booPul_a2.y,$whenCondition7,$whenCondition8,booPul_c1.y,$PRE.booPul_c1.y,$whenCondition5,$whenCondition6,booPul_b1.y,$PRE.booPul_b1.y,$whenCondition3,$whenCondition4,booPul_a1.y,$PRE.booPul_a1.y,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 15 * 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.000368/0.2986, allocations: 223.3 kB / 1.083 GB, free: 9.473 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001249/0.2987, allocations: 43.55 kB / 1.083 GB, free: 9.43 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.602e-05/0.2988, allocations: 38.14 kB / 1.083 GB, free: 9.387 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.478e-06/0.2989, allocations: 8 kB / 1.083 GB, free: 9.379 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.24e-05/0.2989, allocations: 4 kB / 1.083 GB, free: 9.375 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.2989, allocations: 4 kB / 1.083 GB, free: 9.371 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000458/0.2994, allocations: 337.3 kB / 1.083 GB, free: 8.992 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.456e-06/0.2994, allocations: 4 kB / 1.083 GB, free: 8.988 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.645e-05/0.2994, allocations: 19.86 kB / 1.083 GB, free: 8.969 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.025e-06/0.2994, allocations: 4 kB / 1.083 GB, free: 8.965 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.181e-05/0.2995, allocations: 23.97 kB / 1.083 GB, free: 8.941 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.342e-06/0.2995, allocations: 4 kB / 1.083 GB, free: 8.938 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.311e-06/0.2995, allocations: 7.938 kB / 1.083 GB, free: 8.93 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000662/0.3001, allocations: 0.5158 MB / 1.084 GB, free: 8.355 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 9.548e-05/0.3003, allocations: 120.5 kB / 1.084 GB, free: 8.219 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.138e-05/0.3003, allocations: 15.98 kB / 1.084 GB, free: 8.203 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001104/0.3004, allocations: 11.98 kB / 1.084 GB, free: 8.191 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.76e-05/0.3005, allocations: 63.81 kB / 1.084 GB, free: 8.129 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.973e-05/0.3006, allocations: 31.98 kB / 1.084 GB, free: 8.098 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0001475/0.3007, allocations: 187.1 kB / 1.084 GB, free: 7.918 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3007, allocations: 4 kB / 1.084 GB, free: 7.914 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006432/0.3014, allocations: 192 kB / 1.085 GB, free: 7.727 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 45 ($whenCondition29,$whenCondition30,booPul_c5.y,$whenCondition27,$whenCondition28,booPul_b5.y,$whenCondition25,$whenCondition26,booPul_a5.y,$whenCondition23,$whenCondition24,booPul_c4.y,$whenCondition21,$whenCondition22,booPul_b4.y,$whenCondition19,$whenCondition20,booPul_a4.y,$whenCondition17,$whenCondition18,booPul_c3.y,$whenCondition15,$whenCondition16,booPul_b3.y,$whenCondition13,$whenCondition14,booPul_a3.y,$whenCondition11,$whenCondition12,booPul_c2.y,$whenCondition9,$whenCondition10,booPul_b2.y,$whenCondition7,$whenCondition8,booPul_a2.y,$whenCondition5,$whenCondition6,booPul_c1.y,$whenCondition3,$whenCondition4,booPul_b1.y,$whenCondition1,$whenCondition2,booPul_a1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 15 * 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.0009075/0.3023, allocations: 1.089 MB / 1.086 GB, free: 6.566 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001909/0.3042, allocations: 1.773 MB / 1.087 GB, free: 4.609 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.3042, allocations: 0 / 1.087 GB, free: 4.609 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0002483/0.3045, allocations: 187.7 kB / 1.088 GB, free: 4.426 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00069/0.3052, allocations: 137.7 kB / 1.088 GB, free: 4.297 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008085/0.3133, allocations: 6.461 MB / 1.094 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003193/0.3136, allocations: 0.7798 MB / 1.095 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001526/0.3138, allocations: 42.97 kB / 1.095 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001435/0.3139, allocations: 107.4 kB / 1.095 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of SimCode: time 5.41e-07/0.3139, allocations: 3.938 kB / 1.095 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03239/0.3463, allocations: 14.78 MB / 1.109 GB, free: 13.83 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.589/7.935, allocations: 15.09 kB / 1.109 GB, free: 13.82 MB / 0.8731 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.004 Buildings_latest_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Pulse.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Pulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches