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) 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 10.1.1-maint.10.0.x/package.mo", uses=false) 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: translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zeroCrossing.u|zeroCrossing.enable|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") translateModel(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|zeroCrossing.u|zeroCrossing.enable|triggeredSampler.u|triggeredSampler.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001943/0.00195, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002431/0.002431, allocations: 191.5 kB / 16.14 MB, free: 6.684 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.617/1.617, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.936/2.936, allocations: 437 MB / 0.71 GB, free: 5.34 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 64.05 kB / 0.8686 GB, free: 5.168 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7538/0.7557, allocations: 151.6 MB / 1.017 GB, free: 2.883 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.003022/0.7589, allocations: 0.868 MB / 1.017 GB, free: 2.016 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.002082/0.761, allocations: 1.218 MB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.063e-05/0.7611, allocations: 3.938 kB / 1.019 GB, free: 0.7773 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 5.158e-05/0.7611, allocations: 3.938 kB / 1.019 GB, free: 0.7734 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 9.51e-05/0.7612, allocations: 11.86 kB / 1.019 GB, free: 0.7617 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005612/0.7618, allocations: 136.6 kB / 1.019 GB, free: 0.6289 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0002196/0.762, allocations: 135.7 kB / 1.019 GB, free: 0.4961 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001613/0.7622, allocations: 28.2 kB / 1.019 GB, free: 480 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000147/0.7624, allocations: 63.77 kB / 1.019 GB, free: 416 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001147/0.7625, allocations: 47.81 kB / 1.019 GB, free: 368 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 3.593e-05/0.7625, allocations: 8 kB / 1.019 GB, free: 360 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.807e-05/0.7626, allocations: 23.98 kB / 1.019 GB, free: 336 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 0.0001125/0.7627, allocations: 19.91 kB / 1.019 GB, free: 316 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 0.000113/0.7628, allocations: 55.77 kB / 1.019 GB, free: 260 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002544/0.7631, allocations: 133.6 kB / 1.019 GB, free: 128 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.7631, allocations: 4 kB / 1.019 GB, free: 124 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.413e-06/0.7631, allocations: 4 kB / 1.019 GB, free: 120 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.149e-06/0.7631, allocations: 0 / 1.019 GB, free: 120 kB / 0.7637 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.0009736/0.7641, allocations: 444.8 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.762e-05/0.7642, allocations: 8.031 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.783e-05/0.7643, allocations: 12.84 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00019/0.7645, allocations: 180.2 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.781e-05/0.7645, allocations: 12.38 kB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.541e-05/0.7645, allocations: 12.38 kB / 1.02 GB, free: 15.37 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003223/0.7649, allocations: 101.3 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.7649, allocations: 192 / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.709e-05/0.7649, allocations: 3.938 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.7649, allocations: 4 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003487/0.7653, allocations: 91.91 kB / 1.02 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000725/0.766, allocations: 384.5 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003049/0.7663, allocations: 98.58 kB / 1.021 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001983/0.7665, allocations: 56.81 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 3.073e-05/0.7666, allocations: 7.938 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004121/0.767, allocations: 115.3 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=12): time 1.393e-06/0.767, allocations: 0 / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of matching and sorting (n=12): time 0.0007412/0.7677, allocations: 209.4 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.888e-05/0.7678, allocations: 55.41 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001138/0.7679, allocations: 129.7 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 4.765e-05/0.768, allocations: 41.69 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 8.535e-05/0.7681, allocations: 100.1 kB / 1.021 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.624e-05/0.7681, allocations: 27.61 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.946e-05/0.7682, allocations: 41.7 kB / 1.021 GB, free: 13.81 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002393/0.7685, allocations: 330.7 kB / 1.022 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002573/0.7687, allocations: 75.94 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002782/0.769, allocations: 117.8 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004348/0.7694, allocations: 185.9 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.7695, allocations: 0 / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006443/0.7701, allocations: 264.1 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.541e-05/0.7702, allocations: 43.91 kB / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.7702, allocations: 0 / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.909e-05/0.7702, allocations: 4 kB / 1.022 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001473/0.7704, allocations: 23.92 kB / 1.022 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.294e-05/0.7704, allocations: 8 kB / 1.022 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000257/0.7706, allocations: 47.78 kB / 1.022 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.567e-05/0.7707, allocations: 8 kB / 1.022 GB, free: 12.66 MB / 0.7794 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.0002582/0.7709, allocations: 133.8 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.194e-05/0.771, allocations: 11.89 kB / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005312/0.7715, allocations: 173.8 kB / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.7715, allocations: 0 / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.7715, allocations: 0 / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.7715, allocations: 4 kB / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007586/0.7723, allocations: 462.1 kB / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.7723, allocations: 0 / 1.023 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001124/0.7724, allocations: 15.98 kB / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.7725, allocations: 4 kB / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/0.7725, allocations: 4 kB / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.7725, allocations: 0 / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.7725, allocations: 3.938 kB / 1.023 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000579/0.7731, allocations: 256.1 kB / 1.023 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.105e-05/0.7732, allocations: 93 kB / 1.024 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.313e-05/0.7732, allocations: 0 / 1.024 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001234/0.7733, allocations: 15.98 kB / 1.024 GB, free: 11.4 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.69e-05/0.7734, allocations: 19.91 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.271e-05/0.7734, allocations: 4 kB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 8.059e-05/0.7735, allocations: 97.39 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7735, allocations: 3.938 kB / 1.024 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002765/0.7738, allocations: 28 kB / 1.024 GB, free: 11.25 MB / 0.7794 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.0002129/0.774, allocations: 119.9 kB / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0005841/0.7746, allocations: 231.3 kB / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.7746, allocations: 0 / 1.024 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0002199/0.7748, allocations: 76.12 kB / 1.024 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000325/0.7752, allocations: 17.83 kB / 1.024 GB, free: 10.8 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005722/0.7757, allocations: 231.7 kB / 1.024 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004619/0.7762, allocations: 0.6965 MB / 1.025 GB, free: 9.828 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.702e-05/0.7763, allocations: 8.562 kB / 1.025 GB, free: 9.82 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.834e-05/0.7763, allocations: 15.42 kB / 1.025 GB, free: 9.809 MB / 0.7794 GB Notification: Performance of SimCode: time 2.845e-06/0.7763, allocations: 0 / 1.025 GB, free: 9.809 MB / 0.7794 GB Notification: Performance of Templates: time 0.005424/0.7818, allocations: 1.714 MB / 1.027 GB, free: 8.105 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.makefile (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 & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches