Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.IntegratorWithReset,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_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.006494/0.006494, allocations: 100.5 kB / 15.73 MB, free: 5.953 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.001296/0.001297, allocations: 192.8 kB / 16.67 MB, free: 5.875 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.69/2.69, allocations: 469.4 MB / 0.7422 GB, free: 3.594 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001304/0.001304, allocations: 59.91 kB / 1.064 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8445/0.8458, allocations: 159.1 MB / 1.22 GB, free: 2.27 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.IntegratorWithReset): time 0.002978/0.8488, allocations: 1.827 MB / 1.222 GB, free: 440 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001042/0.8499, allocations: 0.5346 MB / 1.222 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001066/0.85, allocations: 0 / 1.222 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001543/0.8502, allocations: 31.66 kB / 1.222 GB, free: 15.86 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 9.204e-05/0.8503, allocations: 27.73 kB / 1.222 GB, free: 15.83 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002235/0.8505, allocations: 67.92 kB / 1.222 GB, free: 15.77 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.000237/0.8508, allocations: 175.4 kB / 1.222 GB, free: 15.59 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001314/0.8509, allocations: 45.66 kB / 1.222 GB, free: 15.55 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 8.717e-05/0.851, allocations: 55.72 kB / 1.222 GB, free: 15.5 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.412e-05/0.8511, allocations: 67.58 kB / 1.222 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 2.529e-05/0.8512, allocations: 12 kB / 1.223 GB, free: 15.42 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 1.827e-05/0.8512, allocations: 8 kB / 1.223 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 3.857e-05/0.8512, allocations: 35.83 kB / 1.223 GB, free: 15.38 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 6.663e-05/0.8513, allocations: 63.61 kB / 1.223 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001857/0.8515, allocations: 131 kB / 1.223 GB, free: 15.19 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.888e-06/0.8515, allocations: 0 / 1.223 GB, free: 15.19 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.302e-06/0.8515, allocations: 0 / 1.223 GB, free: 15.19 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 6.693e-06/0.8515, allocations: 0 / 1.223 GB, free: 15.19 MB / 0.9512 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.000702/0.8522, allocations: 482.6 kB / 1.223 GB, free: 14.67 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.8523, allocations: 8.625 kB / 1.223 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.434e-05/0.8523, allocations: 46.67 kB / 1.223 GB, free: 14.61 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.742e-05/0.8524, allocations: 20.84 kB / 1.223 GB, free: 14.59 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003078/0.8527, allocations: 240.6 kB / 1.223 GB, free: 14.31 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.224e-05/0.8527, allocations: 4.375 kB / 1.224 GB, free: 14.31 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.066e-05/0.8527, allocations: 20.33 kB / 1.224 GB, free: 14.29 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000284/0.853, allocations: 156.8 kB / 1.224 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.853, allocations: 0 / 1.224 GB, free: 14.12 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.798e-05/0.8531, allocations: 4 kB / 1.224 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.8531, allocations: 7.938 kB / 1.224 GB, free: 14.11 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002432/0.8533, allocations: 71.89 kB / 1.224 GB, free: 14.04 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008853/0.8542, allocations: 0.7394 MB / 1.224 GB, free: 13.23 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001439/0.8544, allocations: 46.55 kB / 1.225 GB, free: 13.18 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001151/0.8545, allocations: 32.84 kB / 1.225 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.844e-05/0.8545, allocations: 0 / 1.225 GB, free: 13.14 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000226/0.8548, allocations: 130.7 kB / 1.225 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=11): time 1.332e-06/0.8548, allocations: 0 / 1.225 GB, free: 12.99 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.0004806/0.8553, allocations: 161.5 kB / 1.225 GB, free: 12.82 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.638e-05/0.8553, allocations: 136.7 kB / 1.225 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001846/0.8555, allocations: 207 kB / 1.225 GB, free: 12.44 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.884e-05/0.8556, allocations: 25.7 kB / 1.225 GB, free: 12.41 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 8.393e-05/0.8557, allocations: 135.9 kB / 1.225 GB, free: 12.27 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 3.3e-05/0.8557, allocations: 31.89 kB / 1.225 GB, free: 12.24 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.963e-05/0.8558, allocations: 45.66 kB / 1.225 GB, free: 12.19 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001144/0.8559, allocations: 330.8 kB / 1.226 GB, free: 11.86 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001246/0.856, allocations: 35.97 kB / 1.226 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001785/0.8562, allocations: 146.5 kB / 1.226 GB, free: 11.63 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003164/0.8565, allocations: 218.5 kB / 1.226 GB, free: 11.36 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.8565, allocations: 0 / 1.226 GB, free: 11.36 MB / 0.9512 GB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004048/0.857, allocations: 201.5 kB / 1.226 GB, free: 11.16 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.77e-05/0.857, allocations: 8 kB / 1.226 GB, free: 11.15 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.857, allocations: 7.938 kB / 1.226 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.857, allocations: 4 kB / 1.226 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001355/0.8572, allocations: 40.16 kB / 1.226 GB, free: 11.1 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.568e-06/0.8572, allocations: 4 kB / 1.226 GB, free: 11.1 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000151/0.8573, allocations: 27.88 kB / 1.226 GB, free: 11.07 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.411e-05/0.8574, allocations: 24.12 kB / 1.226 GB, free: 11.05 MB / 0.9512 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.0001056/0.8575, allocations: 129.7 kB / 1.227 GB, free: 10.91 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.221e-05/0.8575, allocations: 19.86 kB / 1.227 GB, free: 10.89 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.556e-05/0.8576, allocations: 25.39 kB / 1.227 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.8576, allocations: 0 / 1.227 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.8576, allocations: 4 kB / 1.227 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.8576, allocations: 0 / 1.227 GB, free: 10.86 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007623/0.8584, allocations: 0.5132 MB / 1.227 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.8584, allocations: 0 / 1.227 GB, free: 10.29 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001209/0.8585, allocations: 19.98 kB / 1.227 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.801e-06/0.8585, allocations: 4 kB / 1.227 GB, free: 10.26 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.281e-05/0.8585, allocations: 0 / 1.227 GB, free: 10.26 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.682e-06/0.8585, allocations: 11.92 kB / 1.227 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.8585, allocations: 0 / 1.227 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005176/0.8591, allocations: 356.3 kB / 1.227 GB, free: 9.879 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 5.657e-05/0.8591, allocations: 96.95 kB / 1.228 GB, free: 9.766 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.669e-05/0.8592, allocations: 4 kB / 1.228 GB, free: 9.762 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001743/0.8594, allocations: 19.97 kB / 1.228 GB, free: 9.742 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.636e-05/0.8594, allocations: 11.98 kB / 1.228 GB, free: 9.73 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.13e-05/0.8594, allocations: 7.984 kB / 1.228 GB, free: 9.723 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001181/0.8595, allocations: 144.4 kB / 1.228 GB, free: 9.582 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.2e-07/0.8596, allocations: 0 / 1.228 GB, free: 9.582 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003373/0.8599, allocations: 27.95 kB / 1.228 GB, free: 9.555 MB / 0.9512 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.0008412/0.8607, allocations: 0.8929 MB / 1.229 GB, free: 8.629 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0003281/0.8611, allocations: 112 kB / 1.229 GB, free: 8.52 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.8611, allocations: 3.938 kB / 1.229 GB, free: 8.516 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0001581/0.8613, allocations: 53.03 kB / 1.229 GB, free: 8.465 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005882/0.8619, allocations: 87.62 kB / 1.229 GB, free: 8.387 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002671/0.8645, allocations: 2.278 MB / 1.231 GB, free: 5.922 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000303/0.8649, allocations: 0.7242 MB / 1.232 GB, free: 5.172 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 9.188e-05/0.865, allocations: 13.55 kB / 1.232 GB, free: 5.16 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.401e-05/0.865, allocations: 51.42 kB / 1.232 GB, free: 5.109 MB / 0.9512 GB Notification: Performance of SimCode: time 2.2e-07/0.8651, allocations: 0 / 1.232 GB, free: 5.109 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02402/0.8891, allocations: 4.035 MB / 1.236 GB, free: 1.195 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.081/8.97, allocations: 7.828 kB / 1.236 GB, free: 1.191 MB / 0.9512 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_Math_Examples_IntegratorWithReset.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches