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.007798/0.007798, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.00194/0.00194, allocations: 197.9 kB / 16.68 MB, free: 5.926 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.468/1.468, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.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.2/2.2, allocations: 390.3 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001352/0.001352, allocations: 63.91 kB / 0.9504 GB, free: 8.129 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9228/0.9242, allocations: 140.4 MB / 1.087 GB, free: 5.254 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002992/0.9273, allocations: 0.8069 MB / 1.088 GB, free: 4.734 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002422/0.9297, allocations: 1.198 MB / 1.089 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.697e-05/0.9298, allocations: 1.125 kB / 1.089 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.829e-05/0.9299, allocations: 8.953 kB / 1.089 GB, free: 3.848 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000106/0.93, allocations: 15.47 kB / 1.089 GB, free: 3.836 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007386/0.9308, allocations: 156.6 kB / 1.09 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003298/0.9311, allocations: 157.2 kB / 1.09 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001482/0.9313, allocations: 29.31 kB / 1.09 GB, free: 3.672 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001477/0.9314, allocations: 67.39 kB / 1.09 GB, free: 3.641 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001514/0.9316, allocations: 63.41 kB / 1.09 GB, free: 3.613 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.995e-05/0.9316, allocations: 13.84 kB / 1.09 GB, free: 3.613 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001026/0.9317, allocations: 23.05 kB / 1.09 GB, free: 3.613 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.85e-05/0.9318, allocations: 28.34 kB / 1.09 GB, free: 3.594 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.584e-05/0.9319, allocations: 56.02 kB / 1.09 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003227/0.9322, allocations: 145.8 kB / 1.09 GB, free: 3.512 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.9322, allocations: 7.938 kB / 1.09 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.597e-06/0.9322, allocations: 0 / 1.09 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.506e-06/0.9323, allocations: 1.266 kB / 1.09 GB, free: 3.504 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0008011/0.9331, allocations: 442.7 kB / 1.091 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5.021e-05/0.9331, allocations: 9.469 kB / 1.091 GB, free: 3.082 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.619e-05/0.9332, allocations: 38.86 kB / 1.091 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.284e-05/0.9332, allocations: 11.62 kB / 1.091 GB, free: 3.035 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.352e-05/0.9333, allocations: 178.7 kB / 1.091 GB, free: 2.828 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.224e-05/0.9334, allocations: 9 kB / 1.091 GB, free: 2.824 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.059e-05/0.9334, allocations: 14.33 kB / 1.091 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003048/0.9337, allocations: 96.27 kB / 1.091 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.9337, allocations: 3.938 kB / 1.091 GB, free: 2.77 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.516e-05/0.9337, allocations: 5.781 kB / 1.091 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.773e-06/0.9337, allocations: 1.797 kB / 1.091 GB, free: 2.766 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003677/0.9341, allocations: 86.91 kB / 1.091 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006201/0.9347, allocations: 383.4 kB / 1.091 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002786/0.935, allocations: 96.66 kB / 1.092 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001975/0.9352, allocations: 62.09 kB / 1.092 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.938e-05/0.9353, allocations: 1.562 kB / 1.092 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003393/0.9356, allocations: 117.4 kB / 1.092 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 1.613e-06/0.9356, allocations: 0.9375 kB / 1.092 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12): time 0.000729/0.9364, allocations: 219.8 kB / 1.092 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.601e-05/0.9364, allocations: 53.84 kB / 1.092 GB, free: 2.145 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.92e-05/0.9365, allocations: 126.7 kB / 1.092 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.6e-05/0.9365, allocations: 33.98 kB / 1.092 GB, free: 2 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.465e-05/0.9366, allocations: 107.7 kB / 1.092 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.701e-05/0.9366, allocations: 26.5 kB / 1.092 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.826e-05/0.9367, allocations: 46.59 kB / 1.092 GB, free: 1.852 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 6.583e-05/0.9368, allocations: 324.2 kB / 1.093 GB, free: 1.531 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002842/0.9371, allocations: 78.3 kB / 1.093 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002805/0.9374, allocations: 116.4 kB / 1.093 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000436/0.9378, allocations: 189.9 kB / 1.093 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.9378, allocations: 0 / 1.093 GB, free: 1.332 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0007014/0.9385, allocations: 267.9 kB / 1.093 GB, free: 1.207 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.977e-05/0.9386, allocations: 39.92 kB / 1.093 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.9386, allocations: 0.875 kB / 1.093 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.259e-05/0.9386, allocations: 6.75 kB / 1.093 GB, free: 1.168 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001542/0.9388, allocations: 23.92 kB / 1.093 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.9388, allocations: 3.109 kB / 1.093 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002524/0.9391, allocations: 47.55 kB / 1.093 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.772e-05/0.9391, allocations: 9.594 kB / 1.093 GB, free: 1.152 MB / 0.8575 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.872e-05/0.9392, allocations: 131.1 kB / 1.093 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.756e-05/0.9392, allocations: 8.391 kB / 1.093 GB, free: 1.02 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004968/0.9397, allocations: 170.5 kB / 1.094 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.698e-06/0.9397, allocations: 1.281 kB / 1.094 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.9397, allocations: 0.75 kB / 1.094 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.9397, allocations: 0.75 kB / 1.094 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006815/0.9404, allocations: 461.2 kB / 1.094 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.9404, allocations: 0 / 1.094 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001068/0.9406, allocations: 16.64 kB / 1.094 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.347e-06/0.9406, allocations: 2.344 kB / 1.094 GB, free: 0.5859 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.451e-05/0.9406, allocations: 6.203 kB / 1.094 GB, free: 0.582 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.9406, allocations: 4.906 kB / 1.094 GB, free: 0.5781 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.9406, allocations: 4 kB / 1.094 GB, free: 0.5742 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004913/0.9411, allocations: 255.9 kB / 1.094 GB, free: 420 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.723e-05/0.9411, allocations: 83.73 kB / 1.094 GB, free: 320 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.455e-05/0.9412, allocations: 10.3 kB / 1.094 GB, free: 312 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001257/0.9413, allocations: 16.59 kB / 1.094 GB, free: 308 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.436e-05/0.9414, allocations: 16.12 kB / 1.094 GB, free: 304 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.9414, allocations: 4.031 kB / 1.094 GB, free: 304 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.041e-05/0.9414, allocations: 98.31 kB / 1.095 GB, free: 220 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9414, allocations: 0.7812 kB / 1.095 GB, free: 220 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002903/0.9417, allocations: 29.97 kB / 1.095 GB, free: 216 kB / 0.8575 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.0008464/0.9426, allocations: 0.8085 MB / 1.095 GB, free: 15.5 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0006469/0.9433, allocations: 238.8 kB / 1.096 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.9433, allocations: 0.7188 kB / 1.096 GB, free: 15.39 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002508/0.9435, allocations: 64.55 kB / 1.096 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003487/0.9439, allocations: 28.05 kB / 1.096 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003669/0.9476, allocations: 1.917 MB / 1.098 GB, free: 13.86 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003479/0.9479, allocations: 0.6952 MB / 1.098 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 7.73e-05/0.948, allocations: 12.89 kB / 1.098 GB, free: 13.16 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.663e-05/0.9481, allocations: 28.8 kB / 1.098 GB, free: 13.14 MB / 0.8731 GB Notification: Performance of SimCode: time 4.81e-07/0.9481, allocations: 0 / 1.098 GB, free: 13.14 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02548/0.9736, allocations: 3.232 MB / 1.101 GB, free: 12.62 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.787/8.76, allocations: 10.53 kB / 1.101 GB, free: 12.62 MB / 0.8731 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) "" Variables in the reference:time,zeroCrossing.u,zeroCrossing.enable,triggeredSampler.u,triggeredSampler.y Variables in the result:booPul1.period,booPul1.shift,booPul1.width,booPul1.y,ramp1.duration,ramp1.height,ramp1.offset,ramp1.startTime,ramp1.y,ramp2.duration,ramp2.height,ramp2.offset,ramp2.startTime,ramp2.y,sin1.u,sin1.y,time,triggeredSampler.trigger,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start,zeroCrossing.enable,zeroCrossing.u,zeroCrossing.y