Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.Continuous.Validation.IntegratorWithReset,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_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.001082/0.001082, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001461/0.001461, allocations: 190.9 kB / 16.25 MB, free: 6.629 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.331/1.331, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.327/2.327, allocations: 390.2 MB / 0.6644 GB, free: 0.5859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001191/0.001191, allocations: 63.91 kB / 0.8122 GB, free: 14.68 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5384/0.5396, allocations: 140.4 MB / 0.9493 GB, free: 9.137 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.00164/0.5412, allocations: 0.9312 MB / 0.9502 GB, free: 8.418 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009779/0.5422, allocations: 1.185 MB / 0.9513 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.669e-05/0.5423, allocations: 0 / 0.9513 GB, free: 7.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.282e-05/0.5423, allocations: 7.922 kB / 0.9513 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.798e-05/0.5424, allocations: 9.875 kB / 0.9513 GB, free: 7.445 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004113/0.5428, allocations: 135.9 kB / 0.9515 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001474/0.543, allocations: 168.6 kB / 0.9516 GB, free: 7.262 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001078/0.5431, allocations: 35.31 kB / 0.9517 GB, free: 7.238 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.186e-05/0.5432, allocations: 73.64 kB / 0.9517 GB, free: 7.191 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.853e-05/0.5432, allocations: 63.73 kB / 0.9518 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.713e-05/0.5433, allocations: 14.97 kB / 0.9518 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.157e-05/0.5433, allocations: 28.3 kB / 0.9518 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.445e-05/0.5434, allocations: 29.59 kB / 0.9519 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.819e-05/0.5434, allocations: 61.25 kB / 0.9519 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001527/0.5436, allocations: 166.1 kB / 0.9521 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.5436, allocations: 0 / 0.9521 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.052e-06/0.5436, allocations: 0 / 0.9521 GB, free: 6.945 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.185e-06/0.5436, allocations: 0 / 0.9521 GB, free: 6.945 MB / 0.7169 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.0005042/0.5441, allocations: 465.2 kB / 0.9525 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.218e-05/0.5442, allocations: 9.938 kB / 0.9525 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.554e-05/0.5442, allocations: 41.41 kB / 0.9526 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.525e-05/0.5442, allocations: 13.06 kB / 0.9526 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004282/0.5447, allocations: 247.3 kB / 0.9528 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.5447, allocations: 8.469 kB / 0.9528 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.642e-05/0.5447, allocations: 17.75 kB / 0.9528 GB, free: 6.172 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000182/0.5449, allocations: 91.8 kB / 0.9529 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.153e-06/0.5449, allocations: 0 / 0.9529 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.262e-05/0.545, allocations: 9.219 kB / 0.9529 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.545, allocations: 1.562 kB / 0.9529 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001502/0.5451, allocations: 51.7 kB / 0.953 GB, free: 6.074 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005412/0.5457, allocations: 385.8 kB / 0.9534 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.97e-05/0.5458, allocations: 42.45 kB / 0.9534 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.611e-05/0.5459, allocations: 25.34 kB / 0.9534 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.597e-05/0.5459, allocations: 1.625 kB / 0.9534 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001739/0.5461, allocations: 94.86 kB / 0.9535 GB, free: 5.57 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.853e-06/0.5461, allocations: 3.938 kB / 0.9535 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0003549/0.5464, allocations: 141 kB / 0.9537 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.14e-05/0.5465, allocations: 61.94 kB / 0.9537 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.291e-05/0.5466, allocations: 152.1 kB / 0.9539 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.194e-05/0.5466, allocations: 28.61 kB / 0.9539 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.534e-05/0.5466, allocations: 114.7 kB / 0.954 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.8e-05/0.5467, allocations: 30.97 kB / 0.954 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.534e-05/0.5467, allocations: 49.94 kB / 0.9541 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.882e-05/0.5468, allocations: 317.2 kB / 0.9544 GB, free: 4.762 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001375/0.5469, allocations: 50.7 kB / 0.9544 GB, free: 4.738 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001509/0.5471, allocations: 135 kB / 0.9546 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002429/0.5473, allocations: 202.8 kB / 0.9547 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.5473, allocations: 1.188 kB / 0.9547 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003967/0.5477, allocations: 241 kB / 0.955 GB, free: 4.262 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.573e-05/0.5478, allocations: 38.45 kB / 0.955 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.5478, allocations: 2.469 kB / 0.955 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.5478, allocations: 4.156 kB / 0.955 GB, free: 4.227 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001045/0.5479, allocations: 29.42 kB / 0.955 GB, free: 4.215 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.5479, allocations: 8.266 kB / 0.9551 GB, free: 4.211 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001982/0.5481, allocations: 37.75 kB / 0.9551 GB, free: 4.195 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.322e-05/0.5482, allocations: 18.05 kB / 0.9551 GB, free: 4.188 MB / 0.7169 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 7.152e-05/0.5482, allocations: 136.2 kB / 0.9552 GB, free: 4.055 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.602e-05/0.5482, allocations: 8.469 kB / 0.9552 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.955e-05/0.5483, allocations: 11.42 kB / 0.9553 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.076e-06/0.5483, allocations: 8.828 kB / 0.9553 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.5483, allocations: 0.9375 kB / 0.9553 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.5483, allocations: 7.984 kB / 0.9553 GB, free: 4.027 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004105/0.5487, allocations: 387.9 kB / 0.9556 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.5487, allocations: 0 / 0.9556 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.408e-05/0.5488, allocations: 25.89 kB / 0.9557 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.5488, allocations: 1.375 kB / 0.9557 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.103e-05/0.5488, allocations: 5.219 kB / 0.9557 GB, free: 3.645 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.5489, allocations: 7.938 kB / 0.9557 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.5489, allocations: 1.219 kB / 0.9557 GB, free: 3.637 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000324/0.5492, allocations: 239.6 kB / 0.9559 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.895e-05/0.5492, allocations: 88.61 kB / 0.956 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.909e-05/0.5492, allocations: 1.234 kB / 0.956 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.606e-05/0.5493, allocations: 19.55 kB / 0.956 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.469e-05/0.5494, allocations: 7.297 kB / 0.956 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.864e-06/0.5494, allocations: 3.594 kB / 0.956 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.251e-05/0.5494, allocations: 108.9 kB / 0.9561 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5494, allocations: 0 / 0.9561 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002671/0.5497, allocations: 32.84 kB / 0.9562 GB, free: 3.234 MB / 0.7169 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.0004934/0.5502, allocations: 0.7865 MB / 0.9569 GB, free: 2.508 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003174/0.5505, allocations: 194.4 kB / 0.9571 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.5505, allocations: 128 / 0.9571 GB, free: 2.379 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.622e-05/0.5506, allocations: 44.95 kB / 0.9572 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002608/0.5509, allocations: 19.2 kB / 0.9572 GB, free: 2.348 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001687/0.5526, allocations: 1.981 MB / 0.9591 GB, free: 0.5859 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001458/0.5528, allocations: 0.7025 MB / 0.9598 GB, free: 15.88 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.223e-05/0.5528, allocations: 16.89 kB / 0.9598 GB, free: 15.87 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.224e-05/0.5529, allocations: 34.3 kB / 0.9598 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of SimCode: time 3.41e-07/0.5529, allocations: 0 / 0.9598 GB, free: 15.84 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.586/2.138, allocations: 3.01 MB / 0.9628 GB, free: 14.39 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002287/2.139, allocations: 219.8 kB / 0.963 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.225/4.364, allocations: 0 / 0.963 GB, free: 14.14 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches