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.001215/0.001214, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 197.8 kB / 16.53 MB, free: 6.664 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.235/1.235, allocations: 222.9 MB / 240.2 MB, free: 4.41 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.193/2.193, allocations: 390.2 MB / 0.6647 GB, free: 460 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 71.89 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6256/0.6269, allocations: 140.4 MB / 0.9497 GB, free: 9.203 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.001762/0.6287, allocations: 0.8799 MB / 0.9506 GB, free: 8.52 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001019/0.6297, allocations: 1.184 MB / 0.9518 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.944e-05/0.6298, allocations: 0 / 0.9518 GB, free: 7.562 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.009e-05/0.6298, allocations: 13.39 kB / 0.9518 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.843e-05/0.6299, allocations: 13.69 kB / 0.9518 GB, free: 7.539 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004096/0.6303, allocations: 148.2 kB / 0.9519 GB, free: 7.438 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001507/0.6305, allocations: 176.4 kB / 0.9521 GB, free: 7.336 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001087/0.6306, allocations: 30.52 kB / 0.9521 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.013e-05/0.6307, allocations: 63.48 kB / 0.9522 GB, free: 7.281 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.38e-05/0.6308, allocations: 66.5 kB / 0.9522 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.107e-05/0.6308, allocations: 14.47 kB / 0.9523 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.925e-05/0.6309, allocations: 30.16 kB / 0.9523 GB, free: 7.223 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.537e-05/0.6309, allocations: 28.31 kB / 0.9523 GB, free: 7.199 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.381e-05/0.631, allocations: 61.25 kB / 0.9524 GB, free: 7.156 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000154/0.6311, allocations: 168.3 kB / 0.9525 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.6312, allocations: 5.25 kB / 0.9525 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.333e-06/0.6312, allocations: 0 / 0.9525 GB, free: 7.023 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.268e-06/0.6312, allocations: 0 / 0.9525 GB, free: 7.023 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.0005207/0.6317, allocations: 461.2 kB / 0.953 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.6317, allocations: 9.562 kB / 0.953 GB, free: 6.562 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.115e-05/0.6318, allocations: 41.39 kB / 0.953 GB, free: 6.516 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.822e-05/0.6318, allocations: 13.62 kB / 0.953 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004669/0.6323, allocations: 242 kB / 0.9533 GB, free: 6.27 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.6323, allocations: 10.53 kB / 0.9533 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.631e-05/0.6324, allocations: 21 kB / 0.9533 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001941/0.6326, allocations: 95.92 kB / 0.9534 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.6326, allocations: 0 / 0.9534 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.185e-05/0.6326, allocations: 1.438 kB / 0.9534 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.6326, allocations: 1.594 kB / 0.9534 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001668/0.6328, allocations: 50.86 kB / 0.9534 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005636/0.6333, allocations: 390.5 kB / 0.9538 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001065/0.6335, allocations: 31.34 kB / 0.9538 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.577e-05/0.6336, allocations: 28.73 kB / 0.9539 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.521e-05/0.6336, allocations: 0.9688 kB / 0.9539 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002/0.6338, allocations: 103 kB / 0.954 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=10): time 1.322e-06/0.6338, allocations: 3.938 kB / 0.954 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of matching and sorting (n=10): time 0.0003795/0.6342, allocations: 133 kB / 0.9541 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.439e-05/0.6342, allocations: 61.56 kB / 0.9542 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.755e-05/0.6343, allocations: 157.2 kB / 0.9543 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 2.103e-05/0.6343, allocations: 32.23 kB / 0.9543 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.784e-05/0.6344, allocations: 105.8 kB / 0.9544 GB, free: 5.23 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.864e-05/0.6344, allocations: 32.41 kB / 0.9545 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.828e-05/0.6345, allocations: 44.23 kB / 0.9545 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.188e-05/0.6345, allocations: 322.7 kB / 0.9548 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001469/0.6347, allocations: 49.89 kB / 0.9549 GB, free: 4.828 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001678/0.6349, allocations: 134.4 kB / 0.955 GB, free: 4.691 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000261/0.6351, allocations: 202.3 kB / 0.9552 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.6351, allocations: 1.469 kB / 0.9552 GB, free: 4.5 MB / 0.7169 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004156/0.6356, allocations: 248.4 kB / 0.9554 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.618e-05/0.6356, allocations: 40.06 kB / 0.9555 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.6356, allocations: 2.281 kB / 0.9555 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.6356, allocations: 4.656 kB / 0.9555 GB, free: 4.309 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.6357, allocations: 25.98 kB / 0.9555 GB, free: 4.301 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.456e-06/0.6357, allocations: 7.719 kB / 0.9555 GB, free: 4.297 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002174/0.636, allocations: 50.3 kB / 0.9556 GB, free: 4.27 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.071e-05/0.636, allocations: 9.25 kB / 0.9556 GB, free: 4.27 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.161e-05/0.6361, allocations: 131 kB / 0.9557 GB, free: 4.141 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.613e-05/0.6361, allocations: 12.5 kB / 0.9557 GB, free: 4.133 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.76e-05/0.6361, allocations: 14.66 kB / 0.9557 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.6361, allocations: 5.969 kB / 0.9557 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.6361, allocations: 0 / 0.9557 GB, free: 4.117 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.6361, allocations: 5.156 kB / 0.9557 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004114/0.6366, allocations: 394.7 kB / 0.9561 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.6366, allocations: 0 / 0.9561 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.396e-05/0.6367, allocations: 17.55 kB / 0.9561 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.6367, allocations: 1.219 kB / 0.9561 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.6367, allocations: 1.188 kB / 0.9561 GB, free: 3.734 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.6367, allocations: 9.297 kB / 0.9561 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.6367, allocations: 4 kB / 0.9561 GB, free: 3.723 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000334/0.637, allocations: 238.8 kB / 0.9564 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.215e-05/0.6371, allocations: 92.27 kB / 0.9564 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.84e-05/0.6371, allocations: 3.875 kB / 0.9564 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.368e-05/0.6372, allocations: 5.906 kB / 0.9565 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.665e-05/0.6372, allocations: 19.67 kB / 0.9565 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.163e-06/0.6372, allocations: 3.562 kB / 0.9565 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.042e-05/0.6373, allocations: 106.8 kB / 0.9566 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6373, allocations: 3.594 kB / 0.9566 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002671/0.6376, allocations: 38.17 kB / 0.9566 GB, free: 3.309 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.0005211/0.6381, allocations: 0.7833 MB / 0.9574 GB, free: 2.586 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003276/0.6384, allocations: 181.2 kB / 0.9576 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.6384, allocations: 0.75 kB / 0.9576 GB, free: 2.469 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001017/0.6385, allocations: 43.91 kB / 0.9576 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002616/0.6388, allocations: 21.67 kB / 0.9576 GB, free: 2.438 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001748/0.6406, allocations: 1.953 MB / 0.9595 GB, free: 0.7109 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001053/0.6407, allocations: 0.7078 MB / 0.9602 GB, free: 0 / 0.7169 GB Notification: Performance of simCode: alias equations: time 9.114e-05/0.6408, allocations: 21.02 kB / 0.9602 GB, free: 15.98 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.538e-05/0.6408, allocations: 38.17 kB / 0.9603 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of SimCode: time 2.11e-07/0.6408, allocations: 0 / 0.9603 GB, free: 15.95 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9271/1.568, allocations: 3.122 MB / 0.9633 GB, free: 14.38 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.41/11.98, allocations: 10.69 kB / 0.9633 GB, free: 14.37 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