Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset,fileNamePrefix="Buildings_11_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.005335/0.005336, allocations: 99.11 kB / 15.73 MB, free: 6.039 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.001568/0.001568, allocations: 195.2 kB / 16.68 MB, free: 5.961 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.433/1.433, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.839/2.839, allocations: 469.8 MB / 0.7425 GB, free: 7.297 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001992/0.001992, allocations: 71.89 kB / 1.065 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2652/0.2672, allocations: 159.1 MB / 1.22 GB, free: 14.26 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset): time 0.002053/0.2692, allocations: 0.8811 MB / 1.221 GB, free: 13.37 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001563/0.2708, allocations: 1.178 MB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.7e-05/0.2709, allocations: 4 kB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.51e-05/0.271, allocations: 7.875 kB / 1.222 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 8.361e-05/0.2711, allocations: 15.8 kB / 1.222 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005241/0.2716, allocations: 151.2 kB / 1.222 GB, free: 12.01 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002359/0.2718, allocations: 179.6 kB / 1.223 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001167/0.272, allocations: 33.05 kB / 1.223 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001155/0.2721, allocations: 67.83 kB / 1.223 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001215/0.2722, allocations: 71.73 kB / 1.223 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 3.896e-05/0.2723, allocations: 16 kB / 1.223 GB, free: 11.65 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.878e-05/0.2723, allocations: 23.98 kB / 1.223 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.015e-05/0.2724, allocations: 27.91 kB / 1.223 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 9.084e-05/0.2725, allocations: 71.64 kB / 1.223 GB, free: 11.53 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002356/0.2727, allocations: 171.3 kB / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.2727, allocations: 0 / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.452e-06/0.2727, allocations: 0 / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.769e-06/0.2728, allocations: 0 / 1.223 GB, free: 11.36 MB / 0.9825 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.0006966/0.2735, allocations: 468.6 kB / 1.223 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.2735, allocations: 8.031 kB / 1.223 GB, free: 10.84 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.265e-05/0.2735, allocations: 42.73 kB / 1.224 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.121e-05/0.2736, allocations: 16.84 kB / 1.224 GB, free: 10.77 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005581/0.2742, allocations: 244.3 kB / 1.224 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.2742, allocations: 12.31 kB / 1.224 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.726e-05/0.2742, allocations: 16.38 kB / 1.224 GB, free: 10.46 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002411/0.2745, allocations: 89.95 kB / 1.224 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.2745, allocations: 0 / 1.224 GB, free: 10.37 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.466e-05/0.2745, allocations: 7.984 kB / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-06/0.2745, allocations: 4 kB / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001938/0.2747, allocations: 43.95 kB / 1.224 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007298/0.2755, allocations: 396.5 kB / 1.224 GB, free: 9.879 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001262/0.2756, allocations: 34.55 kB / 1.224 GB, free: 9.836 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.778e-05/0.2757, allocations: 28.91 kB / 1.224 GB, free: 9.805 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.634e-05/0.2757, allocations: 0 / 1.224 GB, free: 9.805 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002692/0.276, allocations: 107.3 kB / 1.224 GB, free: 9.688 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=10): time 3.346e-06/0.276, allocations: 3.984 kB / 1.224 GB, free: 9.684 MB / 0.9825 GB Notification: Performance of matching and sorting (n=10): time 0.0004553/0.2765, allocations: 129.5 kB / 1.225 GB, free: 9.551 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.59e-05/0.2765, allocations: 59.34 kB / 1.225 GB, free: 9.48 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001354/0.2767, allocations: 139.2 kB / 1.225 GB, free: 9.336 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.338e-05/0.2767, allocations: 33.69 kB / 1.225 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 8.45e-05/0.2768, allocations: 116.1 kB / 1.225 GB, free: 9.18 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.2e-05/0.2769, allocations: 31.73 kB / 1.225 GB, free: 9.148 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.049e-05/0.277, allocations: 49.69 kB / 1.225 GB, free: 9.094 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001323/0.2771, allocations: 318.8 kB / 1.225 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001762/0.2773, allocations: 51.91 kB / 1.225 GB, free: 8.723 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002323/0.2775, allocations: 141.6 kB / 1.226 GB, free: 8.547 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003587/0.2779, allocations: 204.6 kB / 1.226 GB, free: 8.301 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.2779, allocations: 0 / 1.226 GB, free: 8.301 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005366/0.2784, allocations: 247.3 kB / 1.226 GB, free: 8.047 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.508e-05/0.2785, allocations: 33.7 kB / 1.226 GB, free: 8.008 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.2785, allocations: 4 kB / 1.226 GB, free: 8.004 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.588e-05/0.2785, allocations: 4.375 kB / 1.226 GB, free: 8 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001227/0.2787, allocations: 31.84 kB / 1.226 GB, free: 7.969 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.896e-06/0.2787, allocations: 4 kB / 1.226 GB, free: 7.965 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002468/0.2789, allocations: 35.92 kB / 1.226 GB, free: 7.93 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.692e-05/0.279, allocations: 23.98 kB / 1.226 GB, free: 7.906 MB / 0.9825 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 0.0001175/0.2791, allocations: 131.7 kB / 1.226 GB, free: 7.77 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.108e-05/0.2791, allocations: 7.953 kB / 1.226 GB, free: 7.762 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.555e-05/0.2792, allocations: 16.7 kB / 1.226 GB, free: 7.742 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.968e-06/0.2792, allocations: 3.938 kB / 1.226 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.2792, allocations: 0 / 1.226 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.2792, allocations: 4 kB / 1.226 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005996/0.2798, allocations: 390.5 kB / 1.227 GB, free: 7.297 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.2798, allocations: 3.984 kB / 1.227 GB, free: 7.293 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.867e-05/0.2799, allocations: 15.88 kB / 1.227 GB, free: 7.277 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.2799, allocations: 0 / 1.227 GB, free: 7.277 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.767e-05/0.2799, allocations: 11.98 kB / 1.227 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.2799, allocations: 0 / 1.227 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.28, allocations: 0 / 1.227 GB, free: 7.266 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004426/0.2804, allocations: 243.2 kB / 1.227 GB, free: 7.012 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 5.666e-05/0.2805, allocations: 97.03 kB / 1.227 GB, free: 6.898 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.308e-05/0.2805, allocations: 4 kB / 1.227 GB, free: 6.895 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.734e-05/0.2806, allocations: 4 kB / 1.227 GB, free: 6.891 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.898e-05/0.2806, allocations: 7.984 kB / 1.227 GB, free: 6.883 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.522e-05/0.2807, allocations: 11.98 kB / 1.227 GB, free: 6.871 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 7.323e-05/0.2807, allocations: 105.3 kB / 1.227 GB, free: 6.77 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2807, allocations: 0 / 1.227 GB, free: 6.77 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003108/0.2811, allocations: 35.89 kB / 1.227 GB, free: 6.734 MB / 0.9825 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.0008116/0.2819, allocations: 0.795 MB / 1.228 GB, free: 5.914 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.000416/0.2823, allocations: 179.1 kB / 1.228 GB, free: 5.727 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.207e-06/0.2823, allocations: 0 / 1.228 GB, free: 5.727 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001363/0.2825, allocations: 39.91 kB / 1.228 GB, free: 5.688 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002932/0.2828, allocations: 20.75 kB / 1.228 GB, free: 5.668 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0025/0.2853, allocations: 1.961 MB / 1.23 GB, free: 3.547 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003174/0.2856, allocations: 0.7083 MB / 1.231 GB, free: 2.812 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.459e-05/0.2857, allocations: 12.64 kB / 1.231 GB, free: 2.801 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.065e-05/0.2857, allocations: 39.42 kB / 1.231 GB, free: 2.762 MB / 0.9825 GB Notification: Performance of SimCode: time 2.7e-07/0.2858, allocations: 0 / 1.231 GB, free: 2.762 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02468/0.3104, allocations: 3.186 MB / 1.234 GB, free: 15.71 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.742/8.053, allocations: 5.141 kB / 1.234 GB, free: 15.71 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; mkfifo Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe >> ../files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.sim & python3 -m fmpy simulate --output-file Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_11_Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.fmu > Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_OBC_CDL_Reals_Validation_IntegratorWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.OBC.CDL.Reals.Validation.IntegratorWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches