Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") translateModel(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|booPul.y|sin1.y|triSam.y|triSam1.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001644/0.001643, allocations: 108.8 kB / 16.37 MB, free: 6.473 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001941/0.001942, allocations: 193.1 kB / 17.31 MB, free: 5.824 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.488/1.488, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.429/2.429, allocations: 390.3 MB / 0.6655 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001552, allocations: 65.5 kB / 0.814 GB, free: 32.65 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.307/0.3086, allocations: 140.4 MB / 0.9511 GB, free: 8.09 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.00226/0.3109, allocations: 0.7613 MB / 0.9519 GB, free: 7.324 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001498/0.3124, allocations: 1.161 MB / 0.953 GB, free: 6.148 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.664e-05/0.3125, allocations: 0 / 0.953 GB, free: 6.148 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.756e-05/0.3125, allocations: 3.938 kB / 0.953 GB, free: 6.145 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 6.991e-05/0.3126, allocations: 11.88 kB / 0.953 GB, free: 6.133 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005569/0.3132, allocations: 139.7 kB / 0.9532 GB, free: 5.996 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002029/0.3134, allocations: 127.8 kB / 0.9533 GB, free: 5.871 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001312/0.3135, allocations: 28.17 kB / 0.9533 GB, free: 5.84 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001035/0.3136, allocations: 47.89 kB / 0.9534 GB, free: 5.793 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 9.84e-05/0.3138, allocations: 51.81 kB / 0.9534 GB, free: 5.742 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.543e-05/0.3138, allocations: 15.94 kB / 0.9534 GB, free: 5.727 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.178e-05/0.3139, allocations: 23.98 kB / 0.9534 GB, free: 5.703 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.396e-05/0.3139, allocations: 15.98 kB / 0.9535 GB, free: 5.688 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.848e-05/0.314, allocations: 47.78 kB / 0.9535 GB, free: 5.641 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001804/0.3142, allocations: 119.7 kB / 0.9536 GB, free: 5.523 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3142, allocations: 0 / 0.9536 GB, free: 5.523 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.273e-06/0.3142, allocations: 0 / 0.9536 GB, free: 5.523 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.3142, allocations: 0 / 0.9536 GB, free: 5.523 MB / 0.7325 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.0005717/0.3148, allocations: 416.9 kB / 0.954 GB, free: 5.062 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.237e-05/0.3148, allocations: 8.031 kB / 0.954 GB, free: 5.055 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.394e-05/0.3149, allocations: 16.84 kB / 0.954 GB, free: 5.039 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001684/0.315, allocations: 176.2 kB / 0.9542 GB, free: 4.828 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.821e-05/0.3151, allocations: 8.375 kB / 0.9542 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.54e-05/0.3151, allocations: 4.375 kB / 0.9542 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001927/0.3153, allocations: 78.16 kB / 0.9543 GB, free: 4.734 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.3153, allocations: 3.938 kB / 0.9543 GB, free: 4.73 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.123e-05/0.3153, allocations: 0 / 0.9543 GB, free: 4.73 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.143e-06/0.3153, allocations: 0 / 0.9543 GB, free: 4.73 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001752/0.3155, allocations: 55.89 kB / 0.9543 GB, free: 4.676 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005001/0.316, allocations: 348.5 kB / 0.9547 GB, free: 4.285 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001597/0.3162, allocations: 58.55 kB / 0.9547 GB, free: 4.219 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001201/0.3163, allocations: 37 kB / 0.9548 GB, free: 4.18 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.144e-05/0.3163, allocations: 3.984 kB / 0.9548 GB, free: 4.176 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002273/0.3166, allocations: 83.36 kB / 0.9549 GB, free: 4.082 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 1.623e-06/0.3166, allocations: 0 / 0.9549 GB, free: 4.082 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8): time 0.0004129/0.317, allocations: 145.5 kB / 0.955 GB, free: 3.934 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.696e-05/0.3171, allocations: 59.41 kB / 0.9551 GB, free: 3.863 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.208e-05/0.3172, allocations: 121.8 kB / 0.9552 GB, free: 3.734 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.758e-05/0.3172, allocations: 33.7 kB / 0.9552 GB, free: 3.695 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.577e-05/0.3172, allocations: 99.97 kB / 0.9553 GB, free: 3.594 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.228e-05/0.3173, allocations: 23.73 kB / 0.9553 GB, free: 3.57 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.2e-05/0.3174, allocations: 33.7 kB / 0.9554 GB, free: 3.531 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001143/0.3175, allocations: 326.8 kB / 0.9557 GB, free: 3.203 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001501/0.3176, allocations: 51.97 kB / 0.9557 GB, free: 3.152 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001635/0.3178, allocations: 96.23 kB / 0.9558 GB, free: 3.043 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002755/0.3181, allocations: 146.8 kB / 0.9559 GB, free: 2.875 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.3181, allocations: 0 / 0.9559 GB, free: 2.875 MB / 0.7325 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004367/0.3185, allocations: 211.2 kB / 0.9561 GB, free: 2.656 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.258e-05/0.3186, allocations: 45.72 kB / 0.9562 GB, free: 2.605 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.3186, allocations: 0 / 0.9562 GB, free: 2.605 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.3186, allocations: 4 kB / 0.9562 GB, free: 2.602 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001096/0.3187, allocations: 15.92 kB / 0.9562 GB, free: 2.586 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.3188, allocations: 4 kB / 0.9562 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002013/0.319, allocations: 35.86 kB / 0.9562 GB, free: 2.547 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.543e-05/0.319, allocations: 4 kB / 0.9562 GB, free: 2.543 MB / 0.7325 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.0001101/0.3191, allocations: 134.4 kB / 0.9564 GB, free: 2.406 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.473e-05/0.3191, allocations: 4 kB / 0.9564 GB, free: 2.402 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002969/0.3194, allocations: 130 kB / 0.9565 GB, free: 2.27 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.461e-06/0.3195, allocations: 4 kB / 0.9565 GB, free: 2.266 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.3195, allocations: 0 / 0.9565 GB, free: 2.266 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.3195, allocations: 0 / 0.9565 GB, free: 2.266 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000448/0.3199, allocations: 394.2 kB / 0.9569 GB, free: 1.824 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.3199, allocations: 0 / 0.9569 GB, free: 1.824 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.114e-05/0.32, allocations: 11.98 kB / 0.9569 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.32, allocations: 0 / 0.9569 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.657e-06/0.32, allocations: 0 / 0.9569 GB, free: 1.812 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.547e-06/0.32, allocations: 4 kB / 0.9569 GB, free: 1.809 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.32, allocations: 3.938 kB / 0.9569 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003066/0.3204, allocations: 212 kB / 0.9571 GB, free: 1.582 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.193e-05/0.3204, allocations: 88.95 kB / 0.9572 GB, free: 1.477 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.812e-05/0.3204, allocations: 0 / 0.9572 GB, free: 1.477 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.482e-05/0.3205, allocations: 15.92 kB / 0.9572 GB, free: 1.461 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.35e-05/0.3206, allocations: 11.92 kB / 0.9572 GB, free: 1.449 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.027e-06/0.3206, allocations: 0 / 0.9572 GB, free: 1.449 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.94e-05/0.3206, allocations: 95.75 kB / 0.9573 GB, free: 1.355 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.5e-07/0.3207, allocations: 4 kB / 0.9573 GB, free: 1.352 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002634/0.3209, allocations: 28 kB / 0.9573 GB, free: 1.324 MB / 0.7325 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.0001513/0.3211, allocations: 103.2 kB / 0.9574 GB, free: 1.211 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0003726/0.3215, allocations: 175.3 kB / 0.9576 GB, free: 1.027 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.3215, allocations: 0 / 0.9576 GB, free: 1.027 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001182/0.3216, allocations: 48.34 kB / 0.9577 GB, free: 0.9805 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002799/0.3219, allocations: 14.2 kB / 0.9577 GB, free: 0.9688 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003501/0.3222, allocations: 170.4 kB / 0.9578 GB, free: 0.7734 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002305/0.3225, allocations: 0.6922 MB / 0.9585 GB, free: 56 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.21e-05/0.3225, allocations: 7.984 kB / 0.9585 GB, free: 48 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.273e-05/0.3226, allocations: 15.44 kB / 0.9585 GB, free: 32 kB / 0.7325 GB Notification: Performance of SimCode: time 3.11e-07/0.3226, allocations: 0 / 0.9585 GB, free: 32 kB / 0.7325 GB Notification: Performance of Templates: time 0.004001/0.3266, allocations: 1.443 MB / 0.9599 GB, free: 14.59 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches