Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.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.001491/0.001491, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.001534/0.001534, allocations: 216.5 kB / 23.03 MB, free: 4.922 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.504/1.504, allocations: 230.6 MB / 256.8 MB, free: 7.793 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.274/3.274, allocations: 0.49 GB / 0.7959 GB, free: 35.54 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.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_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.002082/0.002082, allocations: 63.66 kB / 1.155 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.397/0.3991, allocations: 176.1 MB / 1.327 GB, free: 1.508 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.003836/0.4029, allocations: 1.782 MB / 1.328 GB, free: 15.72 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001361/0.4043, allocations: 0.5494 MB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001681/0.4044, allocations: 3.938 kB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001841/0.4046, allocations: 27.67 kB / 1.329 GB, free: 15.13 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0001274/0.4047, allocations: 35.72 kB / 1.329 GB, free: 15.1 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002733/0.405, allocations: 63.92 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000281/0.4053, allocations: 175.4 kB / 1.329 GB, free: 14.86 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001677/0.4055, allocations: 41.91 kB / 1.329 GB, free: 14.82 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000117/0.4056, allocations: 59.72 kB / 1.329 GB, free: 14.76 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 9.096e-05/0.4057, allocations: 55.64 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.109e-05/0.4057, allocations: 12 kB / 1.329 GB, free: 14.69 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 2.568e-05/0.4057, allocations: 12 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 3.713e-05/0.4058, allocations: 27.86 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.295e-05/0.4058, allocations: 55.7 kB / 1.329 GB, free: 14.6 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002132/0.406, allocations: 139.3 kB / 1.33 GB, free: 14.46 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.4061, allocations: 0 / 1.33 GB, free: 14.46 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.513e-06/0.4061, allocations: 0 / 1.33 GB, free: 14.46 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.967e-06/0.4061, allocations: 0 / 1.33 GB, free: 14.46 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: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0008051/0.4069, allocations: 428 kB / 1.33 GB, free: 14.01 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.4069, allocations: 12.03 kB / 1.33 GB, free: 14 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.548e-05/0.4069, allocations: 8.125 kB / 1.33 GB, free: 13.99 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.413e-05/0.407, allocations: 42.73 kB / 1.33 GB, free: 13.94 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.753e-05/0.407, allocations: 24.84 kB / 1.33 GB, free: 13.91 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003788/0.4074, allocations: 174.8 kB / 1.33 GB, free: 13.72 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.702e-05/0.4074, allocations: 8.375 kB / 1.33 GB, free: 13.71 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.031e-05/0.4075, allocations: 16.31 kB / 1.33 GB, free: 13.7 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003502/0.4078, allocations: 147.7 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.457e-05/0.4078, allocations: 3.984 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.734e-05/0.4078, allocations: 4 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.261e-06/0.4079, allocations: 4 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002378/0.4081, allocations: 71.89 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001035/0.4091, allocations: 0.6878 MB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001757/0.4093, allocations: 46.55 kB / 1.331 GB, free: 12.65 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001139/0.4094, allocations: 32.83 kB / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.636e-05/0.4094, allocations: 7.938 kB / 1.331 GB, free: 12.61 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002997/0.4097, allocations: 134.6 kB / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of pre-optimization done (n=11): time 1.573e-06/0.4097, allocations: 0 / 1.331 GB, free: 12.45 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.0005819/0.4103, allocations: 161.6 kB / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001192/0.4104, allocations: 140.4 kB / 1.332 GB, free: 12.12 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002499/0.4107, allocations: 203.2 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.829e-05/0.4107, allocations: 29.7 kB / 1.332 GB, free: 11.87 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001062/0.4108, allocations: 124 kB / 1.332 GB, free: 11.75 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 5.171e-05/0.4109, allocations: 39.88 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.802e-05/0.411, allocations: 45.7 kB / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001642/0.4111, allocations: 322.8 kB / 1.332 GB, free: 11.33 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001336/0.4113, allocations: 39.97 kB / 1.332 GB, free: 11.29 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002176/0.4115, allocations: 143.5 kB / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003804/0.4119, allocations: 214.2 kB / 1.333 GB, free: 10.84 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.338e-06/0.4119, allocations: 0 / 1.333 GB, free: 10.84 MB / 1.029 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004439/0.4123, allocations: 209.3 kB / 1.333 GB, free: 10.63 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.4123, allocations: 11.98 kB / 1.333 GB, free: 10.62 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/0.4123, allocations: 4.25 kB / 1.333 GB, free: 10.61 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.072e-05/0.4124, allocations: 4 kB / 1.333 GB, free: 10.61 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001376/0.4125, allocations: 35.92 kB / 1.333 GB, free: 10.57 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.672e-05/0.4125, allocations: 11.98 kB / 1.333 GB, free: 10.56 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001612/0.4127, allocations: 28.19 kB / 1.333 GB, free: 10.54 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.6e-05/0.4127, allocations: 12 kB / 1.333 GB, free: 10.52 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 9 (sampleTrigger.y,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,$whenCondition3,intDef.trigger_internal,intNoReset.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * 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.0001451/0.4128, allocations: 143.9 kB / 1.333 GB, free: 10.38 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.044e-05/0.4129, allocations: 19.91 kB / 1.333 GB, free: 10.36 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.915e-05/0.4129, allocations: 17.41 kB / 1.333 GB, free: 10.34 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.526e-06/0.4129, allocations: 7.984 kB / 1.333 GB, free: 10.33 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/0.4129, allocations: 0 / 1.333 GB, free: 10.33 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.413, allocations: 0 / 1.333 GB, free: 10.33 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009342/0.4139, allocations: 484.6 kB / 1.334 GB, free: 9.805 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.4139, allocations: 0 / 1.334 GB, free: 9.805 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001231/0.414, allocations: 15.98 kB / 1.334 GB, free: 9.789 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.187e-06/0.414, allocations: 0 / 1.334 GB, free: 9.789 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.967e-05/0.414, allocations: 8 kB / 1.334 GB, free: 9.781 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.017e-06/0.414, allocations: 3.938 kB / 1.334 GB, free: 9.777 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.414, allocations: 4 kB / 1.334 GB, free: 9.773 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006206/0.4147, allocations: 360.2 kB / 1.334 GB, free: 9.398 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.712e-05/0.4147, allocations: 27.88 kB / 1.334 GB, free: 9.371 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.849e-05/0.4147, allocations: 4 kB / 1.334 GB, free: 9.367 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001734/0.4149, allocations: 15.92 kB / 1.334 GB, free: 9.352 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.582e-05/0.415, allocations: 11.98 kB / 1.334 GB, free: 9.34 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.354e-05/0.415, allocations: 7.984 kB / 1.334 GB, free: 9.332 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.00014/0.4151, allocations: 144.4 kB / 1.334 GB, free: 9.191 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.4151, allocations: 0 / 1.334 GB, free: 9.191 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0003523/0.4155, allocations: 28 kB / 1.334 GB, free: 9.164 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (intWitRes2.y,intWitRes1.y,intNoReset.y,intDef.y) * Number of discrete variables: 6 (booleanPulse.y,$whenCondition3,$whenCondition1,booleanPulse.pulseStart,sampleTrigger.y,$whenCondition2) * Number of discrete states: 0 () * 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.0009206/0.4164, allocations: 0.8988 MB / 1.335 GB, free: 8.234 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003451/0.4167, allocations: 112.6 kB / 1.335 GB, free: 8.125 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.4167, allocations: 0 / 1.335 GB, free: 8.125 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001448/0.4169, allocations: 52.09 kB / 1.335 GB, free: 8.074 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006032/0.4175, allocations: 81.73 kB / 1.335 GB, free: 8 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003166/0.4207, allocations: 2.27 MB / 1.338 GB, free: 5.543 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001232/0.4208, allocations: 112.1 kB / 1.338 GB, free: 5.406 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 9.078e-05/0.4209, allocations: 17.48 kB / 1.338 GB, free: 5.391 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.703e-05/0.421, allocations: 47.42 kB / 1.338 GB, free: 5.344 MB / 1.029 GB Notification: Performance of SimCode: time 7.42e-07/0.421, allocations: 0 / 1.338 GB, free: 5.344 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03224/0.4532, allocations: 4.422 MB / 1.342 GB, free: 1.129 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.4/11.86, allocations: 14.25 kB / 1.342 GB, free: 1.117 MB / 1.029 GB " [Timeout remaining time 288] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_Math_Examples_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.Examples.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.001085018040612]