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.001883/0.001883, allocations: 101.9 kB / 19.73 MB, free: 2.109 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.002056/0.002056, allocations: 222.5 kB / 23.03 MB, free: 4.906 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.578/1.578, allocations: 230.6 MB / 256.8 MB, free: 7.785 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.315/3.315, allocations: 0.49 GB / 0.7959 GB, free: 35.61 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="cs",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.002012/0.002012, allocations: 68.19 kB / 1.155 GB, free: 25.37 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3633/0.3653, allocations: 176.1 MB / 1.327 GB, free: 1.469 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002709/0.368, allocations: 0.8692 MB / 1.328 GB, free: 0.6016 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001958/0.37, allocations: 1.182 MB / 1.329 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001027/0.3701, allocations: 0 / 1.329 GB, free: 15.41 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 4.928e-05/0.3701, allocations: 11.86 kB / 1.329 GB, free: 15.39 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001037/0.3702, allocations: 15.81 kB / 1.329 GB, free: 15.38 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006388/0.3709, allocations: 161.3 kB / 1.329 GB, free: 15.23 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002807/0.3711, allocations: 167.7 kB / 1.329 GB, free: 15.06 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001465/0.3713, allocations: 29.28 kB / 1.329 GB, free: 15.03 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001521/0.3714, allocations: 67.77 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001377/0.3716, allocations: 67.73 kB / 1.329 GB, free: 14.9 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.915e-05/0.3716, allocations: 16 kB / 1.329 GB, free: 14.88 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.298e-05/0.3717, allocations: 27.98 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 4.131e-05/0.3717, allocations: 23.92 kB / 1.329 GB, free: 14.83 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 9.191e-05/0.3718, allocations: 59.77 kB / 1.329 GB, free: 14.77 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002665/0.3721, allocations: 167.7 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.3721, allocations: 0 / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.763e-06/0.3721, allocations: 4 kB / 1.329 GB, free: 14.61 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.165e-06/0.3721, allocations: 0 / 1.329 GB, free: 14.61 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.0008408/0.3729, allocations: 422 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.373, allocations: 12.03 kB / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.762e-05/0.373, allocations: 4.125 kB / 1.33 GB, free: 14.13 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.72e-05/0.3731, allocations: 42.69 kB / 1.33 GB, free: 14.08 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.502e-05/0.3731, allocations: 12.89 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005634/0.3737, allocations: 190.4 kB / 1.33 GB, free: 13.86 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.547e-05/0.3737, allocations: 12.38 kB / 1.33 GB, free: 13.84 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.407e-05/0.3738, allocations: 16.31 kB / 1.33 GB, free: 13.83 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002526/0.374, allocations: 87.73 kB / 1.33 GB, free: 13.74 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.446e-05/0.374, allocations: 4 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.581e-05/0.374, allocations: 4 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.3741, allocations: 3.938 kB / 1.33 GB, free: 13.73 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001898/0.3742, allocations: 47.95 kB / 1.33 GB, free: 13.68 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007774/0.375, allocations: 339.7 kB / 1.331 GB, free: 13.3 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001319/0.3751, allocations: 42.48 kB / 1.331 GB, free: 13.25 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.976e-05/0.3752, allocations: 24.97 kB / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.151e-05/0.3753, allocations: 0 / 1.331 GB, free: 13.23 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003281/0.3756, allocations: 95.34 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of pre-optimization done (n=10): time 1.513e-06/0.3756, allocations: 7.938 kB / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of matching and sorting (n=10): time 0.0004468/0.376, allocations: 137.5 kB / 1.331 GB, free: 12.97 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.127e-05/0.3761, allocations: 59.34 kB / 1.331 GB, free: 12.9 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001449/0.3762, allocations: 140.4 kB / 1.331 GB, free: 12.76 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.878e-05/0.3763, allocations: 37.69 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.799e-05/0.3764, allocations: 108.1 kB / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.949e-05/0.3764, allocations: 23.81 kB / 1.331 GB, free: 12.58 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.173e-05/0.3765, allocations: 49.69 kB / 1.331 GB, free: 12.53 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000145/0.3766, allocations: 326.8 kB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001868/0.3768, allocations: 77.66 kB / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002548/0.3771, allocations: 164.8 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003626/0.3774, allocations: 200.6 kB / 1.332 GB, free: 11.67 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-06/0.3774, allocations: 4 kB / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005652/0.378, allocations: 272.7 kB / 1.332 GB, free: 11.38 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 5.232e-05/0.3781, allocations: 39.73 kB / 1.332 GB, free: 11.34 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-06/0.3781, allocations: 4 kB / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.334e-05/0.3781, allocations: 11.88 kB / 1.332 GB, free: 11.32 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001194/0.3782, allocations: 24.34 kB / 1.332 GB, free: 11.3 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.281e-05/0.3782, allocations: 7.938 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002352/0.3785, allocations: 40.3 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.162e-05/0.3785, allocations: 19.92 kB / 1.332 GB, free: 11.23 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.0001387/0.3786, allocations: 130.2 kB / 1.333 GB, free: 11.09 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.274e-05/0.3787, allocations: 11.95 kB / 1.333 GB, free: 11.08 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.628e-05/0.3787, allocations: 8.719 kB / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.717e-06/0.3787, allocations: 7.938 kB / 1.333 GB, free: 11.06 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/0.3787, allocations: 3.984 kB / 1.333 GB, free: 11.06 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.3787, allocations: 0 / 1.333 GB, free: 11.06 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006334/0.3794, allocations: 373.3 kB / 1.333 GB, free: 10.64 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.3794, allocations: 3.938 kB / 1.333 GB, free: 10.64 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.814e-05/0.3795, allocations: 15.98 kB / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.3795, allocations: 0 / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.193e-05/0.3795, allocations: 0 / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.3795, allocations: 0 / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.3795, allocations: 0 / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004771/0.38, allocations: 251.3 kB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.86e-05/0.38, allocations: 7.891 kB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.113e-05/0.38, allocations: 4 kB / 1.333 GB, free: 10.35 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.493e-05/0.3801, allocations: 12.03 kB / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.992e-05/0.3801, allocations: 7.984 kB / 1.333 GB, free: 10.33 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.746e-06/0.3802, allocations: 0 / 1.333 GB, free: 10.33 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.32e-05/0.3802, allocations: 108.6 kB / 1.333 GB, free: 10.23 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3802, allocations: 0 / 1.333 GB, free: 10.23 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003207/0.3806, allocations: 31.94 kB / 1.333 GB, free: 10.2 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.000888/0.3815, allocations: 0.7904 MB / 1.334 GB, free: 9.379 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0004341/0.3819, allocations: 197.6 kB / 1.334 GB, free: 9.168 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3819, allocations: 4 kB / 1.334 GB, free: 9.164 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.000116/0.382, allocations: 35.98 kB / 1.334 GB, free: 9.129 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003097/0.3823, allocations: 19.98 kB / 1.334 GB, free: 9.109 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002913/0.3852, allocations: 2.102 MB / 1.336 GB, free: 6.82 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.796e-05/0.3853, allocations: 89.62 kB / 1.337 GB, free: 6.711 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.962e-05/0.3854, allocations: 20.58 kB / 1.337 GB, free: 6.691 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.391e-05/0.3855, allocations: 35.42 kB / 1.337 GB, free: 6.656 MB / 1.029 GB Notification: Performance of SimCode: time 8.62e-07/0.3855, allocations: 0 / 1.337 GB, free: 6.656 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0286/0.4141, allocations: 3.491 MB / 1.34 GB, free: 3.363 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/12.12, allocations: 6.875 kB / 1.34 GB, free: 3.359 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: 19.322304759989493]