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.001683/0.001683, allocations: 118.5 kB / 16.37 MB, free: 6.004 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.001565/0.001565, allocations: 192.8 kB / 17.31 MB, free: 5.613 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.449/1.449, allocations: 222.9 MB / 241 MB, free: 15.17 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.273/2.273, allocations: 390.3 MB / 0.6655 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001274, allocations: 62.88 kB / 0.814 GB, free: 32.82 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2883/0.2895, allocations: 140.4 MB / 0.9511 GB, free: 8.066 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002669/0.2923, allocations: 0.7613 MB / 0.9519 GB, free: 7.301 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.002037/0.2943, allocations: 1.157 MB / 0.953 GB, free: 6.129 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.826e-05/0.2944, allocations: 0 / 0.953 GB, free: 6.129 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 4.166e-05/0.2945, allocations: 3.938 kB / 0.953 GB, free: 6.125 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 9.035e-05/0.2946, allocations: 11.88 kB / 0.953 GB, free: 6.113 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006407/0.2952, allocations: 135.4 kB / 0.9532 GB, free: 5.984 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002415/0.2955, allocations: 135.7 kB / 0.9533 GB, free: 5.852 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001382/0.2956, allocations: 24.17 kB / 0.9533 GB, free: 5.824 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/0.2958, allocations: 47.91 kB / 0.9534 GB, free: 5.777 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001298/0.2959, allocations: 51.8 kB / 0.9534 GB, free: 5.727 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 3.371e-05/0.2959, allocations: 12 kB / 0.9534 GB, free: 5.715 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 9.084e-05/0.296, allocations: 23.94 kB / 0.9534 GB, free: 5.691 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 3.321e-05/0.2961, allocations: 15.98 kB / 0.9535 GB, free: 5.676 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 9.354e-05/0.2962, allocations: 51.77 kB / 0.9535 GB, free: 5.625 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002738/0.2965, allocations: 115.7 kB / 0.9536 GB, free: 5.512 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.2965, allocations: 3.984 kB / 0.9536 GB, free: 5.508 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.304e-06/0.2965, allocations: 0 / 0.9536 GB, free: 5.508 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.827e-06/0.2965, allocations: 4 kB / 0.9536 GB, free: 5.504 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.0008398/0.2974, allocations: 416.9 kB / 0.954 GB, free: 5.043 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 5.815e-05/0.2974, allocations: 8.031 kB / 0.954 GB, free: 5.035 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.435e-05/0.2975, allocations: 12.84 kB / 0.954 GB, free: 5.023 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002244/0.2978, allocations: 164.3 kB / 0.9542 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.829e-05/0.2978, allocations: 12.31 kB / 0.9542 GB, free: 4.812 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.651e-05/0.2978, allocations: 16.3 kB / 0.9542 GB, free: 4.797 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002784/0.2981, allocations: 78.22 kB / 0.9543 GB, free: 4.715 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.2982, allocations: 7.922 kB / 0.9543 GB, free: 4.707 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.345e-05/0.2982, allocations: 0 / 0.9543 GB, free: 4.707 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.2982, allocations: 0 / 0.9543 GB, free: 4.707 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000235/0.2984, allocations: 47.95 kB / 0.9543 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006252/0.2991, allocations: 348.5 kB / 0.9547 GB, free: 4.27 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002108/0.2993, allocations: 58.55 kB / 0.9547 GB, free: 4.203 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001276/0.2994, allocations: 32.97 kB / 0.9548 GB, free: 4.168 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.435e-05/0.2995, allocations: 3.984 kB / 0.9548 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002961/0.2998, allocations: 87.39 kB / 0.9549 GB, free: 4.066 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=8): time 1.834e-06/0.2998, allocations: 4 kB / 0.9549 GB, free: 4.062 MB / 0.7325 GB Notification: Performance of matching and sorting (n=8): time 0.0007106/0.3005, allocations: 149.5 kB / 0.955 GB, free: 3.91 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.097e-05/0.3006, allocations: 51.41 kB / 0.9551 GB, free: 3.848 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/0.3007, allocations: 125.7 kB / 0.9552 GB, free: 3.715 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.602e-05/0.3007, allocations: 33.7 kB / 0.9552 GB, free: 3.676 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 8.085e-05/0.3008, allocations: 96.03 kB / 0.9553 GB, free: 3.578 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.025e-05/0.3009, allocations: 23.73 kB / 0.9553 GB, free: 3.555 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.856e-05/0.301, allocations: 37.7 kB / 0.9554 GB, free: 3.512 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001572/0.3011, allocations: 326.8 kB / 0.9557 GB, free: 3.184 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002037/0.3014, allocations: 59.89 kB / 0.9557 GB, free: 3.125 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002783/0.3016, allocations: 93.11 kB / 0.9558 GB, free: 3.016 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003765/0.302, allocations: 146.8 kB / 0.956 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.3021, allocations: 0 / 0.956 GB, free: 2.848 MB / 0.7325 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0006518/0.3027, allocations: 215.1 kB / 0.9562 GB, free: 2.625 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.712e-05/0.3028, allocations: 37.69 kB / 0.9562 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.3028, allocations: 0 / 0.9562 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.583e-05/0.3028, allocations: 0 / 0.9562 GB, free: 2.582 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002585/0.3031, allocations: 23.92 kB / 0.9562 GB, free: 2.559 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.889e-06/0.3031, allocations: 4 kB / 0.9562 GB, free: 2.555 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000261/0.3034, allocations: 36.03 kB / 0.9563 GB, free: 2.52 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.899e-05/0.3034, allocations: 7.984 kB / 0.9563 GB, free: 2.512 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.0001234/0.3035, allocations: 125.8 kB / 0.9564 GB, free: 2.379 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.004e-05/0.3036, allocations: 4 kB / 0.9564 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003776/0.304, allocations: 129.9 kB / 0.9565 GB, free: 2.242 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.304, allocations: 3.938 kB / 0.9565 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.304, allocations: 0 / 0.9565 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.304, allocations: 0 / 0.9565 GB, free: 2.238 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005354/0.3045, allocations: 374.4 kB / 0.9569 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-06/0.3046, allocations: 0 / 0.9569 GB, free: 1.816 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.957e-05/0.3046, allocations: 19.92 kB / 0.9569 GB, free: 1.797 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.078e-06/0.3047, allocations: 0 / 0.9569 GB, free: 1.797 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.073e-05/0.3047, allocations: 4 kB / 0.9569 GB, free: 1.793 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.3047, allocations: 0 / 0.9569 GB, free: 1.793 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.668e-06/0.3047, allocations: 7.938 kB / 0.9569 GB, free: 1.785 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003955/0.3051, allocations: 211.5 kB / 0.9571 GB, free: 1.562 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.294e-05/0.3052, allocations: 88.89 kB / 0.9572 GB, free: 1.457 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.714e-05/0.3052, allocations: 8 kB / 0.9572 GB, free: 1.449 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000124/0.3053, allocations: 11.98 kB / 0.9572 GB, free: 1.438 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.413e-05/0.3054, allocations: 7.938 kB / 0.9572 GB, free: 1.43 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.34e-05/0.3054, allocations: 4 kB / 0.9572 GB, free: 1.426 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0001453/0.3056, allocations: 91.27 kB / 0.9573 GB, free: 1.336 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.3e-07/0.3056, allocations: 0 / 0.9573 GB, free: 1.336 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0004142/0.306, allocations: 20 kB / 0.9573 GB, free: 1.316 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.0001668/0.3062, allocations: 115.2 kB / 0.9574 GB, free: 1.191 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0004924/0.3067, allocations: 183.3 kB / 0.9576 GB, free: 1 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.3067, allocations: 0 / 0.9576 GB, free: 1 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001578/0.3069, allocations: 39.97 kB / 0.9576 GB, free: 0.9609 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003928/0.3073, allocations: 4.703 kB / 0.9576 GB, free: 0.957 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004498/0.3077, allocations: 170.7 kB / 0.9578 GB, free: 0.7617 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003087/0.3081, allocations: 0.7 MB / 0.9585 GB, free: 36 kB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.153e-05/0.3081, allocations: 4 kB / 0.9585 GB, free: 32 kB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.11e-05/0.3081, allocations: 15.44 kB / 0.9585 GB, free: 16 kB / 0.7325 GB Notification: Performance of SimCode: time 4.41e-07/0.3082, allocations: 0 / 0.9585 GB, free: 16 kB / 0.7325 GB Notification: Performance of Templates: time 0.005623/0.3138, allocations: 1.447 MB / 0.9599 GB, free: 14.58 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 gbode -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