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.001249/0.001249, allocations: 117.6 kB / 17.13 MB, free: 5.941 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.001266/0.001266, allocations: 197.2 kB / 20.08 MB, free: 3.008 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.429/1.429, allocations: 225.6 MB / 248.5 MB, free: 3.645 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.538/2.538, allocations: 443.5 MB / 0.7293 GB, free: 14.49 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: translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001999/0.001999, allocations: 67.88 kB / 1.057 GB, free: 1.965 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3127/0.3147, allocations: 160.7 MB / 1.214 GB, free: 0.9336 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002155/0.3168, allocations: 0.7629 MB / 1.215 GB, free: 164 kB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.001634/0.3184, allocations: 1.16 MB / 1.216 GB, free: 14.98 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.455e-05/0.3185, allocations: 0 / 1.216 GB, free: 14.98 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.302e-05/0.3185, allocations: 7.875 kB / 1.216 GB, free: 14.98 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 9.077e-05/0.3186, allocations: 19.91 kB / 1.216 GB, free: 14.96 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005525/0.3192, allocations: 135.3 kB / 1.216 GB, free: 14.83 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002141/0.3194, allocations: 127.7 kB / 1.216 GB, free: 14.7 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001038/0.3195, allocations: 16.16 kB / 1.216 GB, free: 14.68 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001071/0.3196, allocations: 47.91 kB / 1.216 GB, free: 14.64 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001084/0.3197, allocations: 51.81 kB / 1.216 GB, free: 14.59 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.799e-05/0.3197, allocations: 12 kB / 1.216 GB, free: 14.57 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.921e-05/0.3198, allocations: 27.98 kB / 1.216 GB, free: 14.55 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.075e-05/0.3199, allocations: 19.91 kB / 1.216 GB, free: 14.53 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.187e-05/0.3199, allocations: 47.84 kB / 1.216 GB, free: 14.48 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002059/0.3201, allocations: 111.6 kB / 1.217 GB, free: 14.37 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3201, allocations: 4 kB / 1.217 GB, free: 14.37 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.162e-06/0.3201, allocations: 0 / 1.217 GB, free: 14.37 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.951e-06/0.3201, allocations: 0 / 1.217 GB, free: 14.37 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.0006831/0.3208, allocations: 428.7 kB / 1.217 GB, free: 13.89 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.429e-05/0.3209, allocations: 12.03 kB / 1.217 GB, free: 13.88 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.812e-05/0.3209, allocations: 12.88 kB / 1.217 GB, free: 13.87 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001428/0.3211, allocations: 168.4 kB / 1.217 GB, free: 13.67 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.079e-05/0.3211, allocations: 8.375 kB / 1.217 GB, free: 13.66 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.704e-05/0.3211, allocations: 12.38 kB / 1.217 GB, free: 13.65 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002159/0.3213, allocations: 70.22 kB / 1.217 GB, free: 13.57 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.299e-05/0.3213, allocations: 11.88 kB / 1.217 GB, free: 13.56 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.142e-05/0.3214, allocations: 3.938 kB / 1.217 GB, free: 13.56 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.3214, allocations: 4 kB / 1.217 GB, free: 13.55 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001941/0.3215, allocations: 47.94 kB / 1.217 GB, free: 13.51 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005265/0.3221, allocations: 340.6 kB / 1.218 GB, free: 13.12 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000178/0.3223, allocations: 62.52 kB / 1.218 GB, free: 13.05 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001083/0.3224, allocations: 32.95 kB / 1.218 GB, free: 13.02 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.699e-05/0.3224, allocations: 4 kB / 1.218 GB, free: 13.02 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002533/0.3226, allocations: 91.31 kB / 1.218 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.322e-06/0.3226, allocations: 0 / 1.218 GB, free: 12.91 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.0004738/0.3231, allocations: 149.8 kB / 1.218 GB, free: 12.76 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.594e-05/0.3232, allocations: 55.41 kB / 1.218 GB, free: 12.7 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001115/0.3233, allocations: 129.7 kB / 1.218 GB, free: 12.56 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.754e-05/0.3233, allocations: 25.7 kB / 1.218 GB, free: 12.53 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.795e-05/0.3234, allocations: 88.14 kB / 1.218 GB, free: 12.44 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.618e-05/0.3234, allocations: 23.84 kB / 1.218 GB, free: 12.41 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.214e-05/0.3235, allocations: 41.7 kB / 1.218 GB, free: 12.37 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001529/0.3236, allocations: 330.8 kB / 1.219 GB, free: 12.04 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001662/0.3238, allocations: 43.97 kB / 1.219 GB, free: 11.99 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001871/0.324, allocations: 89.11 kB / 1.219 GB, free: 11.89 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003077/0.3243, allocations: 154.7 kB / 1.219 GB, free: 11.71 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.3243, allocations: 4 kB / 1.219 GB, free: 11.71 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0005097/0.3248, allocations: 219.1 kB / 1.219 GB, free: 11.48 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 4.4e-05/0.3248, allocations: 33.7 kB / 1.219 GB, free: 11.44 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.26e-06/0.3248, allocations: 0 / 1.219 GB, free: 11.44 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.3249, allocations: 4 kB / 1.219 GB, free: 11.44 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.325, allocations: 11.98 kB / 1.219 GB, free: 11.43 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.077e-05/0.325, allocations: 8.062 kB / 1.219 GB, free: 11.42 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002223/0.3252, allocations: 40.05 kB / 1.219 GB, free: 11.38 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.149e-05/0.3252, allocations: 11.94 kB / 1.219 GB, free: 11.37 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 0.0001119/0.3253, allocations: 129.7 kB / 1.219 GB, free: 11.23 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.84e-05/0.3254, allocations: 7.953 kB / 1.219 GB, free: 11.22 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003274/0.3257, allocations: 126 kB / 1.219 GB, free: 11.09 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.3257, allocations: 0 / 1.219 GB, free: 11.09 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.3257, allocations: 0 / 1.219 GB, free: 11.09 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.758e-06/0.3257, allocations: 4 kB / 1.219 GB, free: 11.09 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004901/0.3262, allocations: 386.4 kB / 1.22 GB, free: 10.66 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.3262, allocations: 0 / 1.22 GB, free: 10.66 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.428e-05/0.3262, allocations: 11.98 kB / 1.22 GB, free: 10.64 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.3262, allocations: 0 / 1.22 GB, free: 10.64 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.546e-06/0.3263, allocations: 0 / 1.22 GB, free: 10.64 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.308e-06/0.3263, allocations: 4 kB / 1.22 GB, free: 10.64 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.3263, allocations: 3.984 kB / 1.22 GB, free: 10.64 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003364/0.3266, allocations: 215.4 kB / 1.22 GB, free: 10.41 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.033e-05/0.3267, allocations: 85.06 kB / 1.22 GB, free: 10.31 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.739e-05/0.3267, allocations: 7.984 kB / 1.22 GB, free: 10.3 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.602e-05/0.3268, allocations: 4 kB / 1.22 GB, free: 10.3 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.949e-05/0.3268, allocations: 15.86 kB / 1.22 GB, free: 10.28 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.563e-06/0.3268, allocations: 0 / 1.22 GB, free: 10.28 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 6.618e-05/0.3269, allocations: 99.27 kB / 1.22 GB, free: 10.18 MB / 0.9669 GB Notification: Performance of sort global known variables: time 7.1e-08/0.3269, allocations: 0 / 1.22 GB, free: 10.18 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002783/0.3271, allocations: 27.94 kB / 1.22 GB, free: 10.16 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.0001754/0.3273, allocations: 103.2 kB / 1.22 GB, free: 10.05 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0004052/0.3277, allocations: 163.5 kB / 1.221 GB, free: 9.875 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3277, allocations: 4.062 kB / 1.221 GB, free: 9.871 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001268/0.3279, allocations: 35.92 kB / 1.221 GB, free: 9.836 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002783/0.3281, allocations: 11.98 kB / 1.221 GB, free: 9.824 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00048/0.3286, allocations: 208.6 kB / 1.221 GB, free: 9.586 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003312/0.3289, allocations: 0.6924 MB / 1.221 GB, free: 8.867 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.489e-05/0.329, allocations: 19.36 kB / 1.221 GB, free: 8.848 MB / 0.9669 GB Notification: Performance of SimCode: time 3.81e-07/0.329, allocations: 0 / 1.221 GB, free: 8.848 MB / 0.9669 GB Notification: Performance of Templates: time 0.003402/0.3324, allocations: 1.284 MB / 1.223 GB, free: 7.566 MB / 0.9669 GB " [Timeout remaining time 300] make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile [Timeout 300] (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 & ./Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.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: 10.132356262998655]