Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Controls_OBC_CDL_Reals_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.001142/0.001142, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001146/0.001146, allocations: 193.6 kB / 16.14 MB, free: 6.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.184/1.184, allocations: 222.9 MB / 239.8 MB, free: 4.523 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.336/2.336, allocations: 461.9 MB / 0.7342 GB, free: 14.21 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001159/0.001159, allocations: 65.06 kB / 0.8985 GB, free: 37 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2142/0.2153, allocations: 157.4 MB / 1.052 GB, free: 8.215 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.001804/0.2172, allocations: 0.9361 MB / 1.053 GB, free: 7.273 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001261/0.2184, allocations: 1.198 MB / 1.054 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.909e-05/0.2185, allocations: 0 / 1.054 GB, free: 6.062 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.829e-05/0.2186, allocations: 7.922 kB / 1.054 GB, free: 6.055 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.718e-05/0.2186, allocations: 11.88 kB / 1.054 GB, free: 6.043 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003951/0.219, allocations: 138.7 kB / 1.054 GB, free: 5.91 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000127/0.2192, allocations: 155.7 kB / 1.055 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.2193, allocations: 33.09 kB / 1.055 GB, free: 5.727 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.641e-05/0.2194, allocations: 59.83 kB / 1.055 GB, free: 5.668 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 8.003e-05/0.2195, allocations: 63.67 kB / 1.055 GB, free: 5.605 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 2.489e-05/0.2195, allocations: 12 kB / 1.055 GB, free: 5.594 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 6.328e-05/0.2196, allocations: 27.97 kB / 1.055 GB, free: 5.566 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.474e-05/0.2196, allocations: 23.92 kB / 1.055 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 6.637e-05/0.2197, allocations: 55.72 kB / 1.055 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001678/0.2198, allocations: 159.7 kB / 1.055 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.2198, allocations: 0 / 1.055 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of FrontEnd: time 6.51e-07/0.2198, allocations: 0 / 1.055 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.587e-06/0.2199, allocations: 0 / 1.055 GB, free: 5.332 MB / 0.8106 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.0005438/0.2204, allocations: 456.8 kB / 1.055 GB, free: 4.828 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.2204, allocations: 15.97 kB / 1.055 GB, free: 4.812 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.523e-05/0.2205, allocations: 38.75 kB / 1.056 GB, free: 4.766 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.254e-05/0.2205, allocations: 16.78 kB / 1.056 GB, free: 4.75 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00047/0.221, allocations: 257.6 kB / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.221, allocations: 8.375 kB / 1.056 GB, free: 4.453 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.948e-05/0.2211, allocations: 16.38 kB / 1.056 GB, free: 4.438 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001913/0.2213, allocations: 93.95 kB / 1.056 GB, free: 4.34 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/0.2213, allocations: 4 kB / 1.056 GB, free: 4.336 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.133e-05/0.2213, allocations: 4 kB / 1.056 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.2213, allocations: 0 / 1.056 GB, free: 4.332 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001653/0.2215, allocations: 47.95 kB / 1.056 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005968/0.2221, allocations: 396.4 kB / 1.056 GB, free: 3.848 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001031/0.2222, allocations: 34.55 kB / 1.056 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.786e-05/0.2223, allocations: 24.97 kB / 1.056 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.555e-05/0.2223, allocations: 3.938 kB / 1.056 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001968/0.2225, allocations: 99.3 kB / 1.056 GB, free: 3.664 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=10): time 1.232e-06/0.2225, allocations: 4 kB / 1.056 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of matching and sorting (n=10): time 0.0003648/0.2229, allocations: 133.5 kB / 1.057 GB, free: 3.523 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.865e-05/0.2229, allocations: 59.34 kB / 1.057 GB, free: 3.453 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.43e-05/0.223, allocations: 134.9 kB / 1.057 GB, free: 3.312 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.39e-05/0.223, allocations: 33.7 kB / 1.057 GB, free: 3.273 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 5.677e-05/0.2231, allocations: 112 kB / 1.057 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.486e-05/0.2231, allocations: 31.59 kB / 1.057 GB, free: 3.129 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.199e-05/0.2232, allocations: 49.69 kB / 1.057 GB, free: 3.074 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.146e-05/0.2233, allocations: 322.8 kB / 1.057 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001394/0.2234, allocations: 47.97 kB / 1.057 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001748/0.2236, allocations: 134.8 kB / 1.057 GB, free: 2.535 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002746/0.2239, allocations: 208.6 kB / 1.058 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.2239, allocations: 0 / 1.058 GB, free: 2.285 MB / 0.8106 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004324/0.2244, allocations: 239.3 kB / 1.058 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.824e-05/0.2244, allocations: 33.7 kB / 1.058 GB, free: 2 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.2244, allocations: 4 kB / 1.058 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.037e-05/0.2244, allocations: 4 kB / 1.058 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001061/0.2245, allocations: 31.86 kB / 1.058 GB, free: 1.961 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.218e-06/0.2245, allocations: 11.97 kB / 1.058 GB, free: 1.949 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002034/0.2247, allocations: 39.81 kB / 1.058 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.194e-05/0.2248, allocations: 11.98 kB / 1.058 GB, free: 1.898 MB / 0.8106 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 8.84e-05/0.2249, allocations: 136.4 kB / 1.058 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.666e-05/0.2249, allocations: 11.84 kB / 1.058 GB, free: 1.746 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.086e-05/0.2249, allocations: 12.72 kB / 1.058 GB, free: 1.734 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.056e-06/0.2249, allocations: 3.938 kB / 1.058 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.2249, allocations: 3.984 kB / 1.058 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.225, allocations: 384 / 1.058 GB, free: 1.727 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004654/0.2254, allocations: 406.2 kB / 1.059 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2254, allocations: 0 / 1.059 GB, free: 1.273 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.823e-05/0.2255, allocations: 23.92 kB / 1.059 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.2255, allocations: 3.938 kB / 1.059 GB, free: 1.246 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.2256, allocations: 4 kB / 1.059 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.2256, allocations: 0 / 1.059 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.2256, allocations: 48 / 1.059 GB, free: 1.242 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003396/0.2259, allocations: 243.3 kB / 1.059 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.451e-05/0.226, allocations: 88.95 kB / 1.059 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.021e-05/0.226, allocations: 8.031 kB / 1.059 GB, free: 0.875 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.495e-05/0.2261, allocations: 4 kB / 1.059 GB, free: 0.8711 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.986e-05/0.2261, allocations: 7.984 kB / 1.059 GB, free: 0.8633 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.728e-06/0.2261, allocations: 8 kB / 1.059 GB, free: 0.8555 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 5.726e-05/0.2262, allocations: 108.6 kB / 1.059 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.91e-07/0.2262, allocations: 0 / 1.059 GB, free: 0.75 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002675/0.2265, allocations: 31.91 kB / 1.059 GB, free: 0.7188 MB / 0.8106 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.0005975/0.2271, allocations: 0.7865 MB / 1.06 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003215/0.2274, allocations: 179.1 kB / 1.06 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.2274, allocations: 288 / 1.06 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.2275, allocations: 35.92 kB / 1.06 GB, free: 15.68 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002616/0.2278, allocations: 28.73 kB / 1.06 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001953/0.2297, allocations: 1.965 MB / 1.062 GB, free: 13.53 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001911/0.2299, allocations: 0.7087 MB / 1.063 GB, free: 12.79 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.666e-05/0.23, allocations: 12.64 kB / 1.063 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.981e-05/0.2301, allocations: 39.42 kB / 1.063 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of SimCode: time 2.61e-07/0.2301, allocations: 0 / 1.063 GB, free: 12.74 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2925/0.5226, allocations: 2.91 MB / 1.066 GB, free: 9.988 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002082/0.5228, allocations: 222.2 kB / 1.066 GB, free: 9.73 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.565/2.087, allocations: 4.875 kB / 1.066 GB, free: 9.727 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat --tempDir=temp_Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.fmu > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches