Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_BaseClasses_Examples_EqualPercentageDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_BaseClasses_Examples_EqualPercentageDerivativeCheck",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.001146/0.001146, 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.001186/0.001186, allocations: 195.4 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.3/1.3, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.645/2.645, allocations: 469.4 MB / 0.742 GB, free: 7.773 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 68.02 kB / 0.9083 GB, free: 34.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2662/0.2676, allocations: 159.1 MB / 1.064 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck): time 0.0019/0.2695, allocations: 0.544 MB / 1.064 GB, free: 14.04 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006572/0.2702, allocations: 323 kB / 1.065 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.527e-05/0.2703, allocations: 0 / 1.065 GB, free: 13.72 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.394e-05/0.2703, allocations: 3.938 kB / 1.065 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.887e-05/0.2703, allocations: 0 / 1.065 GB, free: 13.71 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004602/0.2708, allocations: 95.7 kB / 1.065 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 4.958e-05/0.2709, allocations: 11.98 kB / 1.065 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.472e-05/0.2709, allocations: 0 / 1.065 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.106e-05/0.2709, allocations: 8 kB / 1.065 GB, free: 13.6 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.826e-05/0.271, allocations: 11.91 kB / 1.065 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.466e-05/0.271, allocations: 4 kB / 1.065 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003074/0.2713, allocations: 183.8 kB / 1.065 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.124e-05/0.2713, allocations: 0 / 1.065 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.914e-05/0.2714, allocations: 8 kB / 1.065 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001599/0.2715, allocations: 83.8 kB / 1.065 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.2716, allocations: 0 / 1.065 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.695e-06/0.2716, allocations: 3.984 kB / 1.065 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.629e-06/0.2716, allocations: 0 / 1.065 GB, free: 13.31 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003185/0.2719, allocations: 339.8 kB / 1.065 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.891e-05/0.2719, allocations: 8.031 kB / 1.065 GB, free: 12.92 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.088e-05/0.272, allocations: 34.69 kB / 1.065 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.809e-05/0.272, allocations: 4.938 kB / 1.065 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.522e-05/0.2721, allocations: 164.3 kB / 1.065 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.023e-06/0.2721, allocations: 4.375 kB / 1.065 GB, free: 12.67 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.105e-05/0.2721, allocations: 8.375 kB / 1.065 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.485e-05/0.2722, allocations: 34.25 kB / 1.065 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-06/0.2722, allocations: 3.938 kB / 1.065 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.476e-06/0.2723, allocations: 0 / 1.065 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.516e-06/0.2723, allocations: 0 / 1.065 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.106e-05/0.2723, allocations: 4 kB / 1.065 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001453/0.2724, allocations: 157.7 kB / 1.066 GB, free: 12.41 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.187e-05/0.2725, allocations: 30.52 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.723e-05/0.2725, allocations: 4.859 kB / 1.066 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005599/0.2731, allocations: 0.5817 MB / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.293e-05/0.2731, allocations: 38.56 kB / 1.066 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.2731, allocations: 0 / 1.066 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.000466/0.2736, allocations: 258.2 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.244e-05/0.2736, allocations: 55.39 kB / 1.067 GB, free: 11.24 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.033e-05/0.2737, allocations: 97.86 kB / 1.067 GB, free: 11.13 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.336e-05/0.2737, allocations: 25.7 kB / 1.067 GB, free: 11.1 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.388e-05/0.2738, allocations: 84.36 kB / 1.067 GB, free: 11.02 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.271e-05/0.2738, allocations: 7.906 kB / 1.067 GB, free: 11.01 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.332e-05/0.2738, allocations: 21.7 kB / 1.067 GB, free: 10.98 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 8.844e-05/0.2739, allocations: 310.8 kB / 1.067 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.004e-05/0.2739, allocations: 8 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.786e-05/0.274, allocations: 21.64 kB / 1.067 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.638e-05/0.274, allocations: 25.72 kB / 1.067 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.41e-07/0.274, allocations: 0 / 1.067 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4) (initialization): time 8.848e-05/0.2741, allocations: 57.64 kB / 1.067 GB, free: 10.54 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.2742, allocations: 11.92 kB / 1.067 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.2742, allocations: 0 / 1.067 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.2742, allocations: 0 / 1.067 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.282e-05/0.2742, allocations: 8 kB / 1.067 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.2743, allocations: 0 / 1.067 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.474e-05/0.2743, allocations: 0 / 1.067 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.704e-06/0.2743, allocations: 8.062 kB / 1.067 GB, free: 10.51 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 6.519e-05/0.2744, allocations: 106.4 kB / 1.067 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.435e-05/0.2744, allocations: 7.844 kB / 1.067 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001175/0.2745, allocations: 73.36 kB / 1.067 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.2745, allocations: 0 / 1.067 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.2745, allocations: 0 / 1.067 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.2745, allocations: 0 / 1.067 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001031/0.2746, allocations: 153.7 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2746, allocations: 0 / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.552e-05/0.2747, allocations: 8 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.993e-06/0.2747, allocations: 7.938 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.272e-06/0.2747, allocations: 3.938 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.2747, allocations: 0 / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2747, allocations: 0 / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001197/0.2749, allocations: 81.05 kB / 1.068 GB, free: 9.996 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.085e-05/0.2749, allocations: 85.08 kB / 1.068 GB, free: 9.895 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.121e-05/0.2749, allocations: 0 / 1.068 GB, free: 9.895 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.574e-05/0.2749, allocations: 4.062 kB / 1.068 GB, free: 9.891 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.423e-05/0.275, allocations: 0 / 1.068 GB, free: 9.891 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.68e-06/0.275, allocations: 8 kB / 1.068 GB, free: 9.883 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.277e-05/0.275, allocations: 79.27 kB / 1.068 GB, free: 9.805 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.275, allocations: 0 / 1.068 GB, free: 9.805 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002296/0.2753, allocations: 28 kB / 1.068 GB, free: 9.777 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0004113/0.2757, allocations: 0.6436 MB / 1.068 GB, free: 9.102 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 7.988e-05/0.2758, allocations: 23.92 kB / 1.069 GB, free: 9.078 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.764e-06/0.2758, allocations: 0 / 1.069 GB, free: 9.078 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.614e-05/0.2758, allocations: 8 kB / 1.069 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001462/0.2759, allocations: 1.562 kB / 1.069 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008576/0.2768, allocations: 1.153 MB / 1.07 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001862/0.277, allocations: 0.6806 MB / 1.07 GB, free: 7.125 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.626e-05/0.277, allocations: 7.984 kB / 1.07 GB, free: 7.117 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.565e-05/0.2771, allocations: 11.44 kB / 1.07 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.2771, allocations: 0 / 1.07 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01753/0.2946, allocations: 2.071 MB / 1.072 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.327/7.622, allocations: 5.75 kB / 1.072 GB, free: 5.156 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck_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_Fluid_Actuators_BaseClasses_Examples_EqualPercentageDerivativeCheck.fmu > Buildings_latest_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Actuators_BaseClasses_Examples_EqualPercentageDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Actuators.BaseClasses.Examples.EqualPercentageDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches