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.001488/0.001488, allocations: 110.5 kB / 17.6 MB, free: 4.684 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.002122/0.002122, allocations: 186.8 kB / 20.78 MB, free: 1.52 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.547/1.547, allocations: 225.6 MB / 249.4 MB, free: 3.004 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.733/2.733, allocations: 443.5 MB / 0.7304 GB, free: 13.89 MB / 0.5762 GB " [Timeout remaining time 176] 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.00238/0.00238, allocations: 71.88 kB / 1.059 GB, free: 416 kB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3679/0.3703, allocations: 160.7 MB / 1.216 GB, free: 15.37 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002067/0.3724, allocations: 0.7601 MB / 1.217 GB, free: 14.6 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001673/0.374, allocations: 1.168 MB / 1.218 GB, free: 13.42 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.788e-05/0.3741, allocations: 0 / 1.218 GB, free: 13.42 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.244e-05/0.3741, allocations: 11.88 kB / 1.218 GB, free: 13.41 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.097e-05/0.3742, allocations: 7.938 kB / 1.218 GB, free: 13.4 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005397/0.3747, allocations: 143.6 kB / 1.218 GB, free: 13.26 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002151/0.375, allocations: 123.7 kB / 1.218 GB, free: 13.14 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.3751, allocations: 16.17 kB / 1.218 GB, free: 13.12 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000106/0.3752, allocations: 51.91 kB / 1.218 GB, free: 13.07 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001112/0.3753, allocations: 51.8 kB / 1.218 GB, free: 13.02 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.628e-05/0.3753, allocations: 8 kB / 1.218 GB, free: 13.01 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 7.652e-05/0.3754, allocations: 31.98 kB / 1.218 GB, free: 12.98 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 3.184e-05/0.3754, allocations: 15.92 kB / 1.218 GB, free: 12.96 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.835e-05/0.3755, allocations: 39.86 kB / 1.218 GB, free: 12.92 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002122/0.3757, allocations: 127.6 kB / 1.219 GB, free: 12.8 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.459e-06/0.3757, allocations: 0 / 1.219 GB, free: 12.8 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.714e-06/0.3757, allocations: 0 / 1.219 GB, free: 12.8 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.562e-06/0.3757, allocations: 0 / 1.219 GB, free: 12.8 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.0007117/0.3764, allocations: 428.7 kB / 1.219 GB, free: 12.32 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.3765, allocations: 8.031 kB / 1.219 GB, free: 12.32 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.027e-05/0.3765, allocations: 12.89 kB / 1.219 GB, free: 12.3 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001638/0.3767, allocations: 172.3 kB / 1.219 GB, free: 12.1 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.925e-05/0.3767, allocations: 8.375 kB / 1.219 GB, free: 12.09 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.501e-05/0.3767, allocations: 8.375 kB / 1.219 GB, free: 12.08 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002132/0.377, allocations: 70.22 kB / 1.219 GB, free: 12.01 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.377, allocations: 7.875 kB / 1.219 GB, free: 12 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.328e-05/0.377, allocations: 7.938 kB / 1.219 GB, free: 11.99 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.197e-06/0.377, allocations: 0 / 1.219 GB, free: 11.99 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001884/0.3772, allocations: 55.89 kB / 1.219 GB, free: 11.94 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00055/0.3777, allocations: 340.7 kB / 1.22 GB, free: 11.55 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001813/0.3779, allocations: 58.48 kB / 1.22 GB, free: 11.49 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.827e-05/0.378, allocations: 28.97 kB / 1.22 GB, free: 11.46 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.48e-05/0.378, allocations: 7.984 kB / 1.22 GB, free: 11.45 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002502/0.3783, allocations: 91.31 kB / 1.22 GB, free: 11.35 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.363e-06/0.3783, allocations: 0 / 1.22 GB, free: 11.35 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.0004552/0.3787, allocations: 145.5 kB / 1.22 GB, free: 11.2 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.233e-05/0.3788, allocations: 59.41 kB / 1.22 GB, free: 11.13 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000109/0.3789, allocations: 125.8 kB / 1.22 GB, free: 11 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.914e-05/0.3789, allocations: 25.7 kB / 1.22 GB, free: 10.96 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 6.563e-05/0.379, allocations: 88.14 kB / 1.22 GB, free: 10.88 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.278e-05/0.379, allocations: 27.83 kB / 1.22 GB, free: 10.85 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.568e-05/0.3791, allocations: 37.7 kB / 1.22 GB, free: 10.8 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001527/0.3792, allocations: 326.8 kB / 1.221 GB, free: 10.48 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001595/0.3794, allocations: 51.97 kB / 1.221 GB, free: 10.43 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001803/0.3796, allocations: 85.11 kB / 1.221 GB, free: 10.32 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002944/0.3799, allocations: 150.7 kB / 1.221 GB, free: 10.15 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.3799, allocations: 8 kB / 1.221 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004742/0.3804, allocations: 211.3 kB / 1.221 GB, free: 9.926 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 5.308e-05/0.3804, allocations: 45.69 kB / 1.221 GB, free: 9.875 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.3804, allocations: 320 / 1.221 GB, free: 9.875 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.272e-05/0.3804, allocations: 4 kB / 1.221 GB, free: 9.871 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001054/0.3806, allocations: 11.98 kB / 1.221 GB, free: 9.859 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.145e-05/0.3806, allocations: 4 kB / 1.221 GB, free: 9.855 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001962/0.3808, allocations: 35.89 kB / 1.221 GB, free: 9.82 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.013e-05/0.3808, allocations: 15.98 kB / 1.221 GB, free: 9.805 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.0001172/0.3809, allocations: 129.7 kB / 1.221 GB, free: 9.668 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.551e-05/0.3809, allocations: 7.953 kB / 1.221 GB, free: 9.66 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000306/0.3812, allocations: 122 kB / 1.221 GB, free: 9.535 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.3812, allocations: 0 / 1.221 GB, free: 9.535 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.3812, allocations: 0 / 1.221 GB, free: 9.535 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.3812, allocations: 4.031 kB / 1.221 GB, free: 9.531 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004737/0.3817, allocations: 390.4 kB / 1.222 GB, free: 9.094 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.3817, allocations: 0 / 1.222 GB, free: 9.094 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.767e-05/0.3818, allocations: 8 kB / 1.222 GB, free: 9.086 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.3818, allocations: 3.984 kB / 1.222 GB, free: 9.082 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.558e-06/0.3818, allocations: 0 / 1.222 GB, free: 9.082 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.039e-06/0.3818, allocations: 4 kB / 1.222 GB, free: 9.078 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.3818, allocations: 3.938 kB / 1.222 GB, free: 9.074 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003136/0.3821, allocations: 211.4 kB / 1.222 GB, free: 8.852 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.538e-05/0.3822, allocations: 85.06 kB / 1.222 GB, free: 8.75 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.3822, allocations: 7.938 kB / 1.222 GB, free: 8.742 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.086e-05/0.3823, allocations: 7.984 kB / 1.222 GB, free: 8.734 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.703e-05/0.3823, allocations: 11.92 kB / 1.222 GB, free: 8.723 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.422e-06/0.3823, allocations: 0 / 1.222 GB, free: 8.723 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 5.738e-05/0.3824, allocations: 91.27 kB / 1.222 GB, free: 8.633 MB / 0.9669 GB Notification: Performance of sort global known variables: time 9e-08/0.3824, allocations: 4 kB / 1.222 GB, free: 8.629 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002636/0.3826, allocations: 31.94 kB / 1.222 GB, free: 8.598 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.0001658/0.3828, allocations: 103.2 kB / 1.222 GB, free: 8.488 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003935/0.3832, allocations: 159.3 kB / 1.223 GB, free: 8.32 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3832, allocations: 0 / 1.223 GB, free: 8.32 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.3833, allocations: 48.22 kB / 1.223 GB, free: 8.273 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002829/0.3836, allocations: 14.02 kB / 1.223 GB, free: 8.262 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004807/0.3841, allocations: 194.6 kB / 1.223 GB, free: 8.047 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003599/0.3845, allocations: 0.6885 MB / 1.223 GB, free: 7.332 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 5.178e-05/0.3845, allocations: 11.98 kB / 1.223 GB, free: 7.32 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.724e-05/0.3845, allocations: 15.38 kB / 1.224 GB, free: 7.305 MB / 0.9669 GB Notification: Performance of SimCode: time 4.41e-07/0.3845, allocations: 0 / 1.224 GB, free: 7.305 MB / 0.9669 GB Notification: Performance of Templates: time 0.00492/0.3895, allocations: 1.46 MB / 1.225 GB, free: 5.859 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/jenkins/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.987141012214124]