Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001393/0.001393, allocations: 108.2 kB / 17.54 MB, free: 4.746 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 186.7 kB / 20.71 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.283/1.283, allocations: 225.6 MB / 249.3 MB, free: 3.324 MB / 190.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.328/2.328, allocations: 443.5 MB / 0.7304 GB, free: 13.92 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.0018/0.0018, allocations: 67.89 kB / 1.059 GB, free: 0.9141 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2631/0.2649, allocations: 160.7 MB / 1.216 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.001929/0.2668, allocations: 0.8154 MB / 1.216 GB, free: 15.07 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001619/0.2684, allocations: 1.211 MB / 1.218 GB, free: 13.84 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.81e-05/0.2685, allocations: 0 / 1.218 GB, free: 13.84 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.256e-05/0.2685, allocations: 11.88 kB / 1.218 GB, free: 13.83 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.041e-05/0.2686, allocations: 19.84 kB / 1.218 GB, free: 13.81 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005105/0.2691, allocations: 154.5 kB / 1.218 GB, free: 13.66 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002247/0.2694, allocations: 147.7 kB / 1.218 GB, free: 13.52 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.624e-05/0.2694, allocations: 20.22 kB / 1.218 GB, free: 13.5 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001091/0.2695, allocations: 59.83 kB / 1.218 GB, free: 13.44 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001198/0.2697, allocations: 71.78 kB / 1.218 GB, free: 13.37 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.021e-05/0.2697, allocations: 12 kB / 1.218 GB, free: 13.36 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.224e-05/0.2698, allocations: 31.92 kB / 1.218 GB, free: 13.32 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.967e-05/0.2698, allocations: 19.92 kB / 1.218 GB, free: 13.3 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.693e-05/0.2699, allocations: 67.69 kB / 1.218 GB, free: 13.24 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002115/0.2701, allocations: 143.8 kB / 1.218 GB, free: 13.1 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 2.946e-06/0.2701, allocations: 3.938 kB / 1.218 GB, free: 13.09 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.262e-06/0.2701, allocations: 0 / 1.218 GB, free: 13.09 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.27e-06/0.2701, allocations: 0 / 1.218 GB, free: 13.09 MB / 0.9669 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.0006843/0.2708, allocations: 444.8 kB / 1.219 GB, free: 12.6 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.407e-05/0.2708, allocations: 12.03 kB / 1.219 GB, free: 12.59 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.07e-05/0.2709, allocations: 34.75 kB / 1.219 GB, free: 12.55 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.939e-05/0.2709, allocations: 12.89 kB / 1.219 GB, free: 12.54 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001235/0.271, allocations: 183.6 kB / 1.219 GB, free: 12.32 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.697e-05/0.271, allocations: 8.375 kB / 1.219 GB, free: 12.31 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.114e-05/0.2711, allocations: 12.38 kB / 1.219 GB, free: 12.3 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002809/0.2714, allocations: 98.19 kB / 1.219 GB, free: 12.2 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.2714, allocations: 7.922 kB / 1.219 GB, free: 12.19 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.483e-05/0.2714, allocations: 7.984 kB / 1.219 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.2714, allocations: 4 kB / 1.219 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000315/0.2717, allocations: 79.91 kB / 1.219 GB, free: 12.1 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005618/0.2723, allocations: 392.6 kB / 1.22 GB, free: 11.67 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002549/0.2725, allocations: 86.59 kB / 1.22 GB, free: 11.57 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001806/0.2727, allocations: 56.81 kB / 1.22 GB, free: 11.52 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.986e-05/0.2727, allocations: 0 / 1.22 GB, free: 11.52 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002893/0.273, allocations: 115.3 kB / 1.22 GB, free: 11.39 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=12): time 1.363e-06/0.273, allocations: 0 / 1.22 GB, free: 11.39 MB / 0.9669 GB Notification: Performance of matching and sorting (n=12): time 0.0006513/0.2737, allocations: 221.4 kB / 1.22 GB, free: 11.17 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.121e-05/0.2737, allocations: 55.41 kB / 1.22 GB, free: 11.1 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/0.2738, allocations: 129.8 kB / 1.22 GB, free: 10.96 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.455e-05/0.2739, allocations: 33.7 kB / 1.22 GB, free: 10.93 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.704e-05/0.2739, allocations: 100.1 kB / 1.22 GB, free: 10.82 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.691e-05/0.274, allocations: 31.8 kB / 1.22 GB, free: 10.79 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.638e-05/0.274, allocations: 49.69 kB / 1.22 GB, free: 10.74 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001274/0.2742, allocations: 326.8 kB / 1.221 GB, free: 10.41 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002372/0.2744, allocations: 75.94 kB / 1.221 GB, free: 10.34 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002487/0.2747, allocations: 114.3 kB / 1.221 GB, free: 10.21 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004109/0.2751, allocations: 189.7 kB / 1.221 GB, free: 10.01 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.2751, allocations: 0 / 1.221 GB, free: 10.01 MB / 0.9669 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006005/0.2757, allocations: 263 kB / 1.221 GB, free: 9.738 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.071e-05/0.2757, allocations: 41.69 kB / 1.221 GB, free: 9.691 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/0.2757, allocations: 4 kB / 1.221 GB, free: 9.688 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.193e-05/0.2757, allocations: 0 / 1.221 GB, free: 9.688 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000134/0.2759, allocations: 27.91 kB / 1.221 GB, free: 9.66 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.1e-06/0.2759, allocations: 3.938 kB / 1.221 GB, free: 9.656 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002319/0.2761, allocations: 51.97 kB / 1.221 GB, free: 9.605 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.433e-05/0.2761, allocations: 8 kB / 1.221 GB, free: 9.598 MB / 0.9669 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.0001109/0.2762, allocations: 129.8 kB / 1.222 GB, free: 9.461 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.884e-05/0.2763, allocations: 7.953 kB / 1.222 GB, free: 9.453 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00045/0.2767, allocations: 177.9 kB / 1.222 GB, free: 9.273 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.2767, allocations: 4 kB / 1.222 GB, free: 9.27 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.2767, allocations: 0 / 1.222 GB, free: 9.27 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.2767, allocations: 0 / 1.222 GB, free: 9.27 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006609/0.2774, allocations: 458.2 kB / 1.222 GB, free: 8.766 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.2774, allocations: 4 kB / 1.222 GB, free: 8.762 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001002/0.2775, allocations: 15.98 kB / 1.222 GB, free: 8.746 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.2775, allocations: 0 / 1.222 GB, free: 8.746 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.417e-05/0.2775, allocations: 7.984 kB / 1.222 GB, free: 8.738 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.2775, allocations: 3.938 kB / 1.222 GB, free: 8.734 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2775, allocations: 0 / 1.222 GB, free: 8.734 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004639/0.278, allocations: 260 kB / 1.222 GB, free: 8.465 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.742e-05/0.278, allocations: 85.06 kB / 1.223 GB, free: 8.363 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.352e-05/0.278, allocations: 7.938 kB / 1.223 GB, free: 8.355 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/0.2781, allocations: 11.98 kB / 1.223 GB, free: 8.344 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.807e-05/0.2782, allocations: 23.95 kB / 1.223 GB, free: 8.32 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.055e-05/0.2782, allocations: 4 kB / 1.223 GB, free: 8.316 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.198e-05/0.2783, allocations: 95.27 kB / 1.223 GB, free: 8.223 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2783, allocations: 4 kB / 1.223 GB, free: 8.219 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002656/0.2786, allocations: 32 kB / 1.223 GB, free: 8.188 MB / 0.9669 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.0008222/0.2794, allocations: 0.8114 MB / 1.223 GB, free: 7.352 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0005283/0.2799, allocations: 215.2 kB / 1.224 GB, free: 7.129 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2799, allocations: 0 / 1.224 GB, free: 7.129 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.000199/0.2801, allocations: 68.12 kB / 1.224 GB, free: 7.062 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002683/0.2804, allocations: 16 kB / 1.224 GB, free: 7.047 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002589/0.283, allocations: 1.918 MB / 1.226 GB, free: 5.016 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003095/0.2833, allocations: 0.6963 MB / 1.226 GB, free: 4.293 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.761e-05/0.2833, allocations: 16.48 kB / 1.226 GB, free: 4.277 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.23e-05/0.2834, allocations: 27.42 kB / 1.226 GB, free: 4.25 MB / 0.9669 GB Notification: Performance of SimCode: time 5.61e-07/0.2834, allocations: 0 / 1.226 GB, free: 4.25 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02523/0.3086, allocations: 3.188 MB / 1.229 GB, free: 1.168 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.099/7.408, allocations: 0 / 1.229 GB, free: 1.168 MB / 0.9669 GB " [Timeout remaining time 293] (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv --start-time 0 --stop-time 5 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable zeroCrossing.u in file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv. Warning: Get data of variable zeroCrossing.u from file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv failed! Error: Could not read variable zeroCrossing.enable in file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv. Warning: Get data of variable zeroCrossing.enable from file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv failed! Error: Could not read variable triggeredSampler.u in file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv. Warning: Get data of variable triggeredSampler.u from file Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 12.6204555469958]