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.008139/0.008139, allocations: 102.5 kB / 15.73 MB, free: 5.508 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.00182/0.00182, allocations: 195.7 kB / 16.67 MB, free: 5.438 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.454/1.454, allocations: 222.9 MB / 240.4 MB, free: 4.297 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.51/2.51, allocations: 390.2 MB / 0.6648 GB, free: 168 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001618/0.001618, allocations: 59.19 kB / 0.9504 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2898/0.2914, allocations: 140.4 MB / 1.087 GB, free: 1.941 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.002382/0.2939, allocations: 0.8107 MB / 1.088 GB, free: 1.129 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001698/0.2956, allocations: 1.196 MB / 1.089 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.567e-05/0.2957, allocations: 0 / 1.089 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.025e-05/0.2958, allocations: 11.86 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001002/0.2959, allocations: 19.86 kB / 1.089 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007054/0.2966, allocations: 151.5 kB / 1.09 GB, free: 15.74 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002994/0.2969, allocations: 163.6 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001424/0.297, allocations: 20.23 kB / 1.09 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001676/0.2972, allocations: 63.88 kB / 1.09 GB, free: 15.5 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001402/0.2974, allocations: 63.73 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.044e-05/0.2974, allocations: 12 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 9.684e-05/0.2975, allocations: 31.92 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.554e-05/0.2976, allocations: 19.97 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 8.622e-05/0.2977, allocations: 55.78 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002757/0.2979, allocations: 151.7 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.298, allocations: 0 / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.322e-06/0.298, allocations: 0 / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.191e-06/0.298, allocations: 4 kB / 1.09 GB, free: 15.17 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.0008924/0.2989, allocations: 440.8 kB / 1.091 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.2989, allocations: 12.03 kB / 1.091 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.701e-05/0.299, allocations: 38.73 kB / 1.091 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.882e-05/0.2991, allocations: 12.89 kB / 1.091 GB, free: 14.61 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001695/0.2992, allocations: 180.2 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.236e-05/0.2993, allocations: 12.31 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.073e-05/0.2993, allocations: 8.375 kB / 1.091 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003412/0.2996, allocations: 106.2 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.2997, allocations: 3.938 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.2997, allocations: 0 / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.2997, allocations: 0 / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000344/0.3001, allocations: 87.91 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000671/0.3007, allocations: 396.5 kB / 1.091 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002801/0.301, allocations: 94.58 kB / 1.092 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001876/0.3012, allocations: 64.81 kB / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.292e-05/0.3013, allocations: 0 / 1.092 GB, free: 13.57 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003582/0.3016, allocations: 115.3 kB / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 1.422e-06/0.3016, allocations: 0 / 1.092 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of matching and sorting (n=12): time 0.0007168/0.3024, allocations: 213.4 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.405e-05/0.3024, allocations: 59.39 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.328e-05/0.3025, allocations: 129.3 kB / 1.092 GB, free: 13.03 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.692e-05/0.3025, allocations: 37.69 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.18e-05/0.3026, allocations: 96.08 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.09e-05/0.3027, allocations: 27.8 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.23e-05/0.3027, allocations: 53.7 kB / 1.092 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.75e-05/0.3028, allocations: 326.8 kB / 1.093 GB, free: 12.47 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002389/0.3031, allocations: 75.94 kB / 1.093 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002537/0.3034, allocations: 112.2 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004356/0.3038, allocations: 185.8 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/0.3038, allocations: 4 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006423/0.3045, allocations: 267.2 kB / 1.093 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 4.437e-05/0.3045, allocations: 41.69 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.3045, allocations: 4 kB / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.3046, allocations: 0 / 1.093 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.3047, allocations: 28.05 kB / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.3047, allocations: 0 / 1.093 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002485/0.305, allocations: 43.88 kB / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.738e-05/0.305, allocations: 12 kB / 1.093 GB, free: 11.66 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 0.0001186/0.3051, allocations: 125.8 kB / 1.093 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.187e-05/0.3052, allocations: 7.953 kB / 1.093 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004843/0.3057, allocations: 181.8 kB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.3057, allocations: 4 kB / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.3057, allocations: 0 / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.3057, allocations: 3.984 kB / 1.094 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006496/0.3063, allocations: 450.2 kB / 1.094 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3064, allocations: 3.938 kB / 1.094 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001029/0.3065, allocations: 19.97 kB / 1.094 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.3065, allocations: 0 / 1.094 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.09e-05/0.3065, allocations: 0 / 1.094 GB, free: 10.81 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.036e-06/0.3065, allocations: 3.938 kB / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.3065, allocations: 0 / 1.094 GB, free: 10.8 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004574/0.307, allocations: 260.1 kB / 1.094 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.346e-05/0.307, allocations: 85.06 kB / 1.094 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.778e-05/0.3071, allocations: 7.922 kB / 1.094 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001235/0.3072, allocations: 15.98 kB / 1.094 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.622e-05/0.3073, allocations: 15.98 kB / 1.094 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.317e-05/0.3073, allocations: 15.98 kB / 1.094 GB, free: 10.38 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.478e-05/0.3073, allocations: 95.02 kB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3073, allocations: 3.938 kB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002764/0.3076, allocations: 35.95 kB / 1.095 GB, free: 10.25 MB / 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.0008122/0.3084, allocations: 0.7998 MB / 1.095 GB, free: 9.426 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0005643/0.309, allocations: 239.1 kB / 1.096 GB, free: 9.18 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.309, allocations: 256 / 1.096 GB, free: 9.18 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000207/0.3092, allocations: 75.88 kB / 1.096 GB, free: 9.105 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003065/0.3096, allocations: 17.7 kB / 1.096 GB, free: 9.09 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002614/0.3122, allocations: 1.91 MB / 1.098 GB, free: 7.07 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002718/0.3125, allocations: 0.6924 MB / 1.098 GB, free: 6.352 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.66e-05/0.3125, allocations: 12.55 kB / 1.098 GB, free: 6.34 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.599e-05/0.3126, allocations: 27.42 kB / 1.098 GB, free: 6.312 MB / 0.8575 GB Notification: Performance of SimCode: time 5.81e-07/0.3126, allocations: 4 kB / 1.098 GB, free: 6.309 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02007/0.3327, allocations: 3.174 MB / 1.101 GB, free: 3.246 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.604/7.937, allocations: 3.984 kB / 1.101 GB, free: 3.242 MB / 0.8575 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