Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001333/0.001333, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001543/0.001543, allocations: 210.5 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.534/1.534, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.293/3.293, allocations: 0.4892 GB / 0.7943 GB, free: 35.66 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002215/0.002215, allocations: 72.47 kB / 1.153 GB, free: 25.76 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3834/0.3856, allocations: 176.1 MB / 1.325 GB, free: 2.355 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.00229/0.3879, allocations: 0.8495 MB / 1.326 GB, free: 1.508 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001922/0.3898, allocations: 1.186 MB / 1.327 GB, free: 316 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.762e-05/0.3899, allocations: 0 / 1.327 GB, free: 316 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 5.274e-05/0.3899, allocations: 15.86 kB / 1.327 GB, free: 300 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 9.88e-05/0.39, allocations: 19.8 kB / 1.327 GB, free: 280 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005843/0.3906, allocations: 154.3 kB / 1.327 GB, free: 128 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002669/0.3909, allocations: 167.6 kB / 1.327 GB, free: 15.96 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.391, allocations: 21.3 kB / 1.327 GB, free: 15.94 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001274/0.3911, allocations: 71.77 kB / 1.328 GB, free: 15.87 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000124/0.3912, allocations: 59.73 kB / 1.328 GB, free: 15.81 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.632e-05/0.3913, allocations: 16 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.07e-05/0.3914, allocations: 23.98 kB / 1.328 GB, free: 15.77 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.067e-05/0.3914, allocations: 31.91 kB / 1.328 GB, free: 15.74 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 9.088e-05/0.3915, allocations: 59.78 kB / 1.328 GB, free: 15.68 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002655/0.3918, allocations: 171.6 kB / 1.328 GB, free: 15.51 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.3918, allocations: 0 / 1.328 GB, free: 15.51 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.794e-06/0.3918, allocations: 0 / 1.328 GB, free: 15.51 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.661e-06/0.3918, allocations: 0 / 1.328 GB, free: 15.51 MB / 1.029 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.0007984/0.3926, allocations: 414 kB / 1.328 GB, free: 15.06 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.3926, allocations: 12.03 kB / 1.328 GB, free: 15.05 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.152e-05/0.3927, allocations: 38.73 kB / 1.328 GB, free: 15 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.77e-05/0.3927, allocations: 20.84 kB / 1.328 GB, free: 14.98 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005518/0.3933, allocations: 200.3 kB / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.525e-05/0.3933, allocations: 8.375 kB / 1.329 GB, free: 14.75 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.158e-05/0.3933, allocations: 16.31 kB / 1.329 GB, free: 14.74 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002403/0.3936, allocations: 93.95 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/0.3936, allocations: 0 / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.174e-05/0.3936, allocations: 0 / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.3936, allocations: 8 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001774/0.3938, allocations: 50.28 kB / 1.329 GB, free: 14.59 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007277/0.3945, allocations: 339.7 kB / 1.329 GB, free: 14.21 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000128/0.3946, allocations: 38.48 kB / 1.329 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.59e-05/0.3947, allocations: 24.97 kB / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.643e-05/0.3947, allocations: 0 / 1.329 GB, free: 14.14 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002916/0.395, allocations: 99.36 kB / 1.329 GB, free: 14.03 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.322e-06/0.395, allocations: 0 / 1.329 GB, free: 14.03 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0004562/0.3955, allocations: 141.5 kB / 1.329 GB, free: 13.88 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.61e-05/0.3955, allocations: 59.28 kB / 1.329 GB, free: 13.81 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001398/0.3957, allocations: 135.5 kB / 1.33 GB, free: 13.67 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.313e-05/0.3957, allocations: 33.7 kB / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 9.338e-05/0.3958, allocations: 116.1 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.636e-05/0.3959, allocations: 31.78 kB / 1.33 GB, free: 13.48 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.786e-05/0.3959, allocations: 49.69 kB / 1.33 GB, free: 13.43 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001454/0.3961, allocations: 318.8 kB / 1.33 GB, free: 13.11 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001917/0.3963, allocations: 85.66 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002543/0.3965, allocations: 162.3 kB / 1.33 GB, free: 12.82 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003603/0.3969, allocations: 200.6 kB / 1.33 GB, free: 12.57 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3969, allocations: 0 / 1.33 GB, free: 12.57 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005412/0.3974, allocations: 280.6 kB / 1.331 GB, free: 12.28 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 4.475e-05/0.3975, allocations: 33.7 kB / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.514e-06/0.3975, allocations: 4 kB / 1.331 GB, free: 12.24 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.796e-05/0.3975, allocations: 4.375 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000122/0.3976, allocations: 36.23 kB / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.3976, allocations: 4 kB / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002301/0.3979, allocations: 35.95 kB / 1.331 GB, free: 12.16 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.65e-05/0.3979, allocations: 12 kB / 1.331 GB, free: 12.15 MB / 1.029 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.0001282/0.398, allocations: 138.2 kB / 1.331 GB, free: 12 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.212e-05/0.398, allocations: 11.91 kB / 1.331 GB, free: 11.99 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.268e-05/0.3981, allocations: 12.72 kB / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.929e-06/0.3981, allocations: 7.938 kB / 1.331 GB, free: 11.97 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.3981, allocations: 0 / 1.331 GB, free: 11.97 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.3981, allocations: 0 / 1.331 GB, free: 11.97 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006136/0.3987, allocations: 373.4 kB / 1.331 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.3987, allocations: 0 / 1.331 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.417e-05/0.3988, allocations: 15.92 kB / 1.331 GB, free: 11.54 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.3988, allocations: 0 / 1.331 GB, free: 11.54 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.3988, allocations: 4 kB / 1.331 GB, free: 11.54 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.3988, allocations: 4 kB / 1.331 GB, free: 11.53 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3988, allocations: 0 / 1.331 GB, free: 11.53 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004417/0.3993, allocations: 245.1 kB / 1.332 GB, free: 11.28 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.068e-05/0.3993, allocations: 11.89 kB / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.024e-05/0.3993, allocations: 0 / 1.332 GB, free: 11.27 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.711e-05/0.3994, allocations: 11.98 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.337e-05/0.3995, allocations: 8.125 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.23e-05/0.3995, allocations: 7.984 kB / 1.332 GB, free: 11.24 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.28e-05/0.3995, allocations: 108.8 kB / 1.332 GB, free: 11.13 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3995, allocations: 0 / 1.332 GB, free: 11.13 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003225/0.3999, allocations: 39.88 kB / 1.332 GB, free: 11.09 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (intWitRes2.y,intWitRes1.y,intDef.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.0008202/0.4007, allocations: 0.7865 MB / 1.333 GB, free: 10.28 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004291/0.4011, allocations: 205 kB / 1.333 GB, free: 10.06 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.4011, allocations: 0 / 1.333 GB, free: 10.06 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001211/0.4012, allocations: 35.91 kB / 1.333 GB, free: 10.03 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003154/0.4016, allocations: 19.98 kB / 1.333 GB, free: 10.01 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002806/0.4044, allocations: 2.093 MB / 1.335 GB, free: 7.73 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.785e-05/0.4045, allocations: 97.56 kB / 1.335 GB, free: 7.613 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.551e-05/0.4045, allocations: 12.64 kB / 1.335 GB, free: 7.602 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.647e-05/0.4046, allocations: 39.42 kB / 1.335 GB, free: 7.562 MB / 1.029 GB Notification: Performance of SimCode: time 6.21e-07/0.4046, allocations: 0 / 1.335 GB, free: 7.562 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03889/0.4435, allocations: 3.827 MB / 1.339 GB, free: 3.898 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/12.01, allocations: 4.062 kB / 1.339 GB, free: 3.895 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat --tempDir=temp_Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.fmu > Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.94426956307143]