Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.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.ZeroOrderHold,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold",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.005891/0.005892, allocations: 98.52 kB / 15.73 MB, free: 5.527 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.001396/0.001396, allocations: 187.4 kB / 16.67 MB, free: 5.465 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.338/1.338, allocations: 222.9 MB / 240.4 MB, free: 4.18 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.504/2.504, allocations: 437 MB / 0.7105 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 59.91 kB / 1.018 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2528/0.2541, allocations: 151.6 MB / 1.166 GB, free: 7.488 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold): time 0.001682/0.2558, allocations: 0.6763 MB / 1.167 GB, free: 6.809 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001201/0.257, allocations: 1.066 MB / 1.168 GB, free: 5.727 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.964e-05/0.2571, allocations: 0 / 1.168 GB, free: 5.727 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.875e-05/0.2571, allocations: 3.938 kB / 1.168 GB, free: 5.723 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.397e-05/0.2572, allocations: 11.92 kB / 1.168 GB, free: 5.711 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002617/0.2574, allocations: 39.84 kB / 1.168 GB, free: 5.672 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 8.92e-05/0.2575, allocations: 47.91 kB / 1.168 GB, free: 5.625 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 8.977e-05/0.2576, allocations: 11.98 kB / 1.168 GB, free: 5.613 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 6.286e-05/0.2577, allocations: 23.92 kB / 1.168 GB, free: 5.59 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.127e-05/0.2578, allocations: 23.91 kB / 1.168 GB, free: 5.566 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.34e-05/0.2578, allocations: 7.938 kB / 1.168 GB, free: 5.559 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 5.994e-05/0.2579, allocations: 19.94 kB / 1.168 GB, free: 5.539 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.076e-05/0.2579, allocations: 11.97 kB / 1.168 GB, free: 5.527 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.719e-05/0.2579, allocations: 23.86 kB / 1.168 GB, free: 5.504 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000131/0.2581, allocations: 60.06 kB / 1.168 GB, free: 5.445 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.2581, allocations: 0 / 1.168 GB, free: 5.445 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.232e-06/0.2581, allocations: 0 / 1.168 GB, free: 5.445 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.2581, allocations: 0 / 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005668/0.2587, allocations: 383.2 kB / 1.168 GB, free: 5.02 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.2587, allocations: 8.031 kB / 1.169 GB, free: 5.012 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.248e-05/0.2588, allocations: 30.75 kB / 1.169 GB, free: 4.973 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.109e-05/0.2588, allocations: 4.938 kB / 1.169 GB, free: 4.969 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001112/0.2589, allocations: 168.3 kB / 1.169 GB, free: 4.766 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.304e-05/0.2589, allocations: 8.312 kB / 1.169 GB, free: 4.758 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.513e-05/0.2589, allocations: 8.359 kB / 1.169 GB, free: 4.75 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001965/0.2591, allocations: 62.23 kB / 1.169 GB, free: 4.684 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.2592, allocations: 7.938 kB / 1.169 GB, free: 4.676 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.2592, allocations: 3.984 kB / 1.169 GB, free: 4.672 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.2592, allocations: 3.984 kB / 1.169 GB, free: 4.668 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001897/0.2594, allocations: 39.97 kB / 1.169 GB, free: 4.629 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004452/0.2598, allocations: 276.8 kB / 1.169 GB, free: 4.309 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001628/0.26, allocations: 66.42 kB / 1.169 GB, free: 4.234 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001045/0.2601, allocations: 36.95 kB / 1.169 GB, free: 4.195 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.099e-05/0.2602, allocations: 4.062 kB / 1.169 GB, free: 4.191 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002105/0.2604, allocations: 75.38 kB / 1.169 GB, free: 4.105 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.673e-06/0.2604, allocations: 4 kB / 1.169 GB, free: 4.102 MB / 0.92 GB Notification: Performance of matching and sorting (n=7): time 0.0004188/0.2608, allocations: 125.5 kB / 1.169 GB, free: 3.973 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.836e-05/0.2609, allocations: 51.41 kB / 1.169 GB, free: 3.91 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.574e-05/0.2609, allocations: 105.8 kB / 1.17 GB, free: 3.797 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.708e-05/0.261, allocations: 29.7 kB / 1.17 GB, free: 3.762 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.844e-05/0.261, allocations: 84.14 kB / 1.17 GB, free: 3.676 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.447e-05/0.261, allocations: 23.84 kB / 1.17 GB, free: 3.652 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.672e-05/0.2611, allocations: 29.7 kB / 1.17 GB, free: 3.617 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.8e-05/0.2612, allocations: 322.8 kB / 1.17 GB, free: 3.293 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001054/0.2613, allocations: 23.97 kB / 1.17 GB, free: 3.27 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001226/0.2614, allocations: 60.27 kB / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002195/0.2617, allocations: 96.19 kB / 1.17 GB, free: 3.086 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.2617, allocations: 0 / 1.17 GB, free: 3.086 MB / 0.92 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002791/0.262, allocations: 117.5 kB / 1.17 GB, free: 2.965 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.262, allocations: 4 kB / 1.17 GB, free: 2.961 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.262, allocations: 4 kB / 1.17 GB, free: 2.957 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.262, allocations: 0 / 1.17 GB, free: 2.957 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/0.2621, allocations: 19.92 kB / 1.17 GB, free: 2.938 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.114e-06/0.2621, allocations: 4 kB / 1.17 GB, free: 2.934 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.328e-05/0.2622, allocations: 12.12 kB / 1.17 GB, free: 2.922 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.111e-05/0.2622, allocations: 4 kB / 1.17 GB, free: 2.918 MB / 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: 6 (zerOrdHol.firstTrigger,$PRE.zerOrdHol.firstTrigger,zerOrdHol.sampleTrigger,$whenCondition1,$PRE.zerOrdHol.ySample,zerOrdHol.ySample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.764e-05/0.2623, allocations: 131.5 kB / 1.17 GB, free: 2.781 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.272e-05/0.2623, allocations: 0 / 1.17 GB, free: 2.781 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000285/0.2626, allocations: 110.2 kB / 1.171 GB, free: 2.668 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.2626, allocations: 0 / 1.171 GB, free: 2.668 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.2627, allocations: 4 kB / 1.171 GB, free: 2.664 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.035e-06/0.2627, allocations: 0 / 1.171 GB, free: 2.664 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004269/0.2631, allocations: 370.4 kB / 1.171 GB, free: 2.246 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.754e-06/0.2631, allocations: 0 / 1.171 GB, free: 2.246 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.183e-05/0.2632, allocations: 15.92 kB / 1.171 GB, free: 2.23 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.2632, allocations: 0 / 1.171 GB, free: 2.23 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.946e-06/0.2632, allocations: 7.938 kB / 1.171 GB, free: 2.223 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.2632, allocations: 0 / 1.171 GB, free: 2.223 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.2632, allocations: 0 / 1.171 GB, free: 2.223 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002785/0.2635, allocations: 199.9 kB / 1.171 GB, free: 2.012 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.555e-05/0.2635, allocations: 81.06 kB / 1.171 GB, free: 1.914 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.935e-05/0.2636, allocations: 4.047 kB / 1.171 GB, free: 1.91 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001158/0.2637, allocations: 11.97 kB / 1.171 GB, free: 1.898 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.188e-05/0.2637, allocations: 7.938 kB / 1.171 GB, free: 1.891 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.196e-05/0.2638, allocations: 4 kB / 1.171 GB, free: 1.887 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.633e-05/0.2638, allocations: 83.27 kB / 1.171 GB, free: 1.805 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2638, allocations: 4 kB / 1.171 GB, free: 1.801 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002523/0.2641, allocations: 16 kB / 1.171 GB, free: 1.785 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: 4 (zerOrdHol.sampleTrigger,$whenCondition1,zerOrdHol.ySample,zerOrdHol.firstTrigger) * Number of discrete states: 1 (zerOrdHol.ySample) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * 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.0005481/0.2646, allocations: 0.7397 MB / 1.172 GB, free: 1.02 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002585/0.2649, allocations: 79.88 kB / 1.172 GB, free: 0.9414 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2649, allocations: 0 / 1.172 GB, free: 0.9414 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001132/0.265, allocations: 31.92 kB / 1.172 GB, free: 0.9102 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002573/0.2653, allocations: 17.81 kB / 1.172 GB, free: 0.8945 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001464/0.2667, allocations: 1.408 MB / 1.174 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002022/0.267, allocations: 0.6846 MB / 1.174 GB, free: 14.67 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.84e-05/0.267, allocations: 7.938 kB / 1.174 GB, free: 14.66 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.945e-05/0.2671, allocations: 15.44 kB / 1.174 GB, free: 14.64 MB / 0.9356 GB Notification: Performance of SimCode: time 3e-07/0.2671, allocations: 0 / 1.174 GB, free: 14.64 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01706/0.2841, allocations: 1.819 MB / 1.176 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.294/7.578, allocations: 3.953 kB / 1.176 GB, free: 12.93 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_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_ZeroOrderHold.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_ZeroOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.ZeroOrderHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches