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.007055/0.007055, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001391/0.001391, allocations: 195.3 kB / 16.68 MB, free: 5.52 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.051/2.051, allocations: 222.9 MB / 240.4 MB, free: 15.16 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 3.579/3.579, allocations: 390.3 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001341/0.001341, allocations: 67.91 kB / 0.9505 GB, free: 8.062 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.99/0.9914, allocations: 140.4 MB / 1.088 GB, free: 5.258 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.002277/0.9937, allocations: 0.8884 MB / 1.088 GB, free: 4.676 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001496/0.9952, allocations: 1.176 MB / 1.09 GB, free: 3.809 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.727e-05/0.9953, allocations: 5.25 kB / 1.09 GB, free: 3.805 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.707e-05/0.9954, allocations: 9.422 kB / 1.09 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 9.058e-05/0.9955, allocations: 15.86 kB / 1.09 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000578/0.9961, allocations: 153.4 kB / 1.09 GB, free: 3.707 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0002449/0.9963, allocations: 172.3 kB / 1.09 GB, free: 3.633 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001425/0.9965, allocations: 39.41 kB / 1.09 GB, free: 3.609 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001126/0.9966, allocations: 68.45 kB / 1.09 GB, free: 3.578 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001332/0.9967, allocations: 71.78 kB / 1.09 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 3.357e-05/0.9968, allocations: 15.09 kB / 1.09 GB, free: 3.543 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.839e-05/0.9969, allocations: 32.7 kB / 1.09 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.732e-05/0.9969, allocations: 21.55 kB / 1.09 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 9.132e-05/0.997, allocations: 71.02 kB / 1.09 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000273/0.9973, allocations: 168.9 kB / 1.09 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.9973, allocations: 0 / 1.09 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.264e-06/0.9973, allocations: 0 / 1.09 GB, free: 3.418 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.853e-06/0.9973, allocations: 4.938 kB / 1.09 GB, free: 3.414 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.0006537/0.998, allocations: 455.3 kB / 1.091 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.998, allocations: 10.72 kB / 1.091 GB, free: 2.98 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.165e-05/0.9981, allocations: 38.81 kB / 1.091 GB, free: 2.938 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.666e-05/0.9981, allocations: 17.38 kB / 1.091 GB, free: 2.93 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00053/0.9987, allocations: 248.2 kB / 1.091 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.487e-05/0.9987, allocations: 6.297 kB / 1.091 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.472e-05/0.9987, allocations: 13.83 kB / 1.091 GB, free: 2.707 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002353/0.999, allocations: 95.34 kB / 1.091 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.999, allocations: 0 / 1.091 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.534e-05/0.999, allocations: 2.031 kB / 1.091 GB, free: 2.652 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.233e-06/0.999, allocations: 6.812 kB / 1.091 GB, free: 2.648 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002014/0.9992, allocations: 49.22 kB / 1.091 GB, free: 2.637 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007148/1, allocations: 389 kB / 1.092 GB, free: 2.316 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001228/1, allocations: 37.23 kB / 1.092 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/1, allocations: 26.52 kB / 1.092 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.022e-05/1, allocations: 2.016 kB / 1.092 GB, free: 2.277 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000282/1.001, allocations: 101 kB / 1.092 GB, free: 2.211 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 2.866e-06/1.001, allocations: 3.984 kB / 1.092 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.000469/1.001, allocations: 138.7 kB / 1.092 GB, free: 2.148 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.137e-05/1.001, allocations: 56.91 kB / 1.092 GB, free: 2.082 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001171/1.001, allocations: 147.3 kB / 1.092 GB, free: 1.965 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.647e-05/1.001, allocations: 36.42 kB / 1.092 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.039e-05/1.001, allocations: 110.3 kB / 1.092 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.255e-05/1.001, allocations: 29.64 kB / 1.092 GB, free: 1.801 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.406e-05/1.001, allocations: 43.02 kB / 1.092 GB, free: 1.777 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.431e-05/1.001, allocations: 330.5 kB / 1.093 GB, free: 1.453 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001726/1.002, allocations: 45.45 kB / 1.093 GB, free: 1.445 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000197/1.002, allocations: 129.3 kB / 1.093 GB, free: 1.324 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003104/1.002, allocations: 199.3 kB / 1.093 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/1.002, allocations: 0.9375 kB / 1.093 GB, free: 1.148 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005197/1.003, allocations: 246.2 kB / 1.093 GB, free: 1.023 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.751e-05/1.003, allocations: 35.14 kB / 1.093 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/1.003, allocations: 2.906 kB / 1.093 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.164e-05/1.003, allocations: 4.688 kB / 1.093 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001266/1.003, allocations: 35.41 kB / 1.093 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/1.003, allocations: 8.422 kB / 1.093 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002526/1.003, allocations: 39.92 kB / 1.093 GB, free: 0.9688 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.401e-05/1.003, allocations: 15.25 kB / 1.093 GB, free: 0.9648 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 9.458e-05/1.003, allocations: 123.6 kB / 1.093 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.083e-05/1.003, allocations: 13.44 kB / 1.093 GB, free: 0.8359 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.8e-05/1.003, allocations: 16.39 kB / 1.094 GB, free: 0.8242 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/1.003, allocations: 9.25 kB / 1.094 GB, free: 0.8164 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/1.003, allocations: 1.266 kB / 1.094 GB, free: 0.8164 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/1.003, allocations: 0.5625 kB / 1.094 GB, free: 0.8164 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005314/1.004, allocations: 397.4 kB / 1.094 GB, free: 492 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.804e-06/1.004, allocations: 0 / 1.094 GB, free: 492 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001013/1.004, allocations: 16.97 kB / 1.094 GB, free: 488 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.566e-06/1.004, allocations: 5.281 kB / 1.094 GB, free: 484 kB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.254e-05/1.004, allocations: 6.141 kB / 1.094 GB, free: 480 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/1.004, allocations: 0.9062 kB / 1.094 GB, free: 480 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/1.004, allocations: 1.266 kB / 1.094 GB, free: 480 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004206/1.005, allocations: 241.7 kB / 1.094 GB, free: 312 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.83e-05/1.005, allocations: 95.72 kB / 1.094 GB, free: 200 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.122e-05/1.005, allocations: 2.172 kB / 1.094 GB, free: 200 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.863e-05/1.005, allocations: 11.09 kB / 1.094 GB, free: 196 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.752e-05/1.005, allocations: 7.328 kB / 1.094 GB, free: 196 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.157e-05/1.005, allocations: 3.828 kB / 1.094 GB, free: 196 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 6.088e-05/1.005, allocations: 105.9 kB / 1.094 GB, free: 112 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/1.005, allocations: 0.5625 kB / 1.094 GB, free: 112 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0003147/1.005, allocations: 32.89 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.0007956/1.006, allocations: 0.7918 MB / 1.095 GB, free: 15.4 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004543/1.006, allocations: 183.9 kB / 1.095 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 4.539e-06/1.006, allocations: 1.422 kB / 1.095 GB, free: 15.3 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001519/1.007, allocations: 38.19 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.0003153/1.007, allocations: 17.48 kB / 1.095 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002702/1.01, allocations: 1.964 MB / 1.097 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002852/1.01, allocations: 0.7081 MB / 1.098 GB, free: 12.96 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 7.749e-05/1.01, allocations: 15.72 kB / 1.098 GB, free: 12.96 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.213e-05/1.01, allocations: 38.91 kB / 1.098 GB, free: 12.93 MB / 0.8731 GB Notification: Performance of SimCode: time 2.5e-07/1.01, allocations: 0 / 1.098 GB, free: 12.93 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2927/1.303, allocations: 3.177 MB / 1.101 GB, free: 12.44 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/13.42, allocations: 7.156 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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