Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay",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.004757/0.004757, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.001036/0.001036, allocations: 193.8 kB / 16.67 MB, free: 5.969 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.306/1.306, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.498/2.498, allocations: 437 MB / 0.7105 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 67.88 kB / 1.018 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.2658, allocations: 151.6 MB / 1.166 GB, free: 7.441 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001642/0.2674, allocations: 0.6639 MB / 1.167 GB, free: 6.773 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001151/0.2686, allocations: 1.054 MB / 1.168 GB, free: 5.703 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.766e-05/0.2687, allocations: 0 / 1.168 GB, free: 5.703 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.397e-05/0.2687, allocations: 0 / 1.168 GB, free: 5.703 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.474e-05/0.2688, allocations: 15.86 kB / 1.168 GB, free: 5.688 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002354/0.269, allocations: 27.92 kB / 1.168 GB, free: 5.66 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 8.193e-05/0.2691, allocations: 47.83 kB / 1.168 GB, free: 5.613 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 8.783e-05/0.2692, allocations: 12 kB / 1.168 GB, free: 5.602 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 6.354e-05/0.2693, allocations: 19.92 kB / 1.168 GB, free: 5.582 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.082e-05/0.2693, allocations: 19.92 kB / 1.168 GB, free: 5.562 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.215e-05/0.2693, allocations: 4 kB / 1.168 GB, free: 5.559 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 6.292e-05/0.2694, allocations: 19.97 kB / 1.168 GB, free: 5.539 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.066e-05/0.2694, allocations: 15.92 kB / 1.168 GB, free: 5.523 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.208e-05/0.2695, allocations: 15.94 kB / 1.168 GB, free: 5.508 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001261/0.2696, allocations: 59.94 kB / 1.168 GB, free: 5.449 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.2696, allocations: 0 / 1.168 GB, free: 5.449 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.613e-06/0.2696, allocations: 0 / 1.168 GB, free: 5.449 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.2696, allocations: 4 kB / 1.168 GB, free: 5.445 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004945/0.2701, allocations: 363.3 kB / 1.168 GB, free: 5.039 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/0.2702, allocations: 8.031 kB / 1.168 GB, free: 5.031 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.72e-05/0.2702, allocations: 34.75 kB / 1.168 GB, free: 4.988 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.826e-05/0.2703, allocations: 4.938 kB / 1.168 GB, free: 4.984 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001257/0.2704, allocations: 172.3 kB / 1.169 GB, free: 4.777 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/0.2704, allocations: 4.375 kB / 1.169 GB, free: 4.773 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.319e-05/0.2704, allocations: 4.375 kB / 1.169 GB, free: 4.77 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001945/0.2706, allocations: 66.22 kB / 1.169 GB, free: 4.699 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.178e-05/0.2707, allocations: 3.938 kB / 1.169 GB, free: 4.695 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.108e-05/0.2707, allocations: 0 / 1.169 GB, free: 4.695 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.2707, allocations: 0 / 1.169 GB, free: 4.695 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000177/0.2709, allocations: 31.97 kB / 1.169 GB, free: 4.664 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004143/0.2713, allocations: 284.8 kB / 1.169 GB, free: 4.336 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001407/0.2714, allocations: 46.55 kB / 1.169 GB, free: 4.281 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.205e-05/0.2715, allocations: 24.94 kB / 1.169 GB, free: 4.254 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.915e-05/0.2716, allocations: 0 / 1.169 GB, free: 4.254 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001829/0.2717, allocations: 67.38 kB / 1.169 GB, free: 4.176 MB / 0.92 GB Notification: Performance of pre-optimization done (n=5): time 1.453e-06/0.2718, allocations: 4 kB / 1.169 GB, free: 4.172 MB / 0.92 GB Notification: Performance of matching and sorting (n=5): time 0.0003764/0.2721, allocations: 109.5 kB / 1.169 GB, free: 4.059 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.669e-05/0.2722, allocations: 55.41 kB / 1.169 GB, free: 3.992 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.36e-05/0.2723, allocations: 105.8 kB / 1.169 GB, free: 3.879 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.107e-05/0.2723, allocations: 25.7 kB / 1.169 GB, free: 3.848 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.444e-05/0.2723, allocations: 92.08 kB / 1.17 GB, free: 3.754 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.751e-05/0.2724, allocations: 19.88 kB / 1.17 GB, free: 3.734 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.1e-05/0.2724, allocations: 21.72 kB / 1.17 GB, free: 3.707 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001117/0.2725, allocations: 322.8 kB / 1.17 GB, free: 3.383 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.649e-05/0.2726, allocations: 19.98 kB / 1.17 GB, free: 3.363 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001096/0.2728, allocations: 51.72 kB / 1.17 GB, free: 3.301 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001933/0.273, allocations: 75.34 kB / 1.17 GB, free: 3.215 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.273, allocations: 0 / 1.17 GB, free: 3.215 MB / 0.92 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002675/0.2732, allocations: 109.5 kB / 1.17 GB, free: 3.102 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.2733, allocations: 13.97 kB / 1.17 GB, free: 3.09 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.058e-06/0.2733, allocations: 0 / 1.17 GB, free: 3.09 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.868e-06/0.2733, allocations: 0 / 1.17 GB, free: 3.09 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.906e-05/0.2734, allocations: 15.98 kB / 1.17 GB, free: 3.074 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.2734, allocations: 4.141 kB / 1.17 GB, free: 3.07 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.608e-05/0.2735, allocations: 7.984 kB / 1.17 GB, free: 3.062 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.086e-05/0.2735, allocations: 4 kB / 1.17 GB, free: 3.059 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 4 (unitDelay1.y,$PRE.unitDelay1.y,unitDelay1.sampleTrigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * 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.634e-05/0.2736, allocations: 132.8 kB / 1.17 GB, free: 2.922 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.206e-05/0.2736, allocations: 3.953 kB / 1.17 GB, free: 2.918 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002575/0.2739, allocations: 93.61 kB / 1.17 GB, free: 2.816 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.2739, allocations: 320 / 1.17 GB, free: 2.816 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.2739, allocations: 4 kB / 1.17 GB, free: 2.812 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.2739, allocations: 0 / 1.17 GB, free: 2.812 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004071/0.2743, allocations: 346.4 kB / 1.171 GB, free: 2.418 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2743, allocations: 0 / 1.171 GB, free: 2.418 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.086e-05/0.2744, allocations: 11.98 kB / 1.171 GB, free: 2.406 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.2744, allocations: 3.984 kB / 1.171 GB, free: 2.402 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.675e-06/0.2744, allocations: 0 / 1.171 GB, free: 2.402 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.2744, allocations: 0 / 1.171 GB, free: 2.402 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.2744, allocations: 0 / 1.171 GB, free: 2.402 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002638/0.2747, allocations: 187.4 kB / 1.171 GB, free: 2.203 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.684e-05/0.2747, allocations: 81.06 kB / 1.171 GB, free: 2.105 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.674e-05/0.2748, allocations: 7.938 kB / 1.171 GB, free: 2.098 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.307e-05/0.2748, allocations: 3.984 kB / 1.171 GB, free: 2.094 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.294e-05/0.2749, allocations: 11.94 kB / 1.171 GB, free: 2.082 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-06/0.2749, allocations: 0 / 1.171 GB, free: 2.082 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.111e-05/0.2749, allocations: 87.27 kB / 1.171 GB, free: 1.996 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.7e-07/0.2749, allocations: 0 / 1.171 GB, free: 1.996 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002544/0.2752, allocations: 16 kB / 1.171 GB, free: 1.98 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (unitDelay1.sampleTrigger,$whenCondition1,unitDelay1.y) * Number of discrete states: 1 (unitDelay1.u) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0005541/0.2758, allocations: 0.7124 MB / 1.172 GB, free: 1.242 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002384/0.276, allocations: 59.89 kB / 1.172 GB, free: 1.184 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.276, allocations: 4 kB / 1.172 GB, free: 1.18 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001024/0.2761, allocations: 27.92 kB / 1.172 GB, free: 1.152 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002501/0.2764, allocations: 11.92 kB / 1.172 GB, free: 1.141 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001437/0.2778, allocations: 1.368 MB / 1.173 GB, free: 15.68 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002444/0.2781, allocations: 0.6807 MB / 1.174 GB, free: 14.97 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.074e-05/0.2781, allocations: 11.98 kB / 1.174 GB, free: 14.96 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.643e-05/0.2782, allocations: 15.44 kB / 1.174 GB, free: 14.94 MB / 0.9356 GB Notification: Performance of SimCode: time 2.8e-07/0.2782, allocations: 3.938 kB / 1.174 GB, free: 14.94 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01826/0.2964, allocations: 1.706 MB / 1.176 GB, free: 13.33 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.513/7.81, allocations: 14.39 kB / 1.176 GB, free: 13.32 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_UnitDelay.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches