Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.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: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",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.001327/0.001327, allocations: 108 kB / 15.6 MB, free: 132 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.001331/0.001331, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.279/1.279, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.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.408/2.408, allocations: 437.1 MB / 0.7104 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 75.89 kB / 0.8694 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5174/0.5187, allocations: 151.6 MB / 1.017 GB, free: 2.473 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.001968/0.5207, allocations: 0.8839 MB / 1.018 GB, free: 1.586 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001343/0.522, allocations: 1.183 MB / 1.019 GB, free: 396 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.204e-05/0.5221, allocations: 3.938 kB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.678e-05/0.5222, allocations: 11.81 kB / 1.019 GB, free: 380 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 7.062e-05/0.5223, allocations: 11.86 kB / 1.019 GB, free: 368 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004639/0.5227, allocations: 154.7 kB / 1.02 GB, free: 216 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001772/0.5229, allocations: 171.7 kB / 1.02 GB, free: 44 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001192/0.523, allocations: 41.02 kB / 1.02 GB, free: 0 / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 9.797e-05/0.5232, allocations: 71.77 kB / 1.02 GB, free: 15.93 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 8.609e-05/0.5232, allocations: 59.75 kB / 1.02 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.21e-05/0.5233, allocations: 16 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 7.391e-05/0.5234, allocations: 31.97 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.985e-05/0.5234, allocations: 27.92 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 7.039e-05/0.5235, allocations: 63.72 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001908/0.5237, allocations: 161.8 kB / 1.02 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.5237, allocations: 4 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.112e-06/0.5237, allocations: 0 / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.5237, allocations: 0 / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0005956/0.5243, allocations: 460.6 kB / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.5243, allocations: 8.031 kB / 1.021 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.92e-05/0.5244, allocations: 46.75 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.945e-05/0.5244, allocations: 16.83 kB / 1.021 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005048/0.525, allocations: 253.9 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.525, allocations: 8.375 kB / 1.021 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.18e-05/0.525, allocations: 8.375 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002052/0.5252, allocations: 101.9 kB / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.353e-06/0.5252, allocations: 0 / 1.021 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.595e-05/0.5253, allocations: 11.97 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.169e-06/0.5253, allocations: 7.938 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000175/0.5255, allocations: 35.97 kB / 1.021 GB, free: 14.53 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006298/0.5261, allocations: 392.5 kB / 1.022 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001162/0.5262, allocations: 38.55 kB / 1.022 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.875e-05/0.5263, allocations: 28.91 kB / 1.022 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.551e-05/0.5263, allocations: 0 / 1.022 GB, free: 14.02 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002169/0.5266, allocations: 99.25 kB / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=10): time 1.413e-06/0.5266, allocations: 0 / 1.022 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of matching and sorting (n=10): time 0.0003983/0.527, allocations: 137.4 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.272e-05/0.527, allocations: 55.34 kB / 1.022 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000101/0.5271, allocations: 143.5 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/0.5272, allocations: 29.69 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 6.178e-05/0.5272, allocations: 112 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.618e-05/0.5273, allocations: 35.67 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.351e-05/0.5273, allocations: 49.69 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.634e-05/0.5274, allocations: 318.8 kB / 1.023 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001471/0.5276, allocations: 47.97 kB / 1.023 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001833/0.5278, allocations: 140.8 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002949/0.5281, allocations: 196.6 kB / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.5281, allocations: 0 / 1.023 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004547/0.5285, allocations: 243.3 kB / 1.023 GB, free: 12.28 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.929e-05/0.5286, allocations: 37.7 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.5286, allocations: 4 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.5286, allocations: 4 kB / 1.023 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/0.5287, allocations: 35.84 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.283e-06/0.5287, allocations: 4 kB / 1.023 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002201/0.529, allocations: 35.81 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.377e-05/0.529, allocations: 20.05 kB / 1.023 GB, free: 12.14 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 (booleanPulse.y,$PRE.booleanPulse.y,$whenCondition4,$whenCondition1,$whenCondition2,sampleTrigger.y,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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 9.048e-05/0.5291, allocations: 130.4 kB / 1.023 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.986e-05/0.5291, allocations: 7.906 kB / 1.023 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.098e-05/0.5292, allocations: 16.7 kB / 1.023 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.5292, allocations: 3.938 kB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.5292, allocations: 0 / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.5292, allocations: 4 kB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004971/0.5297, allocations: 394.5 kB / 1.024 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.481e-06/0.5297, allocations: 0 / 1.024 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.96e-05/0.5298, allocations: 23.8 kB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.5298, allocations: 480 / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.293e-05/0.5298, allocations: 7.984 kB / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.5298, allocations: 0 / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.5298, allocations: 0 / 1.024 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003866/0.5302, allocations: 247.2 kB / 1.024 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.96e-05/0.5303, allocations: 92.98 kB / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.5303, allocations: 0 / 1.024 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.977e-05/0.5304, allocations: 8 kB / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.28e-05/0.5304, allocations: 7.984 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.865e-06/0.5304, allocations: 4 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.973e-05/0.5305, allocations: 111.2 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5305, allocations: 0 / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002783/0.5308, allocations: 31.94 kB / 1.024 GB, free: 10.97 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intDef.y,intWitRes1.y,intWitRes2.y) * Number of discrete variables: 6 (sampleTrigger.y,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,booleanPulse.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0006283/0.5314, allocations: 0.7902 MB / 1.025 GB, free: 10.16 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003563/0.5318, allocations: 187.1 kB / 1.025 GB, free: 9.961 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.5318, allocations: 0 / 1.025 GB, free: 9.961 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001132/0.5319, allocations: 39.91 kB / 1.025 GB, free: 9.922 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002738/0.5322, allocations: 31.36 kB / 1.025 GB, free: 9.895 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002054/0.5343, allocations: 1.949 MB / 1.027 GB, free: 7.793 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002066/0.5345, allocations: 0.7084 MB / 1.028 GB, free: 7.059 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.735e-05/0.5346, allocations: 20.62 kB / 1.028 GB, free: 7.039 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.419e-05/0.5346, allocations: 39.42 kB / 1.028 GB, free: 7 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.5346, allocations: 0 / 1.028 GB, free: 7 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.019/0.5536, allocations: 3.114 MB / 1.031 GB, free: 3.988 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.722/7.276, allocations: 2.219 kB / 1.031 GB, free: 3.988 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.fmu > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches