Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.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-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.Utilities.Examples.ExtendedPolynomialDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck",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.004954/0.004954, allocations: 99.95 kB / 15.73 MB, free: 6.062 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.001297/0.001297, allocations: 189.6 kB / 16.67 MB, free: 5.973 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.313/1.313, allocations: 222.9 MB / 240.4 MB, free: 4.148 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.685/2.685, allocations: 469.4 MB / 0.7422 GB, free: 7.531 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 67.89 kB / 1.064 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2657/0.267, allocations: 159.1 MB / 1.22 GB, free: 14.64 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck): time 0.001912/0.269, allocations: 0.5229 MB / 1.22 GB, free: 14.12 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0005386/0.2695, allocations: 189.2 kB / 1.22 GB, free: 13.94 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.307e-05/0.2696, allocations: 0 / 1.22 GB, free: 13.94 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.969e-05/0.2696, allocations: 4 kB / 1.22 GB, free: 13.93 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 3.687e-05/0.2697, allocations: 3.938 kB / 1.22 GB, free: 13.93 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004254/0.2701, allocations: 59.86 kB / 1.22 GB, free: 13.87 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 6.213e-05/0.2702, allocations: 15.92 kB / 1.221 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 4.418e-05/0.2702, allocations: 0 / 1.221 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.276e-05/0.2703, allocations: 7.938 kB / 1.221 GB, free: 13.85 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 2.763e-05/0.2703, allocations: 7.984 kB / 1.221 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.2e-05/0.2703, allocations: 0 / 1.221 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002339/0.2705, allocations: 127.8 kB / 1.221 GB, free: 13.71 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 4.673e-05/0.2706, allocations: 4 kB / 1.221 GB, free: 13.71 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.058e-05/0.2706, allocations: 15.94 kB / 1.221 GB, free: 13.7 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001706/0.2708, allocations: 67.77 kB / 1.221 GB, free: 13.63 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2708, allocations: 3.938 kB / 1.221 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.442e-06/0.2708, allocations: 0 / 1.221 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.671e-06/0.2708, allocations: 0 / 1.221 GB, free: 13.62 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003824/0.2712, allocations: 339.4 kB / 1.221 GB, free: 13.24 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.2713, allocations: 8.031 kB / 1.221 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.73e-05/0.2713, allocations: 42.73 kB / 1.221 GB, free: 13.18 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.02e-05/0.2714, allocations: 0.9375 kB / 1.221 GB, free: 13.18 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001264/0.2715, allocations: 180.2 kB / 1.221 GB, free: 12.97 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.028e-05/0.2715, allocations: 12.31 kB / 1.221 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.939e-05/0.2715, allocations: 384 / 1.221 GB, free: 12.96 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001026/0.2716, allocations: 38.25 kB / 1.221 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.2717, allocations: 3.938 kB / 1.221 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.036e-05/0.2717, allocations: 0 / 1.221 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.91e-06/0.2717, allocations: 0 / 1.221 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.902e-05/0.2717, allocations: 15.94 kB / 1.221 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001705/0.2719, allocations: 161.6 kB / 1.221 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 4.965e-05/0.272, allocations: 30.59 kB / 1.222 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.119e-05/0.272, allocations: 12.92 kB / 1.222 GB, free: 12.63 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 4.175e-05/0.272, allocations: 4 kB / 1.222 GB, free: 12.63 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.416e-05/0.2721, allocations: 34.56 kB / 1.222 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.2721, allocations: 0 / 1.222 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0005734/0.2727, allocations: 302.5 kB / 1.222 GB, free: 12.24 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.559e-05/0.2727, allocations: 51.41 kB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.31e-05/0.2728, allocations: 105.8 kB / 1.222 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.476e-05/0.2728, allocations: 25.7 kB / 1.222 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 3.959e-05/0.2729, allocations: 96.06 kB / 1.222 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.545e-05/0.2729, allocations: 7.906 kB / 1.222 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.816e-05/0.2729, allocations: 17.72 kB / 1.222 GB, free: 11.9 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.273, allocations: 322.8 kB / 1.222 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.475e-05/0.2731, allocations: 12 kB / 1.222 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.588e-05/0.2731, allocations: 25.7 kB / 1.222 GB, free: 11.54 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.069e-05/0.2732, allocations: 37.7 kB / 1.223 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.2732, allocations: 0 / 1.223 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001018/0.2733, allocations: 69.62 kB / 1.223 GB, free: 11.42 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.2733, allocations: 7.938 kB / 1.223 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.151e-06/0.2733, allocations: 4.062 kB / 1.223 GB, free: 11.41 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.554e-05/0.2734, allocations: 4 kB / 1.223 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.163e-05/0.2734, allocations: 4 kB / 1.223 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.2734, allocations: 0 / 1.223 GB, free: 11.4 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.672e-05/0.2735, allocations: 4 kB / 1.223 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.452e-06/0.2735, allocations: 320 / 1.223 GB, free: 11.39 MB / 0.9825 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 8.145e-05/0.2736, allocations: 113.8 kB / 1.223 GB, free: 11.27 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.428e-05/0.2736, allocations: 15.77 kB / 1.223 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001344/0.2737, allocations: 85.5 kB / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.2737, allocations: 0 / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.2737, allocations: 0 / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.2737, allocations: 0 / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001085/0.2738, allocations: 161.7 kB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/0.2739, allocations: 3.984 kB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.003e-05/0.2739, allocations: 4 kB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.292e-06/0.2739, allocations: 7.938 kB / 1.223 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.2739, allocations: 0 / 1.223 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.085e-06/0.2739, allocations: 4 kB / 1.223 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.274, allocations: 0 / 1.223 GB, free: 10.93 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001588/0.2741, allocations: 113.2 kB / 1.223 GB, free: 10.8 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.854e-05/0.2742, allocations: 85 kB / 1.223 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.315e-05/0.2742, allocations: 3.984 kB / 1.223 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.552e-05/0.2742, allocations: 3.938 kB / 1.223 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.338e-05/0.2743, allocations: 4.031 kB / 1.223 GB, free: 10.69 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.161e-06/0.2743, allocations: 4 kB / 1.223 GB, free: 10.69 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.832e-05/0.2743, allocations: 87.27 kB / 1.223 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.1e-07/0.2743, allocations: 4.062 kB / 1.223 GB, free: 10.6 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000215/0.2745, allocations: 16 kB / 1.223 GB, free: 10.58 MB / 0.9825 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.000441/0.275, allocations: 0.667 MB / 1.224 GB, free: 9.887 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 9.651e-05/0.2751, allocations: 35.97 kB / 1.224 GB, free: 9.852 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2751, allocations: 192 / 1.224 GB, free: 9.852 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.168e-05/0.2751, allocations: 16 kB / 1.224 GB, free: 9.836 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001466/0.2753, allocations: 3.938 kB / 1.224 GB, free: 9.832 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009549/0.2763, allocations: 1.256 MB / 1.225 GB, free: 8.488 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001985/0.2765, allocations: 0.6807 MB / 1.226 GB, free: 7.781 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.684e-05/0.2765, allocations: 4 kB / 1.226 GB, free: 7.777 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.879e-05/0.2765, allocations: 11.44 kB / 1.226 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of SimCode: time 2.3e-07/0.2765, allocations: 0 / 1.226 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01859/0.2951, allocations: 1.877 MB / 1.228 GB, free: 6.023 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.475/7.77, allocations: 2.875 kB / 1.228 GB, free: 6.023 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 Buildings_latest_Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck.fmu > Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Utilities_Examples_ExtendedPolynomialDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Utilities.Examples.ExtendedPolynomialDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches