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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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.001329/0.001329, allocations: 99.31 kB / 15.05 MB, free: 1.105 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.001836/0.001836, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.434/1.434, allocations: 223.2 MB / 239.9 MB, free: 5.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.436/2.436, allocations: 390.3 MB / 0.6653 GB, free: 2.984 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.000335/0.0003351, allocations: 12 kB / 0.8146 GB, free: 14.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8256/0.8259, allocations: 142.3 MB / 0.9536 GB, free: 8.066 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.0009679/0.8269, allocations: 0.5083 MB / 0.9541 GB, free: 7.676 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001207/0.8282, allocations: 1.156 MB / 0.9552 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.667e-05/0.8282, allocations: 1.469 kB / 0.9552 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.611e-05/0.8282, allocations: 7.938 kB / 0.9552 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.995e-05/0.8283, allocations: 14.44 kB / 0.9553 GB, free: 6.727 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004028/0.8288, allocations: 133.2 kB / 0.9554 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001053/0.8289, allocations: 81.14 kB / 0.9555 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001065/0.829, allocations: 20.25 kB / 0.9555 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001046/0.8291, allocations: 47.52 kB / 0.9555 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.596e-05/0.8292, allocations: 50.31 kB / 0.9556 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.575e-05/0.8292, allocations: 6.906 kB / 0.9556 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.676e-05/0.8293, allocations: 24.38 kB / 0.9556 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.571e-05/0.8293, allocations: 16.83 kB / 0.9556 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.716e-05/0.8294, allocations: 42.52 kB / 0.9557 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001222/0.8295, allocations: 93.77 kB / 0.9557 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.8295, allocations: 0 / 0.9557 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.813e-06/0.8295, allocations: 1.062 kB / 0.9557 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.53e-06/0.8295, allocations: 0 / 0.9557 GB, free: 6.383 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.0005912/0.8301, allocations: 436.2 kB / 0.9562 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.8302, allocations: 8.031 kB / 0.9562 GB, free: 5.949 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.348e-05/0.8302, allocations: 37.16 kB / 0.9562 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.762e-05/0.8303, allocations: 14.86 kB / 0.9562 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.935e-05/0.8304, allocations: 175.8 kB / 0.9564 GB, free: 5.691 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.884e-05/0.8304, allocations: 20.34 kB / 0.9564 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.852e-05/0.8304, allocations: 7.969 kB / 0.9564 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000293/0.8307, allocations: 104.7 kB / 0.9565 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-06/0.8307, allocations: 0 / 0.9565 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.8308, allocations: 5.547 kB / 0.9565 GB, free: 5.605 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.8308, allocations: 5.375 kB / 0.9565 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003467/0.8311, allocations: 110.7 kB / 0.9566 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004791/0.8316, allocations: 384.3 kB / 0.957 GB, free: 5.18 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002547/0.8319, allocations: 110.7 kB / 0.9571 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.27e-05/0.8319, allocations: 5.531 kB / 0.9571 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002981/0.8322, allocations: 129.7 kB / 0.9572 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=12): time 1.473e-06/0.8322, allocations: 1.594 kB / 0.9572 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12): time 0.0006778/0.8329, allocations: 241 kB / 0.9575 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.64e-05/0.8329, allocations: 53.62 kB / 0.9575 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.399e-05/0.833, allocations: 136.8 kB / 0.9576 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.731e-05/0.833, allocations: 32.67 kB / 0.9577 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.486e-05/0.8331, allocations: 97.16 kB / 0.9578 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.712e-05/0.8331, allocations: 37 kB / 0.9578 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.491e-05/0.8332, allocations: 1.469 kB / 0.9578 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.725e-05/0.8332, allocations: 326.2 kB / 0.9581 GB, free: 4.23 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000241/0.8335, allocations: 82.11 kB / 0.9582 GB, free: 4.199 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002409/0.8337, allocations: 128.4 kB / 0.9583 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002468/0.834, allocations: 112.9 kB / 0.9584 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.834, allocations: 0.9375 kB / 0.9584 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006147/0.8346, allocations: 295.1 kB / 0.9587 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.418e-05/0.8346, allocations: 34.48 kB / 0.9587 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.8347, allocations: 1 kB / 0.9587 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.8347, allocations: 2.562 kB / 0.9587 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001468/0.8348, allocations: 34.28 kB / 0.9588 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.8348, allocations: 10.38 kB / 0.9588 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002875/0.8351, allocations: 57.3 kB / 0.9588 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.76e-05/0.8352, allocations: 19.73 kB / 0.9589 GB, free: 3.793 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 ($PRE.triggeredSampler.y,triggeredSampler.y,$whenCondition1,$whenCondition2,$whenCondition3,$PRE.booPul1.y,booPul1.y,zeroCrossing.y,$PRE.zeroCrossing.enable,zeroCrossing.enable,$PRE.zeroCrossing.disable,zeroCrossing.disable,$PRE.zeroCrossing.u_pos,zeroCrossing.u_pos) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.68e-05/0.8353, allocations: 124.2 kB / 0.959 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.908e-05/0.8353, allocations: 13.73 kB / 0.959 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000475/0.8358, allocations: 190.9 kB / 0.9592 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.8358, allocations: 2 kB / 0.9592 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.8358, allocations: 0 / 0.9592 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.8358, allocations: 1.188 kB / 0.9592 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006325/0.8364, allocations: 480.5 kB / 0.9596 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.8365, allocations: 0 / 0.9596 GB, free: 3.145 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001056/0.8366, allocations: 24.47 kB / 0.9597 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.8366, allocations: 1.375 kB / 0.9597 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.199e-05/0.8366, allocations: 1.375 kB / 0.9597 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.8366, allocations: 0 / 0.9597 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.8366, allocations: 5.359 kB / 0.9597 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004295/0.837, allocations: 286.2 kB / 0.9599 GB, free: 2.93 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.714e-05/0.8371, allocations: 91.66 kB / 0.96 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.651e-05/0.8371, allocations: 5.312 kB / 0.96 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.8373, allocations: 24.34 kB / 0.9601 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.056e-05/0.8373, allocations: 17.41 kB / 0.9601 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.172e-05/0.8373, allocations: 6.75 kB / 0.9601 GB, free: 2.793 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.758e-05/0.8374, allocations: 94.27 kB / 0.9602 GB, free: 2.711 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8374, allocations: 4 kB / 0.9602 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002857/0.8377, allocations: 34.03 kB / 0.9602 GB, free: 2.699 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000659/0.8383, allocations: 0.8163 MB / 0.961 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005438/0.8389, allocations: 258.2 kB / 0.9612 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.8389, allocations: 256 / 0.9612 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000213/0.8391, allocations: 77.98 kB / 0.9613 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000206/0.8393, allocations: 14.23 kB / 0.9613 GB, free: 1.785 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006472/0.84, allocations: 1.055 MB / 0.9624 GB, free: 0.7305 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001134/0.8401, allocations: 0.6989 MB / 0.963 GB, free: 24 kB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.344e-05/0.8402, allocations: 10.69 kB / 0.9631 GB, free: 16 kB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.278e-05/0.8403, allocations: 28.64 kB / 0.9631 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of SimCode: time 4.81e-07/0.8403, allocations: 0 / 0.9631 GB, free: 15.99 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01371/0.854, allocations: 2.703 MB / 0.9657 GB, free: 14.71 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001884/0.8542, allocations: 197.5 kB / 0.9659 GB, free: 14.47 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.686/2.54, allocations: 0 / 0.9659 GB, free: 14.47 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat does not exist to compare? outputFormat=mat