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.001716/0.001716, allocations: 111.5 kB / 16.41 MB, free: 6.445 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.00187/0.00187, allocations: 191.7 kB / 19.36 MB, free: 3.727 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.464/1.464, allocations: 222.9 MB / 245.1 MB, free: 4.332 MB / 190.1 MB " [Timeout remaining time 178] 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.733/2.733, allocations: 437.1 MB / 0.7171 GB, free: 4.523 MB / 0.5606 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.002132/0.002133, allocations: 67.89 kB / 1.027 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3524/0.3545, allocations: 151.6 MB / 1.175 GB, free: 6.363 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing): time 0.00252/0.3571, allocations: 0.8062 MB / 1.176 GB, free: 5.551 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001892/0.359, allocations: 1.214 MB / 1.177 GB, free: 4.32 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.847e-05/0.3591, allocations: 0 / 1.177 GB, free: 4.32 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 3.561e-05/0.3591, allocations: 3.938 kB / 1.177 GB, free: 4.316 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 8.508e-05/0.3592, allocations: 15.86 kB / 1.177 GB, free: 4.301 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005506/0.3598, allocations: 155.5 kB / 1.177 GB, free: 4.148 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002106/0.36, allocations: 151.7 kB / 1.177 GB, free: 4 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001027/0.3601, allocations: 28.2 kB / 1.177 GB, free: 3.973 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001003/0.3602, allocations: 67.81 kB / 1.177 GB, free: 3.906 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00011/0.3604, allocations: 63.73 kB / 1.177 GB, free: 3.844 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.602e-05/0.3604, allocations: 16 kB / 1.177 GB, free: 3.828 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 8.608e-05/0.3605, allocations: 27.98 kB / 1.177 GB, free: 3.801 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.242e-05/0.3605, allocations: 19.92 kB / 1.177 GB, free: 3.781 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 7.978e-05/0.3606, allocations: 63.75 kB / 1.177 GB, free: 3.719 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002231/0.3608, allocations: 143.7 kB / 1.177 GB, free: 3.578 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.231e-06/0.3609, allocations: 8 kB / 1.177 GB, free: 3.57 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.322e-06/0.3609, allocations: 0 / 1.177 GB, free: 3.57 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.031e-06/0.3609, allocations: 0 / 1.177 GB, free: 3.57 MB / 0.92 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.0007608/0.3616, allocations: 444.8 kB / 1.178 GB, free: 3.078 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.3617, allocations: 12.03 kB / 1.178 GB, free: 3.066 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.737e-05/0.3617, allocations: 38.75 kB / 1.178 GB, free: 3.02 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.871e-05/0.3618, allocations: 12.89 kB / 1.178 GB, free: 3.008 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001477/0.3619, allocations: 183.2 kB / 1.178 GB, free: 2.793 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.731e-05/0.362, allocations: 8.375 kB / 1.178 GB, free: 2.785 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.904e-05/0.362, allocations: 8.375 kB / 1.178 GB, free: 2.777 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000305/0.3623, allocations: 106.1 kB / 1.178 GB, free: 2.668 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.3623, allocations: 3.938 kB / 1.178 GB, free: 2.664 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.3624, allocations: 0 / 1.178 GB, free: 2.664 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.3624, allocations: 0 / 1.178 GB, free: 2.664 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003565/0.3627, allocations: 87.91 kB / 1.178 GB, free: 2.578 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006151/0.3633, allocations: 392.6 kB / 1.179 GB, free: 2.145 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002872/0.3636, allocations: 86.66 kB / 1.179 GB, free: 2.051 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001897/0.3638, allocations: 56.81 kB / 1.179 GB, free: 1.992 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.51e-05/0.3639, allocations: 4 kB / 1.179 GB, free: 1.988 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003586/0.3642, allocations: 127.2 kB / 1.179 GB, free: 1.852 MB / 0.92 GB Notification: Performance of pre-optimization done (n=12): time 1.473e-06/0.3643, allocations: 0 / 1.179 GB, free: 1.852 MB / 0.92 GB Notification: Performance of matching and sorting (n=12): time 0.000695/0.365, allocations: 209.5 kB / 1.179 GB, free: 1.641 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.197e-05/0.365, allocations: 51.41 kB / 1.179 GB, free: 1.578 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001223/0.3651, allocations: 133.8 kB / 1.179 GB, free: 1.438 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 3.399e-05/0.3652, allocations: 37.64 kB / 1.179 GB, free: 1.395 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 7.245e-05/0.3653, allocations: 104.1 kB / 1.179 GB, free: 1.289 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.132e-05/0.3653, allocations: 27.75 kB / 1.179 GB, free: 1.262 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001037/0.3654, allocations: 53.69 kB / 1.18 GB, free: 1.203 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001505/0.3656, allocations: 326.8 kB / 1.18 GB, free: 0.875 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002496/0.3658, allocations: 79.94 kB / 1.18 GB, free: 0.7969 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002723/0.3661, allocations: 110.4 kB / 1.18 GB, free: 0.6758 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004537/0.3666, allocations: 192.7 kB / 1.18 GB, free: 480 kB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3666, allocations: 0 / 1.18 GB, free: 480 kB / 0.92 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0006418/0.3672, allocations: 263.1 kB / 1.18 GB, free: 204 kB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.236e-05/0.3673, allocations: 37.64 kB / 1.18 GB, free: 160 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.3673, allocations: 4 kB / 1.18 GB, free: 156 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.3673, allocations: 0 / 1.18 GB, free: 156 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.3674, allocations: 27.97 kB / 1.181 GB, free: 128 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.3675, allocations: 128 / 1.181 GB, free: 128 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002462/0.3677, allocations: 43.91 kB / 1.181 GB, free: 84 kB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.963e-05/0.3678, allocations: 12 kB / 1.181 GB, free: 72 kB / 0.92 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.000136/0.3679, allocations: 133.7 kB / 1.181 GB, free: 15.93 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.125e-05/0.3679, allocations: 11.94 kB / 1.181 GB, free: 15.92 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004878/0.3684, allocations: 173.8 kB / 1.181 GB, free: 15.74 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.3684, allocations: 4 kB / 1.181 GB, free: 15.74 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.3685, allocations: 0 / 1.181 GB, free: 15.74 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.3685, allocations: 0 / 1.181 GB, free: 15.74 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007106/0.3692, allocations: 458.3 kB / 1.181 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3692, allocations: 0 / 1.181 GB, free: 15.23 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.3693, allocations: 15.92 kB / 1.181 GB, free: 15.22 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.3693, allocations: 8 kB / 1.181 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.278e-05/0.3693, allocations: 3.984 kB / 1.181 GB, free: 15.21 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.337e-06/0.3693, allocations: 3.938 kB / 1.181 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.3693, allocations: 0 / 1.181 GB, free: 15.2 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004806/0.3698, allocations: 260.1 kB / 1.182 GB, free: 14.93 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.85e-05/0.3699, allocations: 85.06 kB / 1.182 GB, free: 14.83 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.42e-05/0.3699, allocations: 3.938 kB / 1.182 GB, free: 14.83 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001245/0.3701, allocations: 15.98 kB / 1.182 GB, free: 14.81 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.213e-05/0.3701, allocations: 19.97 kB / 1.182 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.152e-05/0.3701, allocations: 4 kB / 1.182 GB, free: 14.79 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 7.223e-05/0.3702, allocations: 95.27 kB / 1.182 GB, free: 14.7 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3702, allocations: 3.938 kB / 1.182 GB, free: 14.69 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.00027/0.3705, allocations: 32 kB / 1.182 GB, free: 14.66 MB / 0.9356 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.0008822/0.3714, allocations: 0.806 MB / 1.183 GB, free: 13.83 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0006003/0.372, allocations: 231.2 kB / 1.183 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.372, allocations: 0 / 1.183 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0002207/0.3722, allocations: 72.12 kB / 1.183 GB, free: 13.52 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002911/0.3726, allocations: 16 kB / 1.183 GB, free: 13.5 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002719/0.3753, allocations: 1.927 MB / 1.185 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003375/0.3756, allocations: 0.6924 MB / 1.185 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 5.261e-05/0.3757, allocations: 12.55 kB / 1.185 GB, free: 10.73 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.66e-05/0.3758, allocations: 27.42 kB / 1.186 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of SimCode: time 3e-07/0.3758, allocations: 0 / 1.186 GB, free: 10.71 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02438/0.4002, allocations: 3.186 MB / 1.189 GB, free: 7.633 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.968/8.369, allocations: 9.172 kB / 1.189 GB, free: 7.629 MB / 0.9356 GB " [Timeout remaining time 292] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing_res.mat --tempDir=temp_Buildings_10_Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=400 --tolerance=1e-06 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.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Validation_ZeroCrossing.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Validation.ZeroCrossing.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 14.344093946972862]