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.005445/0.005445, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001155/0.001155, allocations: 195.3 kB / 16.67 MB, free: 5.52 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.466/1.466, allocations: 222.9 MB / 240.4 MB, free: 15.17 MB / 206.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.275/2.275, allocations: 390.3 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 72.03 kB / 0.9505 GB, free: 8.074 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7766/0.778, allocations: 140.4 MB / 1.088 GB, free: 5.266 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.IntegratorWithReset): time 0.001943/0.7799, allocations: 0.8765 MB / 1.088 GB, free: 4.691 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.001401/0.7814, allocations: 1.18 MB / 1.09 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.329e-05/0.7814, allocations: 1.031 kB / 1.09 GB, free: 3.82 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.203e-05/0.7815, allocations: 10.81 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.616e-05/0.7816, allocations: 19.19 kB / 1.09 GB, free: 3.797 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004933/0.7821, allocations: 141.8 kB / 1.09 GB, free: 3.727 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001968/0.7823, allocations: 176.3 kB / 1.09 GB, free: 3.648 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001181/0.7824, allocations: 34.67 kB / 1.09 GB, free: 3.629 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 9.699e-05/0.7825, allocations: 69.39 kB / 1.09 GB, free: 3.598 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000115/0.7826, allocations: 71.75 kB / 1.09 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.921e-05/0.7827, allocations: 16.03 kB / 1.09 GB, free: 3.562 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 7.452e-05/0.7827, allocations: 32.16 kB / 1.09 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 3.248e-05/0.7828, allocations: 30.09 kB / 1.09 GB, free: 3.535 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 7.672e-05/0.7829, allocations: 62.34 kB / 1.09 GB, free: 3.5 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002487/0.7831, allocations: 164.3 kB / 1.09 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.7831, allocations: 0 / 1.09 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.094e-06/0.7831, allocations: 1.938 kB / 1.09 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.7831, allocations: 0 / 1.09 GB, free: 3.441 MB / 0.8575 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.0005461/0.7837, allocations: 458.8 kB / 1.091 GB, free: 3.004 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.7837, allocations: 9.781 kB / 1.091 GB, free: 3.004 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.088e-05/0.7838, allocations: 43.41 kB / 1.091 GB, free: 2.957 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.873e-05/0.7838, allocations: 22.12 kB / 1.091 GB, free: 2.945 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004776/0.7843, allocations: 240.7 kB / 1.091 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.647e-05/0.7843, allocations: 4.406 kB / 1.091 GB, free: 2.734 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.974e-05/0.7844, allocations: 15.52 kB / 1.091 GB, free: 2.73 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002227/0.7846, allocations: 94.42 kB / 1.091 GB, free: 2.676 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.7846, allocations: 4.5 kB / 1.091 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.7847, allocations: 5.375 kB / 1.091 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.545e-06/0.7847, allocations: 2.188 kB / 1.091 GB, free: 2.668 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001925/0.7849, allocations: 50.5 kB / 1.091 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006917/0.7856, allocations: 393.7 kB / 1.092 GB, free: 2.332 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001213/0.7857, allocations: 37.02 kB / 1.092 GB, free: 2.305 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.83e-05/0.7858, allocations: 30.16 kB / 1.092 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.7858, allocations: 1.594 kB / 1.092 GB, free: 2.289 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002543/0.7861, allocations: 97.09 kB / 1.092 GB, free: 2.227 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/0.7861, allocations: 3.938 kB / 1.092 GB, free: 2.223 MB / 0.8575 GB Notification: Performance of matching and sorting (n=10): time 0.0004264/0.7865, allocations: 133.6 kB / 1.092 GB, free: 2.168 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.726e-05/0.7866, allocations: 57 kB / 1.092 GB, free: 2.102 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001033/0.7867, allocations: 151.5 kB / 1.092 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.7867, allocations: 28.53 kB / 1.092 GB, free: 1.949 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 5.316e-05/0.7868, allocations: 113.7 kB / 1.092 GB, free: 1.844 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.345e-05/0.7868, allocations: 34.19 kB / 1.092 GB, free: 1.816 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.113e-05/0.7869, allocations: 48.05 kB / 1.092 GB, free: 1.789 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.533e-05/0.7869, allocations: 321.5 kB / 1.093 GB, free: 1.473 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001853/0.7871, allocations: 49.56 kB / 1.093 GB, free: 1.461 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001877/0.7873, allocations: 130.1 kB / 1.093 GB, free: 1.34 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002919/0.7876, allocations: 199.3 kB / 1.093 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.926e-06/0.7876, allocations: 0.9688 kB / 1.093 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004751/0.7881, allocations: 241.2 kB / 1.093 GB, free: 1.043 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 3.364e-05/0.7882, allocations: 43.8 kB / 1.093 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.694e-06/0.7882, allocations: 2.656 kB / 1.093 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.7882, allocations: 5.266 kB / 1.093 GB, free: 1.004 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.7883, allocations: 26.75 kB / 1.093 GB, free: 1 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/0.7883, allocations: 8.766 kB / 1.093 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002387/0.7886, allocations: 35.7 kB / 1.093 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.877e-05/0.7886, allocations: 18.88 kB / 1.093 GB, free: 0.9844 MB / 0.8575 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.352e-05/0.7887, allocations: 131.2 kB / 1.093 GB, free: 0.8594 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.967e-05/0.7887, allocations: 9.766 kB / 1.093 GB, free: 0.8555 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.307e-05/0.7888, allocations: 11.67 kB / 1.094 GB, free: 0.8477 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.7888, allocations: 5.406 kB / 1.094 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.7888, allocations: 1.547 kB / 1.094 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.7888, allocations: 0.7969 kB / 1.094 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005156/0.7893, allocations: 401.5 kB / 1.094 GB, free: 0.5039 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.7893, allocations: 0.5625 kB / 1.094 GB, free: 0.5039 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.698e-05/0.7894, allocations: 16.28 kB / 1.094 GB, free: 0.5 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.7894, allocations: 5.75 kB / 1.094 GB, free: 0.4961 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.7895, allocations: 5.812 kB / 1.094 GB, free: 0.4922 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.7895, allocations: 4.812 kB / 1.094 GB, free: 500 kB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.7895, allocations: 4.609 kB / 1.094 GB, free: 496 kB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003836/0.7899, allocations: 249.6 kB / 1.094 GB, free: 324 kB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.424e-05/0.7899, allocations: 92.47 kB / 1.094 GB, free: 216 kB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.05e-05/0.7899, allocations: 2.328 kB / 1.094 GB, free: 216 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.325e-05/0.79, allocations: 10.39 kB / 1.094 GB, free: 212 kB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.936e-05/0.7901, allocations: 7.047 kB / 1.094 GB, free: 212 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.7901, allocations: 4.125 kB / 1.094 GB, free: 212 kB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.133e-05/0.7901, allocations: 110.8 kB / 1.094 GB, free: 124 kB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7901, allocations: 0 / 1.094 GB, free: 124 kB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002993/0.7904, allocations: 33.17 kB / 1.094 GB, free: 116 kB / 0.8575 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.0007597/0.7912, allocations: 0.7898 MB / 1.095 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0004476/0.7917, allocations: 179.8 kB / 1.095 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.7917, allocations: 0 / 1.095 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0001373/0.7918, allocations: 39.67 kB / 1.095 GB, free: 15.31 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003249/0.7922, allocations: 29.56 kB / 1.095 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002705/0.7949, allocations: 1.955 MB / 1.097 GB, free: 13.68 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003263/0.7952, allocations: 0.7039 MB / 1.098 GB, free: 12.98 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 7.184e-05/0.7953, allocations: 15.48 kB / 1.098 GB, free: 12.98 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.452e-05/0.7954, allocations: 38.39 kB / 1.098 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of SimCode: time 4.8e-07/0.7954, allocations: 1.094 kB / 1.098 GB, free: 12.95 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02075/0.8161, allocations: 3.176 MB / 1.101 GB, free: 12.46 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.583/8.399, allocations: 1.062 kB / 1.101 GB, free: 12.46 MB / 0.8731 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 & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.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_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.csv","/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