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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001102/0.001102, allocations: 107.4 kB / 15.23 MB, free: 0.6406 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.001464/0.001464, allocations: 192.4 kB / 16.14 MB, free: 6.715 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.43/1.43, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.361/2.361, allocations: 390.2 MB / 0.6643 GB, free: 0.6211 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 63.89 kB / 0.812 GB, free: 14.77 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8257/0.8272, allocations: 140.4 MB / 0.9491 GB, free: 9.141 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002125/0.8293, allocations: 0.8595 MB / 0.9499 GB, free: 8.48 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001449/0.8308, allocations: 1.213 MB / 0.9511 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.592e-05/0.8309, allocations: 0 / 0.9511 GB, free: 7.508 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.662e-05/0.831, allocations: 5.188 kB / 0.9511 GB, free: 7.504 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.346e-05/0.8311, allocations: 13.75 kB / 0.9511 GB, free: 7.492 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005238/0.8316, allocations: 136 kB / 0.9512 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001643/0.8318, allocations: 144.9 kB / 0.9514 GB, free: 7.32 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001064/0.8319, allocations: 16.84 kB / 0.9514 GB, free: 7.312 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001138/0.832, allocations: 53.8 kB / 0.9514 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.986e-05/0.8321, allocations: 57.98 kB / 0.9515 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.565e-05/0.8321, allocations: 12.78 kB / 0.9515 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.697e-05/0.8322, allocations: 25.11 kB / 0.9515 GB, free: 7.227 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.973e-05/0.8323, allocations: 17.02 kB / 0.9516 GB, free: 7.215 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.724e-05/0.8324, allocations: 50.86 kB / 0.9516 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001929/0.8326, allocations: 139.2 kB / 0.9517 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.8326, allocations: 0.9375 kB / 0.9517 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.342e-06/0.8326, allocations: 0 / 0.9517 GB, free: 7.074 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.57e-06/0.8326, allocations: 0 / 0.9517 GB, free: 7.074 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.0006116/0.8332, allocations: 447.5 kB / 0.9522 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.8333, allocations: 9.938 kB / 0.9522 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.234e-05/0.8333, allocations: 39.92 kB / 0.9522 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.191e-05/0.8334, allocations: 12.69 kB / 0.9522 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.23e-05/0.8335, allocations: 176.3 kB / 0.9524 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.776e-05/0.8335, allocations: 21.17 kB / 0.9524 GB, free: 6.352 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.92e-05/0.8335, allocations: 12.66 kB / 0.9524 GB, free: 6.348 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002819/0.8338, allocations: 90.72 kB / 0.9525 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.8338, allocations: 9.438 kB / 0.9525 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.731e-05/0.8338, allocations: 7.984 kB / 0.9525 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.8339, allocations: 2.219 kB / 0.9525 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003468/0.8342, allocations: 83.28 kB / 0.9526 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000581/0.8348, allocations: 386.6 kB / 0.953 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002573/0.8351, allocations: 91.77 kB / 0.9531 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001725/0.8352, allocations: 64.38 kB / 0.9531 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.344e-05/0.8353, allocations: 1.188 kB / 0.9531 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003208/0.8356, allocations: 121.6 kB / 0.9532 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.533e-06/0.8356, allocations: 0 / 0.9532 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0006433/0.8363, allocations: 206.5 kB / 0.9534 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.885e-05/0.8363, allocations: 62.14 kB / 0.9535 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.071e-05/0.8364, allocations: 127.7 kB / 0.9536 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.062e-05/0.8364, allocations: 34.14 kB / 0.9537 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.114e-05/0.8365, allocations: 100.1 kB / 0.9537 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.713e-05/0.8365, allocations: 28.02 kB / 0.9538 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.377e-05/0.8366, allocations: 49.8 kB / 0.9538 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.064e-05/0.8367, allocations: 324.3 kB / 0.9541 GB, free: 4.855 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002349/0.8369, allocations: 78 kB / 0.9542 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002409/0.8372, allocations: 117.7 kB / 0.9543 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000383/0.8376, allocations: 184.1 kB / 0.9545 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.8376, allocations: 4 kB / 0.9545 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0005722/0.8381, allocations: 264.6 kB / 0.9547 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.49e-05/0.8382, allocations: 42.03 kB / 0.9548 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.8382, allocations: 1.188 kB / 0.9548 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.8382, allocations: 1.312 kB / 0.9548 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001387/0.8384, allocations: 23.17 kB / 0.9548 GB, free: 4.398 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.8384, allocations: 5.25 kB / 0.9548 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002458/0.8386, allocations: 52.22 kB / 0.9549 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.532e-05/0.8387, allocations: 6.594 kB / 0.9549 GB, free: 4.367 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 9.465e-05/0.8388, allocations: 127.8 kB / 0.955 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.881e-05/0.8388, allocations: 7.438 kB / 0.955 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004252/0.8392, allocations: 177.2 kB / 0.9552 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.8392, allocations: 2.375 kB / 0.9552 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.8392, allocations: 0 / 0.9552 GB, free: 4.129 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.738e-06/0.8393, allocations: 7.922 kB / 0.9552 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005554/0.8398, allocations: 454.9 kB / 0.9556 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.8398, allocations: 0 / 0.9556 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.819e-05/0.8399, allocations: 18.59 kB / 0.9556 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.8399, allocations: 1.344 kB / 0.9556 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.355e-05/0.84, allocations: 1.312 kB / 0.9556 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.84, allocations: 1.219 kB / 0.9556 GB, free: 3.707 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.84, allocations: 3.938 kB / 0.9556 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000386/0.8404, allocations: 265.4 kB / 0.9559 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.391e-05/0.8404, allocations: 84.8 kB / 0.956 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.581e-05/0.8404, allocations: 7.984 kB / 0.956 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000127/0.8406, allocations: 14.55 kB / 0.956 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.949e-05/0.8406, allocations: 30.22 kB / 0.956 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/0.8406, allocations: 2.969 kB / 0.956 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.492e-05/0.8407, allocations: 95.17 kB / 0.9561 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8407, allocations: 0 / 0.9561 GB, free: 3.285 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002721/0.841, allocations: 34.62 kB / 0.9562 GB, free: 3.277 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.0006432/0.8416, allocations: 0.8021 MB / 0.9569 GB, free: 2.543 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005017/0.8421, allocations: 232.1 kB / 0.9572 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.8422, allocations: 4.25 kB / 0.9572 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001925/0.8424, allocations: 64.55 kB / 0.9572 GB, free: 2.375 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003044/0.8427, allocations: 24.3 kB / 0.9572 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00249/0.8452, allocations: 1.926 MB / 0.9591 GB, free: 0.7109 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001499/0.8453, allocations: 0.7009 MB / 0.9598 GB, free: 0 / 0.7169 GB Notification: Performance of simCode: alias equations: time 8.643e-05/0.8454, allocations: 10.11 kB / 0.9598 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.003e-05/0.8455, allocations: 28.86 kB / 0.9598 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of SimCode: time 2.325e-06/0.8455, allocations: 1.375 kB / 0.9599 GB, free: 15.97 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01503/0.8605, allocations: 2.844 MB / 0.9626 GB, free: 14.56 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001864/0.8608, allocations: 205.9 kB / 0.9628 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.837/2.698, allocations: 3.625 kB / 0.9628 GB, free: 14.3 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 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.mat","/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) Reference file matches