Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "[:1:22-1:33:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 13743895347 into a real [:1:1-1:33:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007842/0.0007842, allocations: 0 / 0, free: 0 / 0 " [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.0006361/0.0006361, allocations: 0 / 0, free: 0 / 0 " [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 0.3526/0.3526, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 0.7371/0.7371, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 179] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-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.Utilities.PIDWithAutotuning.Relay.Validation.Controller,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_Validation_Controller",fmuType="me_cs",version="3.0",platforms={"wasm"}) "" <> buildModelFMU(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller,fileNamePrefix="Buildings_12_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_Validation_Controller",fmuType="me_cs",version="3.0",platforms={"wasm"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 3.697e-06/3.697e-06, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 1.588e-05/1.958e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller): time 0.002551/0.00257, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.003351/0.005921, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.000181/0.006102, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.0001712/0.006273, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.0001963/0.006469, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.0007319/0.007201, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.0004073/0.007609, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.0002815/0.00789, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.0004336/0.008324, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.0002579/0.008581, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 6.851e-05/0.00865, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.0001383/0.008788, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 6.762e-05/0.008856, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.0001841/0.00904, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.0006328/0.009673, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 3.458e-05/0.009707, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 3.576e-06/0.009711, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 8.145e-06/0.009719, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.001509/0.01123, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 6.346e-05/0.01129, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001697/0.01146, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005694/0.01203, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008054/0.01284, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.55e-05/0.01291, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/0.01304, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008343/0.01387, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.01389, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.273e-05/0.01394, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.01395, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005798/0.01453, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001994/0.01652, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.0005893/0.01711, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.000235/0.01735, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 5.219e-05/0.0174, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004133/0.01781, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=11): time 4.457e-05/0.01786, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=11): time 0.0009546/0.01881, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 6.145e-05/0.01887, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004949/0.01937, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.0001209/0.01949, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.0001769/0.01966, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 7.06e-05/0.01974, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003253/0.02006, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 0.0003537/0.02041, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004417/0.02086, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004966/0.02135, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.0006031/0.02196, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.02196, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=15) (initialization): time 0.001441/0.0234, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 7.635e-05/0.02348, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.02348, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.0235, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001513/0.02365, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.505e-06/0.02366, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003553/0.02401, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000125/0.02414, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,enaSig.y,$PRE.enaSig.y,relCon.hys.y,$PRE.relCon.hys.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 12 * 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.0003777/0.02451, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.02463, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001062/0.02474, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.742e-06/0.02474, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.02475, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.236e-06/0.02476, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006387/0.0254, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.626e-06/0.0254, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001464/0.02555, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/0.02555, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.585e-05/0.0256, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.57e-06/0.02561, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.478e-06/0.02561, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007234/0.02633, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.0001619/0.02649, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001222/0.02662, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001332/0.02675, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001441/0.02689, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.592e-05/0.02693, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.0003098/0.02724, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 7.093e-06/0.02725, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.0009815/0.02823, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,relCon.hys.y,enaSig.y) * Number of discrete states: 1 (relCon.hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 10 * 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.001511/0.02974, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.00093/0.03067, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 1.205e-05/0.03068, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.0002656/0.03095, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001045/0.03199, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008288/0.04028, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002265/0.04051, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.0001318/0.04064, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000364/0.041, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 0.0004539/0.04146, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU modelDescription.xml: time 0.001327/0.04278, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU model kernel: time 0.001206/0.04399, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU translated model: time 0.02143/0.06542, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU component link: time 7.213e-06/0.06543, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU precompile: time 1.002e-05/0.06544, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FMU write (0 MB unzipped): time 0.0001622/0.0656, allocations: 0 / 0, free: 0 / 0 Notification: Building FMU for platform 'wasm' (1/1). Notification: Finished FMU for platform 'wasm' (1/1). " [Timeout remaining time 300] simulate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller,startTime=0,stopTime=1,tolerance=1e-06,numberOfIntervals=2500,outputFormat="mat",variableFilter="time|relCon.u_m|enaSig.y|relCon.y|relCon.yDif|relCon.yOn",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller",simflags=" -alarm=240 -emit_protected -lv LOG_STATS -startTime=0 -stopTime=1 -tolerance=1e-06 -stepSize=0.0004 -r=Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller_res.mat",resimulateExecutable="Buildings_12_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_Validation_Controller.fmu") [Timeout 240] "" [Timeout remaining time 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_Validation_Controller.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches simulate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller,startTime=0,stopTime=1,tolerance=1e-06,numberOfIntervals=2500,outputFormat="mat",variableFilter="time|relCon.u_m|enaSig.y|relCon.y|relCon.yDif|relCon.yOn",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller",simflags=" -alarm=240 -emit_protected -lv LOG_STATS -startTime=0 -stopTime=1 -tolerance=1e-06 -stepSize=0.0004 -r=Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller_me_res.mat -s fmi3:me:daskr",resimulateExecutable="Buildings_12_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_Validation_Controller.fmu") [Timeout 240] "" [Timeout remaining time 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller_me_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_Validation_Controller.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller_me.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable relCon.yOn in file Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller_me_res.mat. Warning: Get data of variable relCon.yOn from file Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller_me_res.mat failed! " [Timeout remaining time 300] "" Variables in the reference:time,relCon.u_m,enaSig.y,relCon.y,relCon.yDif,relCon.yOn Variables in the result:__zc_0,__zc_1,con.k,con.y,enaSig.period,enaSig.shift,enaSig.width,enaSig.y,relCon.deaBan,relCon.r,relCon.reverseActing,relCon.trigger,relCon.u_m,relCon.u_s,relCon.y,relCon.yDif,relCon.yHig,relCon.yLow,sin.amplitude,sin.freqHz,sin.offset,sin.phase,sin.startTime,sin.y,time simulate(Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller,startTime=0,stopTime=1,tolerance=1e-06,numberOfIntervals=2500,outputFormat="mat",variableFilter="time|relCon.u_m|enaSig.y|relCon.y|relCon.yDif|relCon.yOn",fileNamePrefix="Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller",simflags=" -alarm=240 -emit_protected -lv LOG_STATS -startTime=0 -stopTime=1 -tolerance=1e-06 -stepSize=0.0004 -r=Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller_cs_res.mat -s fmi3:cs",resimulateExecutable="Buildings_12_Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_Validation_Controller.fmu") [Timeout 240] "" [Timeout remaining time 240] diffSimulationResults("Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller_cs_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Controls_OBC_Utilities_PIDWithAutotuning_Relay_Validation_Controller.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller_cs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable relCon.yOn in file Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller_cs_res.mat. Warning: Get data of variable relCon.yOn from file Buildings_12_Buildings.Controls.OBC.Utilities.PIDWithAutotuning.Relay.Validation.Controller_cs_res.mat failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 2.4371338000055403]