Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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.001456/0.001456, allocations: 109 kB / 17.54 MB, free: 4.781 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.001456/0.001456, allocations: 189.9 kB / 20.71 MB, free: 1.625 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.334/1.334, allocations: 225.6 MB / 249.3 MB, free: 3.211 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.35/2.35, allocations: 443.5 MB / 0.7304 GB, free: 13.96 MB / 0.5763 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.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001898/0.001898, allocations: 67.83 kB / 1.059 GB, free: 0.9844 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2621, allocations: 160.7 MB / 1.216 GB, free: 15.95 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold): time 0.001736/0.2639, allocations: 0.6832 MB / 1.216 GB, free: 15.26 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.00128/0.2652, allocations: 1.078 MB / 1.217 GB, free: 14.17 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.659e-05/0.2652, allocations: 4 kB / 1.217 GB, free: 14.17 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.428e-05/0.2652, allocations: 3.938 kB / 1.217 GB, free: 14.16 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.247e-05/0.2653, allocations: 11.91 kB / 1.217 GB, free: 14.15 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002609/0.2656, allocations: 47.84 kB / 1.217 GB, free: 14.11 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001114/0.2657, allocations: 71.75 kB / 1.217 GB, free: 14.04 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.552e-05/0.2657, allocations: 8 kB / 1.217 GB, free: 14.03 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.82e-05/0.2658, allocations: 27.92 kB / 1.217 GB, free: 14 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.929e-05/0.2659, allocations: 31.89 kB / 1.217 GB, free: 13.97 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.729e-05/0.2659, allocations: 12 kB / 1.217 GB, free: 13.96 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.144e-05/0.266, allocations: 19.98 kB / 1.217 GB, free: 13.94 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.418e-05/0.266, allocations: 19.92 kB / 1.217 GB, free: 13.92 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.867e-05/0.266, allocations: 23.86 kB / 1.218 GB, free: 13.89 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001391/0.2662, allocations: 72.03 kB / 1.218 GB, free: 13.82 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.2662, allocations: 4 kB / 1.218 GB, free: 13.82 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.213e-06/0.2662, allocations: 0 / 1.218 GB, free: 13.82 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.2662, allocations: 0 / 1.218 GB, free: 13.82 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0005883/0.2668, allocations: 387.2 kB / 1.218 GB, free: 13.39 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.386e-05/0.2668, allocations: 8.031 kB / 1.218 GB, free: 13.38 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.252e-05/0.2668, allocations: 46.67 kB / 1.218 GB, free: 13.33 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.14e-05/0.2669, allocations: 4.891 kB / 1.218 GB, free: 13.32 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001199/0.267, allocations: 176.2 kB / 1.218 GB, free: 13.11 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.432e-05/0.267, allocations: 16.3 kB / 1.218 GB, free: 13.1 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.717e-05/0.267, allocations: 4.375 kB / 1.218 GB, free: 13.09 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002035/0.2672, allocations: 74.22 kB / 1.218 GB, free: 13.02 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.338e-06/0.2672, allocations: 7.938 kB / 1.218 GB, free: 13.01 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.473e-05/0.2673, allocations: 4 kB / 1.218 GB, free: 13 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.2673, allocations: 7.984 kB / 1.218 GB, free: 13 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001946/0.2675, allocations: 51.89 kB / 1.218 GB, free: 12.95 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004748/0.2679, allocations: 304.8 kB / 1.219 GB, free: 12.6 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001896/0.2681, allocations: 78.53 kB / 1.219 GB, free: 12.51 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001158/0.2682, allocations: 40.83 kB / 1.219 GB, free: 12.47 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.923e-05/0.2683, allocations: 0 / 1.219 GB, free: 12.47 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002176/0.2685, allocations: 91.5 kB / 1.219 GB, free: 12.37 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=10): time 1.312e-06/0.2685, allocations: 0 / 1.219 GB, free: 12.37 MB / 0.9669 GB Notification: Performance of matching and sorting (n=10): time 0.0004616/0.2689, allocations: 173.5 kB / 1.219 GB, free: 12.19 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.194e-05/0.269, allocations: 63.39 kB / 1.219 GB, free: 12.12 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.335e-05/0.2691, allocations: 101.9 kB / 1.219 GB, free: 12.01 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.462e-05/0.2691, allocations: 33.69 kB / 1.219 GB, free: 11.97 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.25e-05/0.2691, allocations: 88.31 kB / 1.219 GB, free: 11.88 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.926e-05/0.2692, allocations: 31.83 kB / 1.219 GB, free: 11.84 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.391e-05/0.2692, allocations: 29.83 kB / 1.219 GB, free: 11.81 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001256/0.2694, allocations: 330.7 kB / 1.22 GB, free: 11.48 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001159/0.2695, allocations: 35.97 kB / 1.22 GB, free: 11.44 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001412/0.2696, allocations: 62.48 kB / 1.22 GB, free: 11.37 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002323/0.2698, allocations: 102.5 kB / 1.22 GB, free: 11.26 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.2698, allocations: 4 kB / 1.22 GB, free: 11.26 MB / 0.9669 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003076/0.2702, allocations: 141.8 kB / 1.22 GB, free: 11.11 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.2702, allocations: 4 kB / 1.22 GB, free: 11.11 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.369e-06/0.2702, allocations: 0 / 1.22 GB, free: 11.11 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.2702, allocations: 4 kB / 1.22 GB, free: 11.11 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.2703, allocations: 27.92 kB / 1.22 GB, free: 11.08 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.653e-06/0.2703, allocations: 4 kB / 1.22 GB, free: 11.07 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.424e-05/0.2704, allocations: 19.88 kB / 1.22 GB, free: 11.05 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.144e-05/0.2704, allocations: 4 kB / 1.22 GB, free: 11.05 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 12 (firOrdHol.firstTrigger,$PRE.firOrdHol.firstTrigger,firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.c,$PRE.firOrdHol.c,firOrdHol.pre_uSample,$PRE.firOrdHol.pre_uSample,firOrdHol.uSample,$PRE.firOrdHol.uSample,firOrdHol.tSample,$PRE.firOrdHol.tSample) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 16 * 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 9.214e-05/0.2705, allocations: 121.8 kB / 1.22 GB, free: 10.92 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.776e-05/0.2705, allocations: 11.94 kB / 1.22 GB, free: 10.91 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003264/0.2708, allocations: 146 kB / 1.22 GB, free: 10.76 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.2708, allocations: 3.984 kB / 1.22 GB, free: 10.76 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.2708, allocations: 4.234 kB / 1.22 GB, free: 10.75 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.2708, allocations: 0 / 1.22 GB, free: 10.75 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005012/0.2713, allocations: 406.3 kB / 1.221 GB, free: 10.3 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2713, allocations: 4 kB / 1.221 GB, free: 10.3 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.226e-05/0.2714, allocations: 7.984 kB / 1.221 GB, free: 10.29 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.2714, allocations: 8 kB / 1.221 GB, free: 10.28 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.032e-05/0.2714, allocations: 4 kB / 1.221 GB, free: 10.28 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.2714, allocations: 0 / 1.221 GB, free: 10.28 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.2714, allocations: 0 / 1.221 GB, free: 10.28 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003305/0.2717, allocations: 239.3 kB / 1.221 GB, free: 10.03 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.264e-05/0.2718, allocations: 85 kB / 1.221 GB, free: 9.926 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.991e-05/0.2718, allocations: 8 kB / 1.221 GB, free: 9.918 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.941e-05/0.2719, allocations: 11.98 kB / 1.221 GB, free: 9.906 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.033e-05/0.272, allocations: 11.92 kB / 1.221 GB, free: 9.895 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.732e-06/0.272, allocations: 288 / 1.221 GB, free: 9.895 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.704e-05/0.272, allocations: 87.28 kB / 1.221 GB, free: 9.809 MB / 0.9669 GB Notification: Performance of sort global known variables: time 7e-08/0.272, allocations: 0 / 1.221 GB, free: 9.809 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002303/0.2722, allocations: 23.92 kB / 1.221 GB, free: 9.785 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (firOrdHol.sampleTrigger,$whenCondition1,firOrdHol.firstTrigger,firOrdHol.tSample,firOrdHol.uSample,firOrdHol.pre_uSample,firOrdHol.c) * Number of discrete states: 2 (firOrdHol.uSample,firOrdHol.c) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0006388/0.2729, allocations: 0.7686 MB / 1.222 GB, free: 8.992 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002852/0.2732, allocations: 95.88 kB / 1.222 GB, free: 8.898 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2732, allocations: 0 / 1.222 GB, free: 8.898 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001395/0.2733, allocations: 52.02 kB / 1.222 GB, free: 8.848 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002441/0.2735, allocations: 17.64 kB / 1.222 GB, free: 8.832 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001647/0.2752, allocations: 1.51 MB / 1.224 GB, free: 7.23 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002626/0.2755, allocations: 0.6807 MB / 1.224 GB, free: 6.523 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.313e-05/0.2755, allocations: 12.42 kB / 1.224 GB, free: 6.512 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.341e-05/0.2755, allocations: 15.44 kB / 1.224 GB, free: 6.496 MB / 0.9669 GB Notification: Performance of SimCode: time 3.41e-07/0.2755, allocations: 0 / 1.224 GB, free: 6.496 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02338/0.2989, allocations: 2.057 MB / 1.226 GB, free: 4.527 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.987/7.286, allocations: 17.92 kB / 1.226 GB, free: 4.52 MB / 0.9669 GB " [Timeout remaining time 293] (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_FirstOrderHold.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.FirstOrderHold.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: 12.509725920994242]