Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_latest_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.001088/0.001088, 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.001131/0.001131, allocations: 192.9 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.276/1.276, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.592/2.592, allocations: 469.4 MB / 0.742 GB, free: 7.707 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001585/0.001585, allocations: 70.97 kB / 0.9083 GB, free: 34.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.3145, allocations: 159.2 MB / 1.064 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002422/0.317, allocations: 0.8794 MB / 1.065 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001671/0.3187, allocations: 1.18 MB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.896e-05/0.3188, allocations: 0 / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.567e-05/0.3189, allocations: 11.86 kB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 9.401e-05/0.319, allocations: 19.81 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005765/0.3196, allocations: 142.9 kB / 1.066 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002149/0.3198, allocations: 175.6 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001465/0.3199, allocations: 37.11 kB / 1.066 GB, free: 12.03 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001252/0.3201, allocations: 63.83 kB / 1.066 GB, free: 11.97 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001049/0.3202, allocations: 63.73 kB / 1.066 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.185e-05/0.3202, allocations: 16 kB / 1.066 GB, free: 11.89 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 9.307e-05/0.3203, allocations: 20 kB / 1.066 GB, free: 11.87 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.514e-05/0.3204, allocations: 35.89 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 8.905e-05/0.3205, allocations: 67.59 kB / 1.066 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002536/0.3208, allocations: 167.7 kB / 1.066 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.3208, allocations: 0 / 1.066 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.322e-06/0.3208, allocations: 0 / 1.066 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.113e-06/0.3208, allocations: 4 kB / 1.066 GB, free: 11.6 MB / 0.8262 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.0008116/0.3216, allocations: 452.8 kB / 1.067 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.3217, allocations: 12.03 kB / 1.067 GB, free: 11.09 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.282e-05/0.3217, allocations: 38.73 kB / 1.067 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.923e-05/0.3218, allocations: 16.75 kB / 1.067 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006269/0.3224, allocations: 253.8 kB / 1.067 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.135e-05/0.3224, allocations: 8.375 kB / 1.067 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.268e-05/0.3225, allocations: 16.38 kB / 1.067 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002717/0.3228, allocations: 102.4 kB / 1.067 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.3228, allocations: 0 / 1.067 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.3228, allocations: 4 kB / 1.067 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.3228, allocations: 0 / 1.067 GB, free: 10.61 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002052/0.323, allocations: 51.95 kB / 1.067 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007788/0.3238, allocations: 392.4 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001403/0.324, allocations: 34.55 kB / 1.068 GB, free: 10.08 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001105/0.3241, allocations: 32.95 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.054e-05/0.3241, allocations: 0 / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002967/0.3244, allocations: 99.3 kB / 1.068 GB, free: 9.938 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=10): time 1.343e-06/0.3244, allocations: 0 / 1.068 GB, free: 9.938 MB / 0.8262 GB Notification: Performance of matching and sorting (n=10): time 0.0004778/0.3249, allocations: 137.5 kB / 1.068 GB, free: 9.797 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.243e-05/0.325, allocations: 59.34 kB / 1.068 GB, free: 9.727 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001317/0.3251, allocations: 143.6 kB / 1.068 GB, free: 9.578 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.319e-05/0.3252, allocations: 33.7 kB / 1.068 GB, free: 9.539 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.509e-05/0.3253, allocations: 104.1 kB / 1.068 GB, free: 9.434 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.083e-05/0.3253, allocations: 31.97 kB / 1.068 GB, free: 9.402 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.047e-05/0.3254, allocations: 45.7 kB / 1.068 GB, free: 9.352 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001306/0.3255, allocations: 322.8 kB / 1.069 GB, free: 9.027 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001793/0.3257, allocations: 55.95 kB / 1.069 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002164/0.3259, allocations: 132.9 kB / 1.069 GB, free: 8.805 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000367/0.3263, allocations: 196.7 kB / 1.069 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.147e-05/0.3263, allocations: 4 kB / 1.069 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005349/0.3269, allocations: 246.9 kB / 1.069 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.102e-05/0.3269, allocations: 33.7 kB / 1.069 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.297e-06/0.3269, allocations: 4 kB / 1.069 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.687e-05/0.327, allocations: 4 kB / 1.069 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.3271, allocations: 28.3 kB / 1.069 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.898e-06/0.3271, allocations: 7.938 kB / 1.069 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002579/0.3274, allocations: 47.8 kB / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.449e-05/0.3274, allocations: 8 kB / 1.07 GB, free: 8.172 MB / 0.8262 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 0.0001255/0.3276, allocations: 135.7 kB / 1.07 GB, free: 8.031 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.01e-05/0.3276, allocations: 7.906 kB / 1.07 GB, free: 8.023 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.319e-05/0.3276, allocations: 12.72 kB / 1.07 GB, free: 8.012 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.3276, allocations: 7.938 kB / 1.07 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.3276, allocations: 0 / 1.07 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.3277, allocations: 3.938 kB / 1.07 GB, free: 8 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006415/0.3283, allocations: 398.3 kB / 1.07 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3283, allocations: 0 / 1.07 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001156/0.3284, allocations: 23.92 kB / 1.07 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.936e-06/0.3285, allocations: 4 kB / 1.07 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.3285, allocations: 4 kB / 1.07 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.3285, allocations: 0 / 1.07 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.3285, allocations: 0 / 1.07 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004783/0.329, allocations: 235.3 kB / 1.07 GB, free: 7.277 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.918e-05/0.329, allocations: 88.95 kB / 1.07 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.553e-05/0.3291, allocations: 8 kB / 1.07 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001108/0.3292, allocations: 8.031 kB / 1.07 GB, free: 7.156 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.914e-05/0.3292, allocations: 12.11 kB / 1.07 GB, free: 7.145 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.342e-05/0.3293, allocations: 8 kB / 1.07 GB, free: 7.137 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.85e-05/0.3293, allocations: 109.3 kB / 1.071 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3294, allocations: 0 / 1.071 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003268/0.3297, allocations: 31.89 kB / 1.071 GB, free: 7 MB / 0.8262 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.000833/0.3305, allocations: 0.7931 MB / 1.071 GB, free: 6.184 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0004416/0.331, allocations: 187.7 kB / 1.072 GB, free: 5.988 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.331, allocations: 0 / 1.072 GB, free: 5.988 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001355/0.3311, allocations: 35.97 kB / 1.072 GB, free: 5.953 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003211/0.3315, allocations: 19.98 kB / 1.072 GB, free: 5.934 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002725/0.3342, allocations: 1.961 MB / 1.073 GB, free: 3.809 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003384/0.3346, allocations: 0.701 MB / 1.074 GB, free: 3.082 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 8.442e-05/0.3346, allocations: 16.64 kB / 1.074 GB, free: 3.062 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.771e-05/0.3347, allocations: 35.42 kB / 1.074 GB, free: 3.027 MB / 0.8262 GB Notification: Performance of SimCode: time 4.31e-07/0.3347, allocations: 0 / 1.074 GB, free: 3.027 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02087/0.3556, allocations: 3.139 MB / 1.077 GB, free: 28 kB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.055/7.411, allocations: 3.938 kB / 1.077 GB, free: 24 kB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches