Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.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.001388/0.001388, allocations: 108.2 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.001439/0.001439, allocations: 186.7 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.31/1.31, allocations: 225.6 MB / 249.3 MB, free: 3.195 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.548/2.548, allocations: 476.7 MB / 0.7628 GB, free: 15.14 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Validation.TriggeredSampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001749/0.001749, allocations: 63.89 kB / 1.107 GB, free: 5.195 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8155/0.8172, allocations: 168.7 MB / 1.271 GB, free: 7.703 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler): time 0.00166/0.8189, allocations: 0.7566 MB / 1.272 GB, free: 7.254 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.001138/0.82, allocations: 1.184 MB / 1.273 GB, free: 6.387 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.489e-05/0.8201, allocations: 0.9375 kB / 1.273 GB, free: 6.387 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.939e-05/0.8201, allocations: 7.875 kB / 1.273 GB, free: 6.379 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 6.126e-05/0.8201, allocations: 8.094 kB / 1.273 GB, free: 6.375 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004411/0.8206, allocations: 142.6 kB / 1.273 GB, free: 6.301 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.000184/0.8208, allocations: 118.7 kB / 1.274 GB, free: 6.254 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.872e-05/0.8209, allocations: 16.62 kB / 1.274 GB, free: 6.242 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 8.301e-05/0.8209, allocations: 57.02 kB / 1.274 GB, free: 6.215 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.743e-05/0.821, allocations: 52.05 kB / 1.274 GB, free: 6.191 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.902e-05/0.8211, allocations: 11.16 kB / 1.274 GB, free: 6.191 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.818e-05/0.8211, allocations: 24.89 kB / 1.274 GB, free: 6.188 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 2.244e-05/0.8212, allocations: 14.19 kB / 1.274 GB, free: 6.18 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 6.572e-05/0.8212, allocations: 48.28 kB / 1.274 GB, free: 6.152 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001557/0.8214, allocations: 120.3 kB / 1.274 GB, free: 6.113 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.366e-06/0.8214, allocations: 0 / 1.274 GB, free: 6.113 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.182e-06/0.8214, allocations: 0 / 1.274 GB, free: 6.113 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.398e-06/0.8214, allocations: 1 kB / 1.274 GB, free: 6.113 MB / 0.9981 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.0004627/0.8219, allocations: 426.8 kB / 1.274 GB, free: 5.691 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.392e-05/0.8219, allocations: 9.969 kB / 1.274 GB, free: 5.691 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.768e-05/0.8219, allocations: 39.59 kB / 1.274 GB, free: 5.648 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.118e-05/0.822, allocations: 10.89 kB / 1.274 GB, free: 5.645 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.09e-05/0.822, allocations: 172.8 kB / 1.274 GB, free: 5.441 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.415e-05/0.822, allocations: 12.31 kB / 1.274 GB, free: 5.434 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.147e-05/0.8221, allocations: 8.062 kB / 1.275 GB, free: 5.434 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001751/0.8222, allocations: 77.62 kB / 1.275 GB, free: 5.387 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.8222, allocations: 4 kB / 1.275 GB, free: 5.383 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.407e-06/0.8223, allocations: 4.656 kB / 1.275 GB, free: 5.379 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.8223, allocations: 1.656 kB / 1.275 GB, free: 5.379 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001756/0.8224, allocations: 45.06 kB / 1.275 GB, free: 5.371 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003737/0.8228, allocations: 343.6 kB / 1.275 GB, free: 5.066 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001517/0.823, allocations: 64.19 kB / 1.275 GB, free: 5.023 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.111e-05/0.8231, allocations: 31.47 kB / 1.275 GB, free: 5.012 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.444e-05/0.8231, allocations: 1.031 kB / 1.275 GB, free: 5.012 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001863/0.8233, allocations: 86.22 kB / 1.275 GB, free: 4.953 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=8): time 1.412e-06/0.8233, allocations: 0 / 1.275 GB, free: 4.953 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8): time 0.0004064/0.8237, allocations: 149.8 kB / 1.275 GB, free: 4.891 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.265e-05/0.8237, allocations: 64.12 kB / 1.275 GB, free: 4.82 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.127e-05/0.8237, allocations: 116.4 kB / 1.275 GB, free: 4.715 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.866e-05/0.8238, allocations: 28.08 kB / 1.275 GB, free: 4.684 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.77e-05/0.8238, allocations: 102.4 kB / 1.276 GB, free: 4.586 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.666e-05/0.8238, allocations: 16.62 kB / 1.276 GB, free: 4.574 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.562e-05/0.8239, allocations: 42.12 kB / 1.276 GB, free: 4.547 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 4.213e-05/0.8239, allocations: 324.6 kB / 1.276 GB, free: 4.227 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001529/0.8241, allocations: 48.67 kB / 1.276 GB, free: 4.215 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001544/0.8242, allocations: 96.09 kB / 1.276 GB, free: 4.145 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002501/0.8245, allocations: 155.3 kB / 1.276 GB, free: 4.027 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.8245, allocations: 2.719 kB / 1.276 GB, free: 4.027 MB / 0.9981 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004025/0.8249, allocations: 215 kB / 1.276 GB, free: 3.914 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.791e-05/0.8249, allocations: 35.61 kB / 1.276 GB, free: 3.883 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.478e-06/0.8249, allocations: 1.062 kB / 1.276 GB, free: 3.883 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.8249, allocations: 4.328 kB / 1.276 GB, free: 3.883 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.181e-05/0.825, allocations: 13.52 kB / 1.276 GB, free: 3.883 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.825, allocations: 2.125 kB / 1.276 GB, free: 3.883 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001981/0.8252, allocations: 43.58 kB / 1.277 GB, free: 3.871 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.112e-05/0.8253, allocations: 11.69 kB / 1.277 GB, free: 3.867 MB / 0.9981 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 6.363e-05/0.8253, allocations: 126.2 kB / 1.277 GB, free: 3.742 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.321e-05/0.8253, allocations: 5.953 kB / 1.277 GB, free: 3.742 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002667/0.8256, allocations: 125 kB / 1.277 GB, free: 3.672 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.8256, allocations: 4.938 kB / 1.277 GB, free: 3.668 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.798e-06/0.8256, allocations: 1.219 kB / 1.277 GB, free: 3.668 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.8256, allocations: 1.875 kB / 1.277 GB, free: 3.668 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003367/0.826, allocations: 378 kB / 1.277 GB, free: 3.332 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.826, allocations: 0.6562 kB / 1.277 GB, free: 3.332 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.683e-05/0.826, allocations: 11.42 kB / 1.277 GB, free: 3.332 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.826, allocations: 0 / 1.277 GB, free: 3.332 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.025e-06/0.826, allocations: 0.5938 kB / 1.277 GB, free: 3.332 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.826, allocations: 9.531 kB / 1.277 GB, free: 3.324 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.826, allocations: 1.875 kB / 1.277 GB, free: 3.324 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002499/0.8263, allocations: 215.9 kB / 1.277 GB, free: 3.164 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.789e-05/0.8263, allocations: 84.5 kB / 1.277 GB, free: 3.066 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.395e-05/0.8263, allocations: 1.531 kB / 1.277 GB, free: 3.066 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.215e-05/0.8264, allocations: 11.34 kB / 1.277 GB, free: 3.062 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.272e-05/0.8264, allocations: 8.641 kB / 1.277 GB, free: 3.059 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.295e-06/0.8264, allocations: 3.484 kB / 1.277 GB, free: 3.059 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.083e-05/0.8265, allocations: 95.55 kB / 1.278 GB, free: 2.977 MB / 0.9981 GB Notification: Performance of sort global known variables: time 9e-08/0.8265, allocations: 0 / 1.278 GB, free: 2.977 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.000246/0.8267, allocations: 29.33 kB / 1.278 GB, free: 2.969 MB / 0.9981 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.0004257/0.8271, allocations: 0.7579 MB / 1.278 GB, free: 2.277 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.000335/0.8275, allocations: 162.2 kB / 1.278 GB, free: 2.188 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.8275, allocations: 0 / 1.278 GB, free: 2.188 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.8276, allocations: 35.62 kB / 1.279 GB, free: 2.18 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002585/0.8278, allocations: 27.17 kB / 1.279 GB, free: 2.164 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001724/0.8296, allocations: 1.719 MB / 1.28 GB, free: 16.71 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002673/0.8298, allocations: 0.6939 MB / 1.281 GB, free: 16.01 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 2.975e-05/0.8299, allocations: 3.781 kB / 1.281 GB, free: 16.01 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.691e-05/0.8299, allocations: 22.66 kB / 1.281 GB, free: 16 MB / 1.014 GB Notification: Performance of SimCode: time 3.91e-07/0.8299, allocations: 0 / 1.281 GB, free: 16 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02425/0.8541, allocations: 2.552 MB / 1.283 GB, free: 15.55 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.826/7.68, allocations: 7.391 kB / 1.283 GB, free: 15.55 MB / 1.014 GB " [Timeout remaining time 292] (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat --tempDir=temp_Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Discrete_Validation_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Discrete.Validation.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: 13.077066529000149]