Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.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.Validation.ZeroCrossing,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",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.001336/0.001336, allocations: 108 kB / 15.61 MB, free: 152 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.0016/0.0016, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.459/1.459, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.452/2.452, allocations: 390.3 MB / 0.6647 GB, free: 464 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001433/0.001434, allocations: 71.88 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7652/0.7666, allocations: 140.4 MB / 0.9497 GB, free: 9.105 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002153/0.7688, allocations: 0.796 MB / 0.9505 GB, free: 8.488 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001304/0.7701, allocations: 1.206 MB / 0.9517 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.933e-05/0.7702, allocations: 1.5 kB / 0.9517 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.225e-05/0.7703, allocations: 3.938 kB / 0.9517 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.437e-05/0.7704, allocations: 22.33 kB / 0.9517 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004887/0.7708, allocations: 150.9 kB / 0.9519 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001726/0.771, allocations: 150.3 kB / 0.952 GB, free: 7.305 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001129/0.7711, allocations: 34.52 kB / 0.952 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001024/0.7713, allocations: 57.88 kB / 0.9521 GB, free: 7.25 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.361e-05/0.7714, allocations: 58.89 kB / 0.9521 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.324e-05/0.7714, allocations: 12.97 kB / 0.9522 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.758e-05/0.7715, allocations: 28.36 kB / 0.9522 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.097e-05/0.7715, allocations: 23.59 kB / 0.9522 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.407e-05/0.7716, allocations: 55.14 kB / 0.9523 GB, free: 7.141 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000198/0.7718, allocations: 144.8 kB / 0.9524 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.7718, allocations: 0 / 0.9524 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.686e-06/0.7718, allocations: 0 / 0.9524 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.271e-06/0.7718, allocations: 3.938 kB / 0.9524 GB, free: 7.027 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006706/0.7725, allocations: 447.7 kB / 0.9528 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.784e-05/0.7726, allocations: 10 kB / 0.9528 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.069e-05/0.7726, allocations: 40.25 kB / 0.9529 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.053e-05/0.7726, allocations: 11.59 kB / 0.9529 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.127e-05/0.7727, allocations: 181.2 kB / 0.9531 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.64e-05/0.7728, allocations: 8.031 kB / 0.9531 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.037e-05/0.7728, allocations: 8.875 kB / 0.9531 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002864/0.7731, allocations: 95.94 kB / 0.9532 GB, free: 6.246 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.7731, allocations: 3.938 kB / 0.9532 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.534e-05/0.7731, allocations: 5.359 kB / 0.9532 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.7731, allocations: 1.438 kB / 0.9532 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003412/0.7735, allocations: 99.56 kB / 0.9533 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005344/0.774, allocations: 378.9 kB / 0.9536 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002654/0.7743, allocations: 98.12 kB / 0.9537 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001917/0.7745, allocations: 58.75 kB / 0.9538 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.551e-05/0.7745, allocations: 1.062 kB / 0.9538 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002934/0.7748, allocations: 125.2 kB / 0.9539 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.463e-06/0.7748, allocations: 0 / 0.9539 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0006815/0.7755, allocations: 205.6 kB / 0.9541 GB, free: 5.516 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.913e-05/0.7756, allocations: 57.88 kB / 0.9542 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.156e-05/0.7757, allocations: 133.1 kB / 0.9543 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.644e-05/0.7757, allocations: 28.58 kB / 0.9543 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.688e-05/0.7757, allocations: 101.5 kB / 0.9544 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.698e-05/0.7758, allocations: 32.39 kB / 0.9544 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.969e-05/0.7759, allocations: 44.47 kB / 0.9545 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 7.088e-05/0.7759, allocations: 325.5 kB / 0.9548 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002355/0.7762, allocations: 80.31 kB / 0.9549 GB, free: 4.777 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002649/0.7764, allocations: 115.3 kB / 0.955 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004047/0.7769, allocations: 185.3 kB / 0.9552 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.7769, allocations: 3.938 kB / 0.9552 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005952/0.7775, allocations: 265.5 kB / 0.9554 GB, free: 4.402 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.002e-05/0.7775, allocations: 38.14 kB / 0.9555 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.7775, allocations: 1.406 kB / 0.9555 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.61e-05/0.7775, allocations: 2.625 kB / 0.9555 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001381/0.7777, allocations: 28.94 kB / 0.9555 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.503e-06/0.7777, allocations: 2.906 kB / 0.9555 GB, free: 4.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002525/0.778, allocations: 47.55 kB / 0.9555 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.581e-05/0.778, allocations: 15.27 kB / 0.9555 GB, free: 4.32 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 14 (triggeredSampler.y,$PRE.triggeredSampler.y,$whenCondition1,$whenCondition2,zeroCrossing.u_pos,$PRE.zeroCrossing.u_pos,zeroCrossing.disable,$PRE.zeroCrossing.disable,zeroCrossing.enable,$PRE.zeroCrossing.enable,zeroCrossing.y,booPul1.y,$PRE.booPul1.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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 8.752e-05/0.7781, allocations: 130.5 kB / 0.9557 GB, free: 4.191 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.833e-05/0.7781, allocations: 8 kB / 0.9557 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004464/0.7786, allocations: 170 kB / 0.9558 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.7786, allocations: 1.156 kB / 0.9558 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.7786, allocations: 1.062 kB / 0.9558 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.778e-06/0.7786, allocations: 0 / 0.9558 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005557/0.7791, allocations: 454.1 kB / 0.9563 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.7792, allocations: 3.531 kB / 0.9563 GB, free: 3.68 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.586e-05/0.7793, allocations: 26.69 kB / 0.9563 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.7793, allocations: 0 / 0.9563 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.7793, allocations: 0 / 0.9563 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.7793, allocations: 3.531 kB / 0.9563 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.7793, allocations: 3.938 kB / 0.9563 GB, free: 3.66 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004332/0.7797, allocations: 264.9 kB / 0.9566 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.759e-05/0.7798, allocations: 84.58 kB / 0.9566 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.48e-05/0.7798, allocations: 5.938 kB / 0.9566 GB, free: 3.355 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000122/0.7799, allocations: 19.25 kB / 0.9567 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.895e-05/0.78, allocations: 13.33 kB / 0.9567 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.78, allocations: 7.625 kB / 0.9567 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.57e-05/0.7801, allocations: 95.64 kB / 0.9568 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7801, allocations: 4 kB / 0.9568 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002808/0.7804, allocations: 37.88 kB / 0.9568 GB, free: 3.234 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (zeroCrossing.y,$whenCondition3,$whenCondition1,$whenCondition2,booPul1.y,zeroCrossing.enable,zeroCrossing.disable,zeroCrossing.u_pos,triggeredSampler.y) * Number of discrete states: 3 (zeroCrossing.u_pos,zeroCrossing.enable,zeroCrossing.disable) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0008184/0.7812, allocations: 0.802 MB / 0.9576 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0006165/0.7818, allocations: 237.8 kB / 0.9578 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.7818, allocations: 0 / 0.9578 GB, free: 2.355 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0002141/0.7821, allocations: 67.14 kB / 0.9579 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003042/0.7824, allocations: 28.45 kB / 0.9579 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002409/0.7848, allocations: 1.908 MB / 0.9598 GB, free: 0.6797 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001637/0.785, allocations: 0.7019 MB / 0.9605 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 5.519e-05/0.785, allocations: 6.062 kB / 0.9605 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.14e-05/0.7851, allocations: 32.92 kB / 0.9605 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of SimCode: time 1.9e-07/0.7851, allocations: 0 / 0.9605 GB, free: 15.94 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02357/0.8087, allocations: 3.133 MB / 0.9636 GB, free: 14.31 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.653/8.462, allocations: 6.203 kB / 0.9636 GB, free: 14.31 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable zeroCrossing.u in file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv. Warning: Get data of variable zeroCrossing.u from file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv failed! Error: Could not read variable zeroCrossing.enable in file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv. Warning: Get data of variable zeroCrossing.enable from file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv failed! Error: Could not read variable triggeredSampler.u in file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv. Warning: Get data of variable triggeredSampler.u from file Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv failed! " Variables in the reference:time,zeroCrossing.u,zeroCrossing.enable,triggeredSampler.u,triggeredSampler.y Variables in the result:time,ramp1.y,ramp2.y,sin1.y,triggeredSampler.y,booPul1.period