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.001105/0.001105, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 198.8 kB / 16.79 MB, free: 6.809 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.356/1.356, allocations: 222.9 MB / 240.5 MB, free: 4.598 MB / 190.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.559/2.559, allocations: 390.2 MB / 0.6649 GB, free: 0.625 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 67.89 kB / 0.8125 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7433/0.7448, allocations: 140.4 MB / 0.9496 GB, free: 9.359 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002526/0.7473, allocations: 0.8104 MB / 0.9504 GB, free: 8.734 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001684/0.7491, allocations: 1.169 MB / 0.9515 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.421e-05/0.7491, allocations: 1.375 kB / 0.9515 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.373e-05/0.7492, allocations: 0 / 0.9515 GB, free: 7.797 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.362e-05/0.7493, allocations: 25.16 kB / 0.9515 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005185/0.7498, allocations: 115.2 kB / 0.9517 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001507/0.75, allocations: 109.7 kB / 0.9518 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.7501, allocations: 20.39 kB / 0.9518 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001164/0.7503, allocations: 45.12 kB / 0.9518 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.426e-05/0.7504, allocations: 49.59 kB / 0.9519 GB, free: 7.566 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.337e-05/0.7504, allocations: 11.12 kB / 0.9519 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.333e-05/0.7505, allocations: 20.73 kB / 0.9519 GB, free: 7.555 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.804e-05/0.7505, allocations: 14.86 kB / 0.9519 GB, free: 7.543 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 7.128e-05/0.7506, allocations: 42.06 kB / 0.952 GB, free: 7.516 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001468/0.7507, allocations: 81.91 kB / 0.952 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.7508, allocations: 5.281 kB / 0.952 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.262e-06/0.7508, allocations: 0 / 0.952 GB, free: 7.449 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.742e-06/0.7508, allocations: 0 / 0.952 GB, free: 7.449 MB / 0.7169 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.0006441/0.7514, allocations: 417.7 kB / 0.9524 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.546e-05/0.7515, allocations: 9.094 kB / 0.9524 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.088e-05/0.7516, allocations: 10.94 kB / 0.9525 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001014/0.7517, allocations: 180.2 kB / 0.9526 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.112e-05/0.7517, allocations: 4.312 kB / 0.9526 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.751e-05/0.7517, allocations: 14.88 kB / 0.9526 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002256/0.752, allocations: 73.36 kB / 0.9527 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.958e-06/0.752, allocations: 3.938 kB / 0.9527 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.248e-05/0.752, allocations: 0 / 0.9527 GB, free: 6.742 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-06/0.752, allocations: 5.312 kB / 0.9527 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000202/0.7522, allocations: 45.92 kB / 0.9528 GB, free: 6.719 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005182/0.7527, allocations: 344.8 kB / 0.9531 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001764/0.7529, allocations: 64.2 kB / 0.9532 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.883e-05/0.753, allocations: 27.5 kB / 0.9532 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/0.7531, allocations: 1.219 kB / 0.9532 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002697/0.7533, allocations: 96.09 kB / 0.9533 GB, free: 6.223 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 2.285e-06/0.7534, allocations: 4 kB / 0.9533 GB, free: 6.219 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0004721/0.7538, allocations: 145 kB / 0.9534 GB, free: 6.141 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.642e-05/0.7539, allocations: 56.62 kB / 0.9535 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.614e-05/0.754, allocations: 116.4 kB / 0.9536 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.473e-05/0.754, allocations: 28.83 kB / 0.9536 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.115e-05/0.7541, allocations: 100 kB / 0.9537 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.195e-05/0.7541, allocations: 19.11 kB / 0.9537 GB, free: 5.82 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.288e-05/0.7542, allocations: 45.12 kB / 0.9538 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.748e-05/0.7542, allocations: 323.8 kB / 0.9541 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000167/0.7544, allocations: 52.2 kB / 0.9541 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001731/0.7546, allocations: 92.3 kB / 0.9542 GB, free: 5.359 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002928/0.7549, allocations: 151 kB / 0.9544 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.7549, allocations: 3.938 kB / 0.9544 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004575/0.7554, allocations: 211 kB / 0.9546 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.443e-05/0.7554, allocations: 41.88 kB / 0.9546 GB, free: 5.059 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.959e-06/0.7554, allocations: 5.375 kB / 0.9546 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.85e-05/0.7555, allocations: 1.375 kB / 0.9546 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001151/0.7556, allocations: 18.48 kB / 0.9546 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.729e-06/0.7556, allocations: 6.094 kB / 0.9546 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002251/0.7558, allocations: 40.14 kB / 0.9547 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.629e-05/0.7559, allocations: 11.34 kB / 0.9547 GB, free: 5.02 MB / 0.7169 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 8.423e-05/0.756, allocations: 121.2 kB / 0.9548 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.741e-05/0.756, allocations: 7.688 kB / 0.9548 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003057/0.7563, allocations: 123.7 kB / 0.9549 GB, free: 4.816 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.7563, allocations: 5.25 kB / 0.9549 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.7563, allocations: 1.312 kB / 0.9549 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.466e-06/0.7563, allocations: 0 / 0.9549 GB, free: 4.812 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003762/0.7567, allocations: 378.4 kB / 0.9553 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.7567, allocations: 0 / 0.9553 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.076e-05/0.7568, allocations: 10.38 kB / 0.9553 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.729e-06/0.7568, allocations: 0.9688 kB / 0.9553 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.184e-05/0.7568, allocations: 9.109 kB / 0.9553 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.7568, allocations: 0 / 0.9553 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.7568, allocations: 5.156 kB / 0.9553 GB, free: 4.434 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002739/0.7571, allocations: 209.1 kB / 0.9555 GB, free: 4.266 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.516e-05/0.7571, allocations: 82.45 kB / 0.9556 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.959e-05/0.7572, allocations: 5.375 kB / 0.9556 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.519e-05/0.7573, allocations: 15.7 kB / 0.9556 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.428e-05/0.7573, allocations: 11.42 kB / 0.9556 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.556e-06/0.7573, allocations: 2.156 kB / 0.9556 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.164e-05/0.7574, allocations: 92.06 kB / 0.9557 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7574, allocations: 0 / 0.9557 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002806/0.7577, allocations: 25.5 kB / 0.9557 GB, free: 4.059 MB / 0.7169 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.0001377/0.7578, allocations: 103.2 kB / 0.9558 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003819/0.7582, allocations: 184.6 kB / 0.956 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.7582, allocations: 0 / 0.956 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001286/0.7583, allocations: 40.12 kB / 0.9561 GB, free: 3.824 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002938/0.7586, allocations: 22.09 kB / 0.9561 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003943/0.759, allocations: 218.3 kB / 0.9563 GB, free: 3.605 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001306/0.7592, allocations: 0.6898 MB / 0.957 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.893e-05/0.7592, allocations: 11.06 kB / 0.957 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of SimCode: time 2.91e-07/0.7592, allocations: 0 / 0.957 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of Templates: time 0.003488/0.7627, allocations: 1.279 MB / 0.9582 GB, free: 2.242 MB / 0.7169 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