Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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.001173/0.001173, allocations: 109 kB / 17.54 MB, free: 4.746 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.001138/0.001138, allocations: 185.9 kB / 20.71 MB, free: 1.586 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.32/1.32, allocations: 225.6 MB / 249.3 MB, free: 3.309 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.352/2.352, allocations: 443.5 MB / 0.7304 GB, free: 13.94 MB / 0.5762 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.TriggeredSampler,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 67.89 kB / 1.059 GB, free: 1.008 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.2673, allocations: 160.7 MB / 1.216 GB, free: 15.98 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.001875/0.2691, allocations: 0.7639 MB / 1.216 GB, free: 15.2 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001517/0.2706, allocations: 1.164 MB / 1.217 GB, free: 14.02 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.909e-05/0.2707, allocations: 4 kB / 1.217 GB, free: 14.02 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.802e-05/0.2707, allocations: 3.938 kB / 1.217 GB, free: 14.02 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.121e-05/0.2708, allocations: 11.86 kB / 1.217 GB, free: 14 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004935/0.2713, allocations: 147.5 kB / 1.218 GB, free: 13.86 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001993/0.2715, allocations: 123.7 kB / 1.218 GB, free: 13.74 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001113/0.2716, allocations: 16.17 kB / 1.218 GB, free: 13.72 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001104/0.2717, allocations: 51.89 kB / 1.218 GB, free: 13.67 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001077/0.2718, allocations: 51.81 kB / 1.218 GB, free: 13.62 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.941e-05/0.2719, allocations: 12 kB / 1.218 GB, free: 13.61 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.948e-05/0.2719, allocations: 27.92 kB / 1.218 GB, free: 13.58 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.699e-05/0.272, allocations: 15.92 kB / 1.218 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.748e-05/0.272, allocations: 47.83 kB / 1.218 GB, free: 13.52 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001914/0.2722, allocations: 119.8 kB / 1.218 GB, free: 13.4 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.2722, allocations: 4 kB / 1.218 GB, free: 13.4 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.363e-06/0.2722, allocations: 4 kB / 1.218 GB, free: 13.39 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.431e-06/0.2722, allocations: 0 / 1.218 GB, free: 13.39 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006114/0.2728, allocations: 424.8 kB / 1.218 GB, free: 12.93 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.423e-05/0.2729, allocations: 8.031 kB / 1.218 GB, free: 12.92 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.452e-05/0.2729, allocations: 34.73 kB / 1.218 GB, free: 12.88 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.518e-05/0.2729, allocations: 12.89 kB / 1.218 GB, free: 12.86 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001196/0.2731, allocations: 168.3 kB / 1.219 GB, free: 12.66 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.667e-05/0.2731, allocations: 8.375 kB / 1.219 GB, free: 12.65 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.557e-05/0.2731, allocations: 12.38 kB / 1.219 GB, free: 12.64 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002029/0.2733, allocations: 81.89 kB / 1.219 GB, free: 12.55 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.585e-06/0.2733, allocations: 3.938 kB / 1.219 GB, free: 12.55 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.2733, allocations: 0 / 1.219 GB, free: 12.55 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.2733, allocations: 4 kB / 1.219 GB, free: 12.55 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001875/0.2735, allocations: 43.95 kB / 1.219 GB, free: 12.5 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005003/0.274, allocations: 352.5 kB / 1.219 GB, free: 12.11 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001763/0.2742, allocations: 54.55 kB / 1.219 GB, free: 12.05 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.788e-05/0.2743, allocations: 28.95 kB / 1.219 GB, free: 12.02 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.764e-05/0.2743, allocations: 0 / 1.219 GB, free: 12.02 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002428/0.2746, allocations: 107.3 kB / 1.219 GB, free: 11.9 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.342e-06/0.2746, allocations: 0 / 1.219 GB, free: 11.9 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.0004373/0.275, allocations: 137.6 kB / 1.219 GB, free: 11.76 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.532e-05/0.275, allocations: 59.39 kB / 1.219 GB, free: 11.69 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000103/0.2751, allocations: 117.8 kB / 1.22 GB, free: 11.56 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.562e-05/0.2752, allocations: 29.7 kB / 1.22 GB, free: 11.53 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.394e-05/0.2752, allocations: 100.1 kB / 1.22 GB, free: 11.43 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.289e-05/0.2753, allocations: 19.86 kB / 1.22 GB, free: 11.41 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.892e-05/0.2753, allocations: 37.7 kB / 1.22 GB, free: 11.36 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001252/0.2755, allocations: 322.8 kB / 1.22 GB, free: 11.04 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001596/0.2756, allocations: 55.89 kB / 1.22 GB, free: 10.98 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001845/0.2758, allocations: 89.12 kB / 1.22 GB, free: 10.88 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002849/0.2761, allocations: 154.7 kB / 1.22 GB, free: 10.7 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2761, allocations: 3.938 kB / 1.22 GB, free: 10.7 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004576/0.2766, allocations: 211.1 kB / 1.221 GB, free: 10.48 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.723e-05/0.2766, allocations: 33.7 kB / 1.221 GB, free: 10.44 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.2766, allocations: 4 kB / 1.221 GB, free: 10.44 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.2766, allocations: 3.984 kB / 1.221 GB, free: 10.43 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.747e-05/0.2767, allocations: 20.09 kB / 1.221 GB, free: 10.41 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.554e-06/0.2767, allocations: 3.984 kB / 1.221 GB, free: 10.41 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002026/0.2769, allocations: 35.91 kB / 1.221 GB, free: 10.38 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.219e-05/0.2769, allocations: 19.86 kB / 1.221 GB, free: 10.36 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 9 (triSam1.y,$PRE.triSam1.y,triSam.y,$PRE.triSam.y,booPul.y,$PRE.booPul.y,$whenCondition3,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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 9.642e-05/0.277, allocations: 119.8 kB / 1.221 GB, free: 10.23 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.618e-05/0.277, allocations: 7.953 kB / 1.221 GB, free: 10.22 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000301/0.2774, allocations: 134.2 kB / 1.221 GB, free: 10.09 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.2774, allocations: 4 kB / 1.221 GB, free: 10.08 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.2774, allocations: 0 / 1.221 GB, free: 10.08 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.2774, allocations: 0 / 1.221 GB, free: 10.08 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004396/0.2778, allocations: 374.4 kB / 1.221 GB, free: 9.66 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2778, allocations: 0 / 1.221 GB, free: 9.66 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.329e-05/0.2779, allocations: 19.92 kB / 1.221 GB, free: 9.641 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.2779, allocations: 0 / 1.221 GB, free: 9.641 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.2779, allocations: 0 / 1.221 GB, free: 9.641 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.089e-06/0.2779, allocations: 7.938 kB / 1.221 GB, free: 9.633 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.2779, allocations: 0 / 1.221 GB, free: 9.633 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003079/0.2782, allocations: 215.5 kB / 1.222 GB, free: 9.406 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.502e-05/0.2782, allocations: 89.05 kB / 1.222 GB, free: 9.301 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.372e-05/0.2782, allocations: 0 / 1.222 GB, free: 9.301 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.338e-05/0.2783, allocations: 11.92 kB / 1.222 GB, free: 9.289 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.303e-05/0.2784, allocations: 4 kB / 1.222 GB, free: 9.285 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.935e-06/0.2784, allocations: 4 kB / 1.222 GB, free: 9.281 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.679e-05/0.2784, allocations: 95.27 kB / 1.222 GB, free: 9.188 MB / 0.9669 GB Notification: Performance of sort global known variables: time 9e-08/0.2784, allocations: 0 / 1.222 GB, free: 9.188 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002529/0.2787, allocations: 23.94 kB / 1.222 GB, free: 9.164 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: 6 ($whenCondition3,$whenCondition1,$whenCondition2,booPul.y,triSam.y,triSam1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0006188/0.2793, allocations: 0.7553 MB / 1.222 GB, free: 8.383 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003641/0.2797, allocations: 167.3 kB / 1.223 GB, free: 8.207 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.2797, allocations: 4.312 kB / 1.223 GB, free: 8.203 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001184/0.2798, allocations: 39.91 kB / 1.223 GB, free: 8.164 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002744/0.2801, allocations: 19.86 kB / 1.223 GB, free: 8.145 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002072/0.2821, allocations: 1.723 MB / 1.224 GB, free: 6.305 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002876/0.2824, allocations: 0.6884 MB / 1.225 GB, free: 5.59 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.457e-05/0.2825, allocations: 7.984 kB / 1.225 GB, free: 5.582 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.393e-05/0.2825, allocations: 19.44 kB / 1.225 GB, free: 5.562 MB / 0.9669 GB Notification: Performance of SimCode: time 4.51e-07/0.2825, allocations: 0 / 1.225 GB, free: 5.562 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02552/0.308, allocations: 2.549 MB / 1.228 GB, free: 3.117 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.073/7.382, allocations: 9.938 kB / 1.228 GB, free: 3.109 MB / 0.9669 GB " [Timeout remaining time 293] (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_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_TriggeredSampler.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable booPul.y in file Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.csv. Warning: Get data of variable booPul.y from file Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 12.645003253004688]