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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001627/0.001627, allocations: 108 kB / 15.61 MB, free: 152 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.001657/0.001657, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.401/1.401, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.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.443/2.443, allocations: 390.3 MB / 0.6647 GB, free: 464 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001414/0.001414, allocations: 67.88 kB / 0.8127 GB, free: 14.37 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7185/0.72, allocations: 140.4 MB / 0.9497 GB, free: 9.098 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler): time 0.002402/0.7224, allocations: 0.7464 MB / 0.9505 GB, free: 8.52 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001406/0.7239, allocations: 1.154 MB / 0.9516 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.072e-05/0.7239, allocations: 1.25 kB / 0.9516 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.137e-05/0.724, allocations: 3.938 kB / 0.9516 GB, free: 7.586 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.979e-05/0.7241, allocations: 25.05 kB / 0.9516 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004457/0.7245, allocations: 132.5 kB / 0.9517 GB, free: 7.473 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001612/0.7247, allocations: 120.7 kB / 0.9519 GB, free: 7.41 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.7248, allocations: 29.53 kB / 0.9519 GB, free: 7.387 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.237e-05/0.7249, allocations: 48.03 kB / 0.9519 GB, free: 7.359 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.576e-05/0.725, allocations: 47.36 kB / 0.952 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.064e-05/0.7251, allocations: 11.16 kB / 0.952 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.564e-05/0.7251, allocations: 24.77 kB / 0.952 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.752e-05/0.7252, allocations: 19.47 kB / 0.952 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.684e-05/0.7253, allocations: 44.47 kB / 0.9521 GB, free: 7.27 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001752/0.7254, allocations: 122.6 kB / 0.9522 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.7254, allocations: 0 / 0.9522 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.342e-06/0.7255, allocations: 0 / 0.9522 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.991e-06/0.7255, allocations: 1.312 kB / 0.9522 GB, free: 7.176 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.0005594/0.726, allocations: 421.6 kB / 0.9526 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.482e-05/0.7261, allocations: 9.031 kB / 0.9526 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.064e-05/0.7261, allocations: 36.12 kB / 0.9526 GB, free: 6.703 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.875e-05/0.7262, allocations: 11.66 kB / 0.9526 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.887e-05/0.7263, allocations: 175.2 kB / 0.9528 GB, free: 6.492 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.748e-05/0.7263, allocations: 12.31 kB / 0.9528 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.75e-05/0.7263, allocations: 7.312 kB / 0.9528 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000185/0.7265, allocations: 75.78 kB / 0.9529 GB, free: 6.426 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.743e-06/0.7265, allocations: 4.969 kB / 0.9529 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.7265, allocations: 0 / 0.9529 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.7265, allocations: 2.219 kB / 0.9529 GB, free: 6.422 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001771/0.7267, allocations: 49.23 kB / 0.953 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004216/0.7272, allocations: 352.4 kB / 0.9533 GB, free: 6.039 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001746/0.7273, allocations: 64.77 kB / 0.9534 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.341e-05/0.7274, allocations: 26.91 kB / 0.9534 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.244e-05/0.7275, allocations: 5.344 kB / 0.9534 GB, free: 5.973 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002456/0.7277, allocations: 83.8 kB / 0.9535 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=8): time 1.563e-06/0.7277, allocations: 1.156 kB / 0.9535 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of matching and sorting (n=8): time 0.0004711/0.7282, allocations: 159.8 kB / 0.9536 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.233e-05/0.7283, allocations: 57.53 kB / 0.9537 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.515e-05/0.7283, allocations: 119.7 kB / 0.9538 GB, free: 5.629 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.505e-05/0.7284, allocations: 36.72 kB / 0.9538 GB, free: 5.59 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.007e-05/0.7284, allocations: 92.58 kB / 0.9539 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.913e-05/0.7285, allocations: 14.22 kB / 0.9539 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.221e-05/0.7285, allocations: 41.16 kB / 0.954 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.981e-05/0.7286, allocations: 320.8 kB / 0.9543 GB, free: 5.137 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001594/0.7288, allocations: 55.42 kB / 0.9543 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001611/0.7289, allocations: 92.27 kB / 0.9544 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002631/0.7292, allocations: 150.9 kB / 0.9546 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.7292, allocations: 1.125 kB / 0.9546 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004274/0.7296, allocations: 210.9 kB / 0.9548 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.527e-05/0.7297, allocations: 41.31 kB / 0.9548 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.7297, allocations: 1.312 kB / 0.9548 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.7297, allocations: 2.562 kB / 0.9548 GB, free: 4.734 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.7298, allocations: 17.89 kB / 0.9548 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.634e-06/0.7299, allocations: 2.75 kB / 0.9548 GB, free: 4.727 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002233/0.7301, allocations: 35.58 kB / 0.9549 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.421e-05/0.7301, allocations: 10.84 kB / 0.9549 GB, free: 4.707 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.568e-05/0.7302, allocations: 128.9 kB / 0.955 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.773e-05/0.7302, allocations: 11.05 kB / 0.955 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002986/0.7305, allocations: 124.8 kB / 0.9551 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.7305, allocations: 1.25 kB / 0.9551 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.7306, allocations: 0 / 0.9551 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.7306, allocations: 1.188 kB / 0.9551 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003947/0.731, allocations: 381.2 kB / 0.9555 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.731, allocations: 1.031 kB / 0.9555 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.881e-05/0.731, allocations: 15.05 kB / 0.9555 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.731, allocations: 0 / 0.9555 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.7311, allocations: 1.188 kB / 0.9555 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.625e-06/0.7311, allocations: 5.031 kB / 0.9555 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.7311, allocations: 0 / 0.9555 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002726/0.7314, allocations: 220.5 kB / 0.9557 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.31e-05/0.7314, allocations: 83.42 kB / 0.9558 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.818e-05/0.7314, allocations: 1.125 kB / 0.9558 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.315e-05/0.7315, allocations: 11.36 kB / 0.9558 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.797e-05/0.7315, allocations: 11.73 kB / 0.9558 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.614e-06/0.7316, allocations: 2.156 kB / 0.9558 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.151e-05/0.7316, allocations: 100.1 kB / 0.9559 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7316, allocations: 0 / 0.9559 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002675/0.7319, allocations: 24.66 kB / 0.9559 GB, free: 3.727 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.0004672/0.7324, allocations: 0.7465 MB / 0.9567 GB, free: 3.023 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003467/0.7327, allocations: 188.1 kB / 0.9568 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.7327, allocations: 1.344 kB / 0.9568 GB, free: 2.895 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000113/0.7328, allocations: 39.83 kB / 0.9569 GB, free: 2.879 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002678/0.7331, allocations: 20.55 kB / 0.9569 GB, free: 2.867 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001645/0.7348, allocations: 1.704 MB / 0.9586 GB, free: 1.332 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001225/0.7349, allocations: 0.6936 MB / 0.9592 GB, free: 0.625 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.225e-05/0.7349, allocations: 11.55 kB / 0.9593 GB, free: 0.6172 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.181e-05/0.735, allocations: 19.88 kB / 0.9593 GB, free: 0.6016 MB / 0.7169 GB Notification: Performance of SimCode: time 2.61e-07/0.735, allocations: 0 / 0.9593 GB, free: 0.6016 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01893/0.7539, allocations: 2.526 MB / 0.9617 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.556/8.31, allocations: 4.094 kB / 0.9617 GB, free: 15.27 MB / 0.7325 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Controls_OBC_CDL_Discrete_Examples_TriggeredSampler.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Discrete.Examples.TriggeredSampler_res.csv","/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