Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 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.Continuous.Validation.IntegratorWithReset,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_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.01171/0.01171, allocations: 99.7 kB / 15.73 MB, free: 6.039 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.002095/0.002095, allocations: 192.1 kB / 16.67 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.66/2.66, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 4.375/4.375, allocations: 390.3 MB / 0.6648 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002402/0.002401, allocations: 59.91 kB / 0.9505 GB, free: 8.074 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.46/1.463, allocations: 140.4 MB / 1.088 GB, free: 5.273 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.004606/1.467, allocations: 0.8908 MB / 1.088 GB, free: 4.688 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.003627/1.471, allocations: 1.176 MB / 1.09 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000188/1.471, allocations: 1.375 kB / 1.09 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 7.901e-05/1.472, allocations: 9.281 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001896/1.472, allocations: 21.38 kB / 1.09 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.00104/1.473, allocations: 154.8 kB / 1.09 GB, free: 3.719 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0005175/1.473, allocations: 171.3 kB / 1.09 GB, free: 3.645 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002439/1.474, allocations: 42.97 kB / 1.09 GB, free: 3.617 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002714/1.474, allocations: 69.64 kB / 1.09 GB, free: 3.586 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003033/1.474, allocations: 67.55 kB / 1.09 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.985e-05/1.474, allocations: 14.94 kB / 1.09 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000181/1.474, allocations: 33.25 kB / 1.09 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.856e-05/1.475, allocations: 24.97 kB / 1.09 GB, free: 3.531 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0001775/1.475, allocations: 63.09 kB / 1.09 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005548/1.475, allocations: 166.7 kB / 1.09 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 7.954e-06/1.475, allocations: 0 / 1.09 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.494e-06/1.475, allocations: 0 / 1.09 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.239e-05/1.475, allocations: 2.031 kB / 1.09 GB, free: 3.438 MB / 0.8575 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.001024/1.476, allocations: 465.7 kB / 1.091 GB, free: 2.992 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.322e-05/1.477, allocations: 11.11 kB / 1.091 GB, free: 2.992 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.791e-05/1.477, allocations: 38.31 kB / 1.091 GB, free: 2.949 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/1.477, allocations: 14.25 kB / 1.091 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007954/1.477, allocations: 256 kB / 1.091 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.315e-05/1.478, allocations: 5.5 kB / 1.091 GB, free: 2.719 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.289e-05/1.478, allocations: 14.58 kB / 1.091 GB, free: 2.715 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004041/1.478, allocations: 95.92 kB / 1.091 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/1.478, allocations: 0 / 1.091 GB, free: 2.66 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.416e-05/1.478, allocations: 5.922 kB / 1.091 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/1.478, allocations: 1.812 kB / 1.091 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002985/1.478, allocations: 41.5 kB / 1.091 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00109/1.48, allocations: 394.9 kB / 1.092 GB, free: 2.328 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001809/1.48, allocations: 40.47 kB / 1.092 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001399/1.48, allocations: 26.69 kB / 1.092 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.516e-05/1.48, allocations: 0.6562 kB / 1.092 GB, free: 2.285 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004322/1.48, allocations: 97.11 kB / 1.092 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.894e-06/1.48, allocations: 0 / 1.092 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0006673/1.481, allocations: 134.4 kB / 1.092 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.735e-05/1.481, allocations: 57.19 kB / 1.092 GB, free: 2.102 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002043/1.481, allocations: 155.2 kB / 1.092 GB, free: 1.977 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 4.021e-05/1.481, allocations: 29.19 kB / 1.092 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/1.481, allocations: 117.4 kB / 1.092 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.58e-05/1.482, allocations: 33.86 kB / 1.092 GB, free: 1.809 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000153/1.482, allocations: 47.94 kB / 1.092 GB, free: 1.781 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001039/1.482, allocations: 321.2 kB / 1.093 GB, free: 1.465 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002665/1.482, allocations: 49.08 kB / 1.093 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003155/1.482, allocations: 133.9 kB / 1.093 GB, free: 1.328 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005005/1.483, allocations: 200.3 kB / 1.093 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/1.483, allocations: 0.8438 kB / 1.093 GB, free: 1.152 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0008499/1.484, allocations: 249 kB / 1.093 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.055e-05/1.484, allocations: 39.72 kB / 1.093 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.72e-05/1.484, allocations: 2.938 kB / 1.093 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.111e-05/1.484, allocations: 4.469 kB / 1.093 GB, free: 0.9883 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001939/1.484, allocations: 27.03 kB / 1.093 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.724e-05/1.484, allocations: 8.734 kB / 1.093 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003974/1.485, allocations: 39.89 kB / 1.093 GB, free: 0.9727 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.082e-05/1.485, allocations: 15.86 kB / 1.093 GB, free: 0.9688 MB / 0.8575 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.0001792/1.485, allocations: 127.9 kB / 1.094 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.964e-05/1.485, allocations: 9.812 kB / 1.094 GB, free: 0.8398 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.317e-05/1.485, allocations: 12.2 kB / 1.094 GB, free: 0.832 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.417e-06/1.485, allocations: 5.656 kB / 1.094 GB, free: 0.8281 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/1.485, allocations: 3.938 kB / 1.094 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.987e-06/1.485, allocations: 5.484 kB / 1.094 GB, free: 0.8203 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009039/1.486, allocations: 396.8 kB / 1.094 GB, free: 496 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/1.486, allocations: 0.5625 kB / 1.094 GB, free: 496 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001434/1.486, allocations: 16.77 kB / 1.094 GB, free: 492 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/1.486, allocations: 1.531 kB / 1.094 GB, free: 492 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.831e-05/1.486, allocations: 1.797 kB / 1.094 GB, free: 492 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/1.486, allocations: 4.562 kB / 1.094 GB, free: 488 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/1.486, allocations: 9.5 kB / 1.094 GB, free: 480 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005338/1.487, allocations: 241.3 kB / 1.094 GB, free: 312 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.408e-05/1.487, allocations: 92.17 kB / 1.094 GB, free: 204 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.703e-05/1.487, allocations: 2.828 kB / 1.094 GB, free: 204 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.95e-05/1.487, allocations: 10.45 kB / 1.094 GB, free: 200 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.776e-05/1.487, allocations: 10.27 kB / 1.094 GB, free: 196 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.414e-05/1.487, allocations: 4.781 kB / 1.094 GB, free: 196 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 7.687e-05/1.487, allocations: 106.2 kB / 1.094 GB, free: 112 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.9e-07/1.487, allocations: 0.6875 kB / 1.094 GB, free: 112 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003746/1.488, allocations: 33.55 kB / 1.094 GB, free: 104 kB / 0.8575 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.001067/1.489, allocations: 0.7927 MB / 1.095 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0007578/1.489, allocations: 180 kB / 1.095 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/1.489, allocations: 0.75 kB / 1.095 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002327/1.49, allocations: 43.47 kB / 1.095 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005253/1.49, allocations: 20.91 kB / 1.095 GB, free: 15.28 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004467/1.495, allocations: 1.961 MB / 1.097 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003937/1.495, allocations: 0.7044 MB / 1.098 GB, free: 12.96 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001278/1.495, allocations: 15.55 kB / 1.098 GB, free: 12.96 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000112/1.495, allocations: 39.03 kB / 1.098 GB, free: 12.93 MB / 0.8731 GB Notification: Performance of SimCode: time 9.31e-07/1.495, allocations: 0 / 1.098 GB, free: 12.93 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03828/1.534, allocations: 3.178 MB / 1.101 GB, free: 12.44 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.65/16.18, allocations: 3.062 kB / 1.101 GB, free: 12.44 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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_9_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches