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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001136/0.001136, allocations: 106.9 kB / 15.99 MB, free: 6.355 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.001101/0.001101, allocations: 195.3 kB / 16.91 MB, free: 6.195 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.366/1.366, allocations: 222.9 MB / 240.6 MB, free: 13.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.326/2.326, allocations: 390.3 MB / 0.665 GB, free: 0.8789 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 69.33 kB / 0.8127 GB, free: 32.5 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2975/0.2991, allocations: 140.4 MB / 0.9498 GB, free: 9.207 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002518/0.3017, allocations: 0.8169 MB / 0.9506 GB, free: 8.383 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001588/0.3033, allocations: 1.159 MB / 0.9517 GB, free: 7.207 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.454e-05/0.3034, allocations: 4 kB / 0.9517 GB, free: 7.203 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.633e-05/0.3034, allocations: 3.984 kB / 0.9517 GB, free: 7.199 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.239e-05/0.3036, allocations: 7.875 kB / 0.9517 GB, free: 7.191 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005628/0.3041, allocations: 127.3 kB / 0.9518 GB, free: 7.07 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.000207/0.3043, allocations: 123.8 kB / 0.952 GB, free: 6.949 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001225/0.3045, allocations: 20.17 kB / 0.952 GB, free: 6.926 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001133/0.3046, allocations: 55.83 kB / 0.952 GB, free: 6.871 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.331e-05/0.3047, allocations: 43.83 kB / 0.9521 GB, free: 6.828 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.716e-05/0.3047, allocations: 16 kB / 0.9521 GB, free: 6.812 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.901e-05/0.3048, allocations: 19.98 kB / 0.9521 GB, free: 6.793 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.884e-05/0.3048, allocations: 19.92 kB / 0.9521 GB, free: 6.773 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 7.922e-05/0.3049, allocations: 47.84 kB / 0.9522 GB, free: 6.727 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001387/0.3051, allocations: 83.83 kB / 0.9523 GB, free: 6.645 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3051, allocations: 0 / 0.9523 GB, free: 6.645 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.004e-06/0.3051, allocations: 0 / 0.9523 GB, free: 6.645 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 7.054e-06/0.3051, allocations: 0 / 0.9523 GB, free: 6.645 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.0006284/0.3057, allocations: 413.2 kB / 0.9527 GB, free: 6.188 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.006e-05/0.3058, allocations: 16.03 kB / 0.9527 GB, free: 6.172 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.391e-05/0.3059, allocations: 12.78 kB / 0.9527 GB, free: 6.16 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000133/0.306, allocations: 176.3 kB / 0.9528 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.001e-05/0.306, allocations: 4.375 kB / 0.9529 GB, free: 5.945 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.627e-05/0.3061, allocations: 16.31 kB / 0.9529 GB, free: 5.93 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002133/0.3063, allocations: 70.16 kB / 0.9529 GB, free: 5.855 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.3063, allocations: 7.938 kB / 0.9529 GB, free: 5.848 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.068e-05/0.3063, allocations: 0 / 0.9529 GB, free: 5.848 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.3063, allocations: 0 / 0.9529 GB, free: 5.848 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001942/0.3065, allocations: 51.95 kB / 0.953 GB, free: 5.797 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005306/0.3071, allocations: 348.5 kB / 0.9533 GB, free: 5.406 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001713/0.3073, allocations: 62.55 kB / 0.9534 GB, free: 5.336 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.3074, allocations: 32.95 kB / 0.9534 GB, free: 5.301 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.444e-05/0.3074, allocations: 0 / 0.9534 GB, free: 5.301 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002683/0.3077, allocations: 91.39 kB / 0.9535 GB, free: 5.199 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 1.743e-06/0.3077, allocations: 0 / 0.9535 GB, free: 5.199 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8): time 0.0004475/0.3081, allocations: 153.5 kB / 0.9536 GB, free: 5.043 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.652e-05/0.3082, allocations: 55.41 kB / 0.9537 GB, free: 4.977 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.837e-05/0.3083, allocations: 121.8 kB / 0.9538 GB, free: 4.848 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.476e-05/0.3083, allocations: 25.7 kB / 0.9538 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.008e-05/0.3084, allocations: 96.05 kB / 0.9539 GB, free: 4.719 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.305e-05/0.3084, allocations: 19.73 kB / 0.954 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.753e-05/0.3085, allocations: 37.7 kB / 0.954 GB, free: 4.656 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.866e-05/0.3086, allocations: 334.7 kB / 0.9543 GB, free: 4.32 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001528/0.3087, allocations: 47.97 kB / 0.9544 GB, free: 4.273 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001646/0.3089, allocations: 85.11 kB / 0.9544 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002844/0.3092, allocations: 150.8 kB / 0.9546 GB, free: 4 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3092, allocations: 7.938 kB / 0.9546 GB, free: 3.992 MB / 0.7325 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004673/0.3097, allocations: 219.1 kB / 0.9548 GB, free: 3.766 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.191e-05/0.3098, allocations: 33.7 kB / 0.9548 GB, free: 3.727 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.3098, allocations: 4 kB / 0.9548 GB, free: 3.723 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.433e-05/0.3098, allocations: 0 / 0.9548 GB, free: 3.723 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001097/0.3099, allocations: 19.92 kB / 0.9548 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.3099, allocations: 0 / 0.9548 GB, free: 3.703 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000239/0.3102, allocations: 48.02 kB / 0.9549 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.226e-05/0.3102, allocations: 4 kB / 0.9549 GB, free: 3.652 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.0001099/0.3103, allocations: 129.3 kB / 0.955 GB, free: 3.52 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.635e-05/0.3103, allocations: 4 kB / 0.955 GB, free: 3.516 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002971/0.3106, allocations: 125.9 kB / 0.9551 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.3106, allocations: 0 / 0.9551 GB, free: 3.387 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.3107, allocations: 4 kB / 0.9551 GB, free: 3.383 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.059e-06/0.3107, allocations: 3.984 kB / 0.9552 GB, free: 3.379 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004273/0.3111, allocations: 382.3 kB / 0.9555 GB, free: 2.949 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.3111, allocations: 0 / 0.9555 GB, free: 2.949 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.418e-05/0.3112, allocations: 15.92 kB / 0.9555 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.055e-06/0.3112, allocations: 0 / 0.9555 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.658e-06/0.3112, allocations: 0 / 0.9555 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.3112, allocations: 0 / 0.9555 GB, free: 2.934 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3112, allocations: 7.938 kB / 0.9555 GB, free: 2.926 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002961/0.3115, allocations: 207.5 kB / 0.9557 GB, free: 2.707 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.687e-05/0.3116, allocations: 84.95 kB / 0.9558 GB, free: 2.605 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.238e-05/0.3116, allocations: 11.98 kB / 0.9558 GB, free: 2.594 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.637e-05/0.3117, allocations: 4 kB / 0.9558 GB, free: 2.59 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.801e-05/0.3117, allocations: 7.922 kB / 0.9558 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.348e-06/0.3117, allocations: 8 kB / 0.9558 GB, free: 2.574 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.366e-05/0.3118, allocations: 95.75 kB / 0.9559 GB, free: 2.48 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.61e-07/0.3118, allocations: 0 / 0.9559 GB, free: 2.48 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002756/0.3121, allocations: 24 kB / 0.956 GB, free: 2.457 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.0001571/0.3123, allocations: 107.2 kB / 0.9561 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004089/0.3127, allocations: 191.8 kB / 0.9562 GB, free: 2.141 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3127, allocations: 0 / 0.9562 GB, free: 2.141 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001199/0.3128, allocations: 35.98 kB / 0.9563 GB, free: 2.105 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002878/0.3131, allocations: 16.08 kB / 0.9563 GB, free: 2.09 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000419/0.3135, allocations: 224.4 kB / 0.9565 GB, free: 1.836 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003157/0.3139, allocations: 0.6961 MB / 0.9572 GB, free: 1.113 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.722e-05/0.3139, allocations: 15.44 kB / 0.9572 GB, free: 1.098 MB / 0.7325 GB Notification: Performance of SimCode: time 3.31e-07/0.3139, allocations: 0 / 0.9572 GB, free: 1.098 MB / 0.7325 GB Notification: Performance of Templates: time 0.003233/0.3172, allocations: 1.28 MB / 0.9585 GB, free: 15.82 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 -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