Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Controls.OBC.CDL.Logical.Sources.Validation.Pulse,fileNamePrefix="Buildings_9_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_9_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.01057/0.01057, allocations: 100.4 kB / 15.73 MB, free: 6.035 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.001965/0.001965, allocations: 186.1 kB / 16.67 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.483/1.483, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.423/2.423, allocations: 390.3 MB / 0.6648 GB, free: 212 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002458/0.002458, allocations: 63.25 kB / 0.9504 GB, free: 5.855 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3165/0.319, allocations: 140.4 MB / 1.087 GB, free: 1.973 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse): time 0.002861/0.3219, allocations: 1.174 MB / 1.089 GB, free: 0.8008 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.003174/0.3251, allocations: 2.171 MB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002696/0.3254, allocations: 0 / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 9.497e-05/0.3255, allocations: 23.69 kB / 1.091 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0003118/0.3259, allocations: 83.25 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003629/0.3295, allocations: 1.395 MB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.002003/0.3315, allocations: 1.299 MB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001289/0.3317, allocations: 24.69 kB / 1.094 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001012/0.3327, allocations: 475.3 kB / 1.094 GB, free: 11.36 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009264/0.3336, allocations: 438.8 kB / 1.094 GB, free: 10.93 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0004302/0.3341, allocations: 104 kB / 1.094 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004185/0.3345, allocations: 123.9 kB / 1.095 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 8.509e-05/0.3346, allocations: 59.75 kB / 1.095 GB, free: 10.65 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0007629/0.3353, allocations: 395 kB / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.001192/0.3365, allocations: 0.9582 MB / 1.096 GB, free: 9.309 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.3366, allocations: 0 / 1.096 GB, free: 9.309 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.763e-06/0.3366, allocations: 0 / 1.096 GB, free: 9.309 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.862e-05/0.3366, allocations: 4 kB / 1.096 GB, free: 9.305 MB / 0.8575 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.002321/0.3389, allocations: 1.179 MB / 1.097 GB, free: 7.977 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.269e-05/0.339, allocations: 8.031 kB / 1.097 GB, free: 7.969 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.312e-05/0.3391, allocations: 46.73 kB / 1.097 GB, free: 7.914 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003863/0.3395, allocations: 60.66 kB / 1.097 GB, free: 7.855 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002662/0.3398, allocations: 228.3 kB / 1.097 GB, free: 7.598 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.174e-05/0.3398, allocations: 40.3 kB / 1.097 GB, free: 7.559 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002288/0.3401, allocations: 64.36 kB / 1.098 GB, free: 7.496 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003397/0.3404, allocations: 215 kB / 1.098 GB, free: 7.234 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.3404, allocations: 11.88 kB / 1.098 GB, free: 7.223 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.191e-05/0.3405, allocations: 4 kB / 1.098 GB, free: 7.219 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.555e-06/0.3405, allocations: 3.984 kB / 1.098 GB, free: 7.215 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001336/0.3406, allocations: 67.78 kB / 1.098 GB, free: 7.148 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001093/0.3417, allocations: 0.8483 MB / 1.099 GB, free: 6.207 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002995/0.342, allocations: 327.3 kB / 1.099 GB, free: 5.75 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001721/0.3422, allocations: 136.8 kB / 1.099 GB, free: 5.57 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.361e-05/0.3422, allocations: 11.94 kB / 1.099 GB, free: 5.559 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006218/0.3429, allocations: 470.6 kB / 1.1 GB, free: 5.035 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=45): time 2.374e-06/0.3429, allocations: 0 / 1.1 GB, free: 5.035 MB / 0.8575 GB Notification: Performance of matching and sorting (n=45): time 0.001056/0.3439, allocations: 0.554 MB / 1.1 GB, free: 4.477 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001954/0.3441, allocations: 439.2 kB / 1.101 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003234/0.3445, allocations: 300.3 kB / 1.101 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 0.000174/0.3447, allocations: 65.7 kB / 1.101 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002094/0.3449, allocations: 161.3 kB / 1.101 GB, free: 3.41 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001154/0.345, allocations: 94.84 kB / 1.101 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005183/0.3455, allocations: 274.1 kB / 1.101 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001401/0.3457, allocations: 350.8 kB / 1.102 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00088/0.3466, allocations: 429.2 kB / 1.102 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001067/0.3476, allocations: 0.7028 MB / 1.103 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001355/0.349, allocations: 1.191 MB / 1.104 GB, free: 8 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.706e-06/0.349, allocations: 0 / 1.104 GB, free: 8 kB / 0.8575 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.00277/0.3518, allocations: 1.725 MB / 1.106 GB, free: 14.18 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002717/0.3521, allocations: 483.3 kB / 1.106 GB, free: 13.62 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.36e-05/0.3521, allocations: 12 kB / 1.106 GB, free: 13.61 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.583e-05/0.3521, allocations: 12 kB / 1.106 GB, free: 13.6 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.748e-05/0.3522, allocations: 43.8 kB / 1.106 GB, free: 13.55 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.723e-05/0.3522, allocations: 15.94 kB / 1.106 GB, free: 13.54 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002163/0.3544, allocations: 403 kB / 1.107 GB, free: 13.14 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001925/0.3546, allocations: 99.92 kB / 1.107 GB, free: 13.05 MB / 0.8731 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.0003837/0.355, allocations: 217.6 kB / 1.107 GB, free: 12.82 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001051/0.3551, allocations: 47.55 kB / 1.107 GB, free: 12.78 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.81e-05/0.3552, allocations: 34.14 kB / 1.107 GB, free: 12.74 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.976e-06/0.3552, allocations: 8 kB / 1.107 GB, free: 12.73 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.314e-05/0.3553, allocations: 4 kB / 1.107 GB, free: 12.73 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.857e-06/0.3553, allocations: 11.98 kB / 1.107 GB, free: 12.72 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003872/0.3557, allocations: 337.3 kB / 1.107 GB, free: 12.34 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.781e-06/0.3557, allocations: 4 kB / 1.107 GB, free: 12.34 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.694e-05/0.3557, allocations: 23.8 kB / 1.107 GB, free: 12.31 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.965e-06/0.3557, allocations: 11.94 kB / 1.107 GB, free: 12.3 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.864e-05/0.3558, allocations: 15.98 kB / 1.107 GB, free: 12.29 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.856e-06/0.3558, allocations: 11.98 kB / 1.107 GB, free: 12.27 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.3558, allocations: 7.938 kB / 1.107 GB, free: 12.27 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006449/0.3564, allocations: 0.5158 MB / 1.108 GB, free: 11.69 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 9.1e-05/0.3565, allocations: 116.5 kB / 1.108 GB, free: 11.56 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.059e-05/0.3566, allocations: 15.98 kB / 1.108 GB, free: 11.54 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001118/0.3567, allocations: 11.98 kB / 1.108 GB, free: 11.53 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.3568, allocations: 67.88 kB / 1.108 GB, free: 11.46 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.482e-05/0.3569, allocations: 27.98 kB / 1.108 GB, free: 11.44 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001928/0.3571, allocations: 187.1 kB / 1.108 GB, free: 11.26 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3571, allocations: 0 / 1.108 GB, free: 11.26 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0008121/0.3579, allocations: 196 kB / 1.108 GB, free: 11.07 MB / 0.8731 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.001159/0.3591, allocations: 1.081 MB / 1.11 GB, free: 9.914 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.00222/0.3613, allocations: 1.757 MB / 1.111 GB, free: 7.973 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.3613, allocations: 0 / 1.111 GB, free: 7.973 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002486/0.3616, allocations: 185.4 kB / 1.111 GB, free: 7.793 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007028/0.3623, allocations: 138.7 kB / 1.112 GB, free: 7.66 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009128/0.3714, allocations: 6.442 MB / 1.118 GB, free: 0.6914 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004408/0.3719, allocations: 0.78 MB / 1.119 GB, free: 15.89 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 0.0001701/0.3721, allocations: 42.97 kB / 1.119 GB, free: 15.84 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001407/0.3722, allocations: 107.4 kB / 1.119 GB, free: 15.74 MB / 0.8887 GB Notification: Performance of SimCode: time 1.032e-06/0.3722, allocations: 0 / 1.119 GB, free: 15.74 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04091/0.4132, allocations: 14.86 MB / 1.133 GB, free: 1.121 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.34/8.754, allocations: 11.98 kB / 1.133 GB, free: 1.109 MB / 0.8887 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Pulse.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_Pulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.Pulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches