Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") translateModel(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|samTri.y|triggeredSampler.u|triggeredSampler.y|samTri1.y|triggeredSampler1.u|triggeredSampler1.y",fileNamePrefix="Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001293/0.001293, allocations: 104 kB / 16.27 MB, free: 5.98 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.001337/0.001337, allocations: 189.8 kB / 17.19 MB, free: 5.605 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.422/1.422, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.578/2.578, allocations: 437.1 MB / 0.7111 GB, free: 4.535 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 72.05 kB / 0.8699 GB, free: 2.227 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3037/0.3056, allocations: 151.6 MB / 1.018 GB, free: 10.67 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger): time 0.002087/0.3078, allocations: 0.7534 MB / 1.019 GB, free: 9.918 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001471/0.3092, allocations: 1.079 MB / 1.02 GB, free: 8.824 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.279e-05/0.3093, allocations: 4 kB / 1.02 GB, free: 8.82 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.075e-05/0.3094, allocations: 3.938 kB / 1.02 GB, free: 8.816 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.556e-05/0.3095, allocations: 11.88 kB / 1.02 GB, free: 8.805 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003279/0.3098, allocations: 52.69 kB / 1.02 GB, free: 8.754 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001079/0.3099, allocations: 71.84 kB / 1.02 GB, free: 8.684 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001142/0.31, allocations: 24.16 kB / 1.02 GB, free: 8.656 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 7.888e-05/0.3101, allocations: 27.86 kB / 1.02 GB, free: 8.629 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 6.912e-05/0.3102, allocations: 31.91 kB / 1.02 GB, free: 8.598 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.157e-05/0.3102, allocations: 7.938 kB / 1.02 GB, free: 8.59 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 8.192e-05/0.3103, allocations: 19.98 kB / 1.02 GB, free: 8.57 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.721e-05/0.3103, allocations: 19.92 kB / 1.02 GB, free: 8.551 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 5.088e-05/0.3104, allocations: 31.84 kB / 1.02 GB, free: 8.52 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0001509/0.3105, allocations: 75.75 kB / 1.02 GB, free: 8.445 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.3106, allocations: 0 / 1.02 GB, free: 8.445 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.634e-06/0.3106, allocations: 0 / 1.02 GB, free: 8.445 MB / 0.795 GB Notification: Performance of Transformations before backend: time 7.805e-06/0.3106, allocations: 4 kB / 1.02 GB, free: 8.441 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0006002/0.3112, allocations: 387.4 kB / 1.021 GB, free: 8.016 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.3112, allocations: 12.88 kB / 1.021 GB, free: 8.004 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.573e-05/0.3113, allocations: 8.844 kB / 1.021 GB, free: 7.996 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001514/0.3114, allocations: 172.3 kB / 1.021 GB, free: 7.789 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.203e-05/0.3114, allocations: 8.375 kB / 1.021 GB, free: 7.781 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.725e-05/0.3115, allocations: 4.375 kB / 1.021 GB, free: 7.777 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002054/0.3117, allocations: 70.16 kB / 1.021 GB, free: 7.703 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.3117, allocations: 7.938 kB / 1.021 GB, free: 7.695 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-06/0.3117, allocations: 0 / 1.021 GB, free: 7.695 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.3117, allocations: 0 / 1.021 GB, free: 7.695 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001852/0.3119, allocations: 47.89 kB / 1.021 GB, free: 7.648 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006462/0.3126, allocations: 328.6 kB / 1.021 GB, free: 7.277 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001669/0.3127, allocations: 58.55 kB / 1.021 GB, free: 7.211 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.3128, allocations: 24.97 kB / 1.021 GB, free: 7.184 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.266e-05/0.3129, allocations: 4 kB / 1.021 GB, free: 7.18 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002136/0.3131, allocations: 83.39 kB / 1.021 GB, free: 7.086 MB / 0.795 GB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.3131, allocations: 0 / 1.021 GB, free: 7.086 MB / 0.795 GB Notification: Performance of matching and sorting (n=7): time 0.0004541/0.3136, allocations: 129.5 kB / 1.021 GB, free: 6.953 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.161e-05/0.3136, allocations: 55.41 kB / 1.022 GB, free: 6.887 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/0.3137, allocations: 117.8 kB / 1.022 GB, free: 6.762 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 2.314e-05/0.3138, allocations: 33.7 kB / 1.022 GB, free: 6.723 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 6.896e-05/0.3138, allocations: 92.05 kB / 1.022 GB, free: 6.629 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.967e-05/0.3139, allocations: 15.75 kB / 1.022 GB, free: 6.613 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.475e-05/0.3139, allocations: 29.7 kB / 1.022 GB, free: 6.578 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001473/0.3141, allocations: 326.8 kB / 1.022 GB, free: 6.25 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001177/0.3142, allocations: 27.97 kB / 1.022 GB, free: 6.223 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001469/0.3144, allocations: 81.91 kB / 1.022 GB, free: 6.121 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002464/0.3146, allocations: 105.9 kB / 1.022 GB, free: 5.996 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.3146, allocations: 0 / 1.022 GB, free: 5.996 MB / 0.795 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003169/0.3149, allocations: 137.3 kB / 1.022 GB, free: 5.855 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.315, allocations: 8.219 kB / 1.022 GB, free: 5.848 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.315, allocations: 4 kB / 1.022 GB, free: 5.844 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.315, allocations: 4 kB / 1.022 GB, free: 5.84 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001209/0.3151, allocations: 15.98 kB / 1.022 GB, free: 5.824 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.514e-06/0.3151, allocations: 4 kB / 1.022 GB, free: 5.82 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.381e-05/0.3152, allocations: 11.98 kB / 1.022 GB, free: 5.809 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.384e-05/0.3152, allocations: 4 kB / 1.022 GB, free: 5.805 MB / 0.795 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 (triggeredSampler1.y,$PRE.triggeredSampler1.y,triggeredSampler.y,$PRE.triggeredSampler.y,samTri.y,$whenCondition1,samTri1.y,$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): 11 * Array equations: 0 * Algorithm blocks: 0 * 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.0001075/0.3154, allocations: 128.4 kB / 1.023 GB, free: 5.672 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.51e-05/0.3154, allocations: 7.906 kB / 1.023 GB, free: 5.664 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.254e-05/0.3154, allocations: 16.36 kB / 1.023 GB, free: 5.645 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.894e-06/0.3154, allocations: 4 kB / 1.023 GB, free: 5.641 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.3154, allocations: 0 / 1.023 GB, free: 5.641 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.3154, allocations: 0 / 1.023 GB, free: 5.641 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004978/0.3159, allocations: 374.4 kB / 1.023 GB, free: 5.219 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.316, allocations: 0 / 1.023 GB, free: 5.219 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.261e-05/0.316, allocations: 4 kB / 1.023 GB, free: 5.215 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.784e-06/0.316, allocations: 4 kB / 1.023 GB, free: 5.211 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.318e-06/0.316, allocations: 3.984 kB / 1.023 GB, free: 5.207 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.589e-06/0.316, allocations: 7.938 kB / 1.023 GB, free: 5.199 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3161, allocations: 0 / 1.023 GB, free: 5.199 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003057/0.3164, allocations: 199.8 kB / 1.023 GB, free: 4.988 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.005e-05/0.3164, allocations: 88.95 kB / 1.023 GB, free: 4.883 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.696e-05/0.3165, allocations: 11.92 kB / 1.023 GB, free: 4.871 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.425e-05/0.3165, allocations: 7.938 kB / 1.023 GB, free: 4.863 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.93e-05/0.3166, allocations: 11.92 kB / 1.023 GB, free: 4.852 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.129e-06/0.3166, allocations: 0 / 1.023 GB, free: 4.852 MB / 0.795 GB Notification: Performance of sorting global known variables: time 6.555e-05/0.3167, allocations: 95.92 kB / 1.023 GB, free: 4.758 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3167, allocations: 0 / 1.023 GB, free: 4.758 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002508/0.3169, allocations: 16 kB / 1.023 GB, free: 4.742 MB / 0.795 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 (samTri1.y,samTri.y,$whenCondition2,$whenCondition1,triggeredSampler.y,triggeredSampler1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001508/0.3171, allocations: 107.5 kB / 1.024 GB, free: 4.629 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002976/0.3174, allocations: 87.94 kB / 1.024 GB, free: 4.543 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3174, allocations: 0 / 1.024 GB, free: 4.543 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0001246/0.3175, allocations: 39.91 kB / 1.024 GB, free: 4.504 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002544/0.3178, allocations: 8.438 kB / 1.024 GB, free: 4.496 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003711/0.3182, allocations: 184 kB / 1.024 GB, free: 4.281 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003214/0.3185, allocations: 0.6899 MB / 1.024 GB, free: 3.566 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.144e-05/0.3185, allocations: 11.44 kB / 1.025 GB, free: 3.555 MB / 0.795 GB Notification: Performance of SimCode: time 2.4e-07/0.3185, allocations: 0 / 1.025 GB, free: 3.555 MB / 0.795 GB Notification: Performance of Templates: time 0.00273/0.3213, allocations: 1.032 MB / 1.026 GB, free: 2.527 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Logical_Sources_Validation_SampleTrigger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Logical.Sources.Validation.SampleTrigger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,samTri.y,triggeredSampler.u,triggeredSampler.y,samTri1.y,triggeredSampler1.u,triggeredSampler1.y Variables in the result:samTri.y,samTri1.y,time,triggeredSampler.u,triggeredSampler.y,triggeredSampler1.u,triggeredSampler1.y