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.006966/0.006966, allocations: 96.39 kB / 15.73 MB, free: 6.484 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.001836/0.001837, allocations: 192.3 kB / 16.67 MB, free: 6.391 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.288/1.288, allocations: 222.9 MB / 240.4 MB, free: 4.324 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.464/2.464, allocations: 437 MB / 0.7105 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 59.91 kB / 1.018 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2575, allocations: 151.6 MB / 1.166 GB, free: 7.32 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.UnitDelay): time 0.001726/0.2593, allocations: 0.6582 MB / 1.167 GB, free: 6.656 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001252/0.2606, allocations: 1.058 MB / 1.168 GB, free: 5.582 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.416e-05/0.2606, allocations: 0 / 1.168 GB, free: 5.582 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.945e-05/0.2607, allocations: 3.938 kB / 1.168 GB, free: 5.578 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.497e-05/0.2607, allocations: 7.938 kB / 1.168 GB, free: 5.57 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002632/0.261, allocations: 47.83 kB / 1.168 GB, free: 5.523 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 8.752e-05/0.2611, allocations: 35.92 kB / 1.168 GB, free: 5.488 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 9.729e-05/0.2612, allocations: 11.98 kB / 1.168 GB, free: 5.477 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 6.155e-05/0.2613, allocations: 15.94 kB / 1.168 GB, free: 5.461 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.375e-05/0.2613, allocations: 27.89 kB / 1.168 GB, free: 5.434 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.456e-05/0.2614, allocations: 4 kB / 1.168 GB, free: 5.43 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 6.149e-05/0.2614, allocations: 12 kB / 1.168 GB, free: 5.418 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.14e-05/0.2614, allocations: 15.92 kB / 1.168 GB, free: 5.402 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.086e-05/0.2615, allocations: 11.94 kB / 1.168 GB, free: 5.391 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000135/0.2616, allocations: 67.94 kB / 1.168 GB, free: 5.324 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.2616, allocations: 3.938 kB / 1.168 GB, free: 5.32 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.523e-06/0.2616, allocations: 0 / 1.168 GB, free: 5.32 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.109e-06/0.2617, allocations: 0 / 1.168 GB, free: 5.32 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.0005001/0.2622, allocations: 359.3 kB / 1.168 GB, free: 4.918 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.2622, allocations: 8.031 kB / 1.168 GB, free: 4.91 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.642e-05/0.2622, allocations: 42.75 kB / 1.168 GB, free: 4.859 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.814e-05/0.2623, allocations: 0.9375 kB / 1.168 GB, free: 4.859 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001077/0.2624, allocations: 172.3 kB / 1.169 GB, free: 4.652 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.544e-06/0.2624, allocations: 4.375 kB / 1.169 GB, free: 4.648 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.484e-05/0.2624, allocations: 4.375 kB / 1.169 GB, free: 4.645 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001878/0.2626, allocations: 58.23 kB / 1.169 GB, free: 4.582 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.2626, allocations: 7.875 kB / 1.169 GB, free: 4.574 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.2626, allocations: 0 / 1.169 GB, free: 4.574 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.958e-06/0.2627, allocations: 0 / 1.169 GB, free: 4.574 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001745/0.2628, allocations: 43.95 kB / 1.169 GB, free: 4.531 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004077/0.2633, allocations: 272.9 kB / 1.169 GB, free: 4.215 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001219/0.2634, allocations: 42.55 kB / 1.169 GB, free: 4.164 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.821e-05/0.2635, allocations: 28.88 kB / 1.169 GB, free: 4.133 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.305e-05/0.2635, allocations: 7.984 kB / 1.169 GB, free: 4.125 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001886/0.2637, allocations: 71.39 kB / 1.169 GB, free: 4.043 MB / 0.92 GB Notification: Performance of pre-optimization done (n=5): time 1.533e-06/0.2637, allocations: 0 / 1.169 GB, free: 4.043 MB / 0.92 GB Notification: Performance of matching and sorting (n=5): time 0.0003556/0.2641, allocations: 101.6 kB / 1.169 GB, free: 3.938 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.969e-05/0.2641, allocations: 55.39 kB / 1.169 GB, free: 3.871 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.179e-05/0.2642, allocations: 110 kB / 1.169 GB, free: 3.754 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.559e-05/0.2642, allocations: 33.69 kB / 1.169 GB, free: 3.715 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.652e-05/0.2643, allocations: 92.08 kB / 1.17 GB, free: 3.621 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.648e-05/0.2643, allocations: 11.91 kB / 1.17 GB, free: 3.609 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.144e-05/0.2644, allocations: 25.7 kB / 1.17 GB, free: 3.578 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.262e-05/0.2645, allocations: 314.8 kB / 1.17 GB, free: 3.262 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.462e-05/0.2646, allocations: 19.98 kB / 1.17 GB, free: 3.242 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001125/0.2647, allocations: 63.47 kB / 1.17 GB, free: 3.168 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001885/0.2649, allocations: 71.33 kB / 1.17 GB, free: 3.086 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.2649, allocations: 3.938 kB / 1.17 GB, free: 3.082 MB / 0.92 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002469/0.2651, allocations: 101.5 kB / 1.17 GB, free: 2.977 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.2652, allocations: 8 kB / 1.17 GB, free: 2.969 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.2652, allocations: 0 / 1.17 GB, free: 2.969 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.2652, allocations: 0 / 1.17 GB, free: 2.969 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.2653, allocations: 19.92 kB / 1.17 GB, free: 2.949 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.2653, allocations: 0 / 1.17 GB, free: 2.949 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.764e-05/0.2654, allocations: 12.11 kB / 1.17 GB, free: 2.938 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.2654, allocations: 8 kB / 1.17 GB, free: 2.93 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 7.612e-05/0.2655, allocations: 121.7 kB / 1.17 GB, free: 2.801 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.194e-05/0.2655, allocations: 4.203 kB / 1.17 GB, free: 2.797 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002565/0.2658, allocations: 93.61 kB / 1.17 GB, free: 2.695 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.2658, allocations: 7.984 kB / 1.17 GB, free: 2.688 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.2658, allocations: 3.938 kB / 1.17 GB, free: 2.684 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.2658, allocations: 0 / 1.17 GB, free: 2.684 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003886/0.2662, allocations: 342.4 kB / 1.171 GB, free: 2.293 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2662, allocations: 0 / 1.171 GB, free: 2.293 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.039e-05/0.2663, allocations: 8 kB / 1.171 GB, free: 2.285 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.2663, allocations: 3.984 kB / 1.171 GB, free: 2.281 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.265e-06/0.2663, allocations: 0 / 1.171 GB, free: 2.281 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.2663, allocations: 0 / 1.171 GB, free: 2.281 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.093e-06/0.2663, allocations: 4 kB / 1.171 GB, free: 2.277 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002524/0.2666, allocations: 183.4 kB / 1.171 GB, free: 2.082 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.508e-05/0.2666, allocations: 81.06 kB / 1.171 GB, free: 1.984 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.443e-05/0.2666, allocations: 4 kB / 1.171 GB, free: 1.98 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.415e-05/0.2667, allocations: 11.98 kB / 1.171 GB, free: 1.969 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.38e-05/0.2668, allocations: 3.938 kB / 1.171 GB, free: 1.965 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.145e-06/0.2668, allocations: 7.984 kB / 1.171 GB, free: 1.957 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.7e-05/0.2668, allocations: 87.28 kB / 1.171 GB, free: 1.871 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2668, allocations: 0 / 1.171 GB, free: 1.871 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002427/0.2671, allocations: 8 kB / 1.171 GB, free: 1.863 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.0005112/0.2676, allocations: 0.7241 MB / 1.172 GB, free: 1.113 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002279/0.2678, allocations: 55.89 kB / 1.172 GB, free: 1.059 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2678, allocations: 0 / 1.172 GB, free: 1.059 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001003/0.2679, allocations: 28.22 kB / 1.172 GB, free: 1.031 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002538/0.2682, allocations: 21.97 kB / 1.172 GB, free: 1.012 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001367/0.2696, allocations: 1.371 MB / 1.173 GB, free: 15.55 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002075/0.2698, allocations: 0.6923 MB / 1.174 GB, free: 14.83 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.98e-05/0.2698, allocations: 4 kB / 1.174 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.381e-05/0.2699, allocations: 11.44 kB / 1.174 GB, free: 14.81 MB / 0.9356 GB Notification: Performance of SimCode: time 2.1e-07/0.2699, allocations: 0 / 1.174 GB, free: 14.81 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.016/0.2859, allocations: 1.709 MB / 1.176 GB, free: 13.2 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.42/7.706, allocations: 10.14 kB / 1.176 GB, free: 13.2 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