Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.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.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck",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.006654/0.006654, allocations: 98.98 kB / 15.73 MB, free: 6.449 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.001145/0.001145, allocations: 197.2 kB / 16.68 MB, free: 6.348 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.786/2.786, allocations: 469.4 MB / 0.7422 GB, free: 7.578 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 59.91 kB / 1.064 GB, free: 13.83 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3005/0.3018, allocations: 159.1 MB / 1.22 GB, free: 14.57 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck): time 0.001927/0.3038, allocations: 0.5914 MB / 1.22 GB, free: 13.98 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0006938/0.3045, allocations: 344.6 kB / 1.221 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.385e-05/0.3046, allocations: 0 / 1.221 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.388e-05/0.3046, allocations: 0 / 1.221 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 1.993e-05/0.3046, allocations: 3.938 kB / 1.221 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004854/0.3051, allocations: 115.4 kB / 1.221 GB, free: 13.53 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 5.834e-05/0.3052, allocations: 15.98 kB / 1.221 GB, free: 13.52 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.664e-05/0.3052, allocations: 4 kB / 1.221 GB, free: 13.51 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.401e-05/0.3053, allocations: 4 kB / 1.221 GB, free: 13.51 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.916e-05/0.3053, allocations: 7.922 kB / 1.221 GB, free: 13.5 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.112e-05/0.3053, allocations: 0 / 1.221 GB, free: 13.5 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003792/0.3057, allocations: 275.6 kB / 1.221 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.296e-05/0.3057, allocations: 0 / 1.221 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.429e-05/0.3058, allocations: 11.94 kB / 1.221 GB, free: 13.22 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0001913/0.306, allocations: 95.7 kB / 1.221 GB, free: 13.12 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.306, allocations: 0 / 1.221 GB, free: 13.12 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.442e-06/0.306, allocations: 0 / 1.221 GB, free: 13.12 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.699e-06/0.306, allocations: 0 / 1.221 GB, free: 13.12 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.000368/0.3064, allocations: 351.2 kB / 1.222 GB, free: 12.73 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.3064, allocations: 12.03 kB / 1.222 GB, free: 12.72 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.388e-05/0.3065, allocations: 34.69 kB / 1.222 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.9e-05/0.3065, allocations: 0.9375 kB / 1.222 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001048/0.3066, allocations: 164.4 kB / 1.222 GB, free: 12.48 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.336e-05/0.3066, allocations: 4.375 kB / 1.222 GB, free: 12.47 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.776e-05/0.3067, allocations: 384 / 1.222 GB, free: 12.47 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.783e-05/0.3068, allocations: 34.27 kB / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.3068, allocations: 7.938 kB / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-06/0.3068, allocations: 0 / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.688e-06/0.3068, allocations: 0 / 1.222 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.223e-05/0.3068, allocations: 7.938 kB / 1.222 GB, free: 12.42 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001363/0.307, allocations: 153.7 kB / 1.222 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 4.193e-05/0.307, allocations: 18.61 kB / 1.222 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.768e-05/0.307, allocations: 8.844 kB / 1.222 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006785/0.3077, allocations: 457.5 kB / 1.222 GB, free: 11.64 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.799e-05/0.3078, allocations: 34.56 kB / 1.222 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 2.865e-06/0.3078, allocations: 7.938 kB / 1.222 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0004837/0.3083, allocations: 254.3 kB / 1.223 GB, free: 11.29 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.195e-05/0.3083, allocations: 55.39 kB / 1.223 GB, free: 11.22 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.928e-05/0.3084, allocations: 97.86 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.339e-05/0.3084, allocations: 29.64 kB / 1.223 GB, free: 11.08 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 2.809e-05/0.3084, allocations: 80.14 kB / 1.223 GB, free: 11 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.245e-05/0.3085, allocations: 12.19 kB / 1.223 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.163e-05/0.3085, allocations: 21.72 kB / 1.223 GB, free: 10.96 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001046/0.3086, allocations: 322.8 kB / 1.223 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.842e-05/0.3086, allocations: 4 kB / 1.223 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.617e-05/0.3087, allocations: 17.72 kB / 1.223 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.878e-05/0.3087, allocations: 25.7 kB / 1.223 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.32e-07/0.3087, allocations: 4 kB / 1.223 GB, free: 10.57 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.913e-05/0.3088, allocations: 53.64 kB / 1.223 GB, free: 10.52 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/0.3088, allocations: 7.938 kB / 1.223 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.3089, allocations: 4 kB / 1.223 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.3089, allocations: 0 / 1.223 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.258e-05/0.3089, allocations: 11.98 kB / 1.223 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.763e-06/0.309, allocations: 4 kB / 1.223 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.831e-05/0.309, allocations: 0 / 1.223 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.101e-06/0.309, allocations: 0 / 1.223 GB, free: 10.49 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 7.874e-05/0.3091, allocations: 117.8 kB / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.64e-05/0.3091, allocations: 3.938 kB / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001329/0.3092, allocations: 61.11 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.963e-06/0.3093, allocations: 0 / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.3093, allocations: 0 / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.706e-06/0.3093, allocations: 192 / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001125/0.3094, allocations: 149.7 kB / 1.224 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3094, allocations: 0 / 1.224 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.597e-05/0.3095, allocations: 16 kB / 1.224 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.3095, allocations: 7.922 kB / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.324e-06/0.3095, allocations: 0 / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.3095, allocations: 0 / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.3095, allocations: 0 / 1.224 GB, free: 10.07 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001509/0.3097, allocations: 81.03 kB / 1.224 GB, free: 9.977 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.639e-05/0.3097, allocations: 89.05 kB / 1.224 GB, free: 9.871 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.277e-05/0.3097, allocations: 3.938 kB / 1.224 GB, free: 9.867 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.786e-05/0.3098, allocations: 4.062 kB / 1.224 GB, free: 9.863 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.543e-05/0.3098, allocations: 4 kB / 1.224 GB, free: 9.859 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-06/0.3098, allocations: 0 / 1.224 GB, free: 9.859 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.146e-05/0.3098, allocations: 75.28 kB / 1.224 GB, free: 9.785 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3098, allocations: 0 / 1.224 GB, free: 9.785 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002303/0.3101, allocations: 27.92 kB / 1.224 GB, free: 9.758 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.0004977/0.3106, allocations: 0.6554 MB / 1.225 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 9.09e-05/0.3107, allocations: 11.98 kB / 1.225 GB, free: 9.059 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3107, allocations: 0 / 1.225 GB, free: 9.059 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.012e-05/0.3107, allocations: 15.94 kB / 1.225 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001493/0.3109, allocations: 6.484 kB / 1.225 GB, free: 9.043 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009345/0.3118, allocations: 1.139 MB / 1.226 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002271/0.312, allocations: 0.6807 MB / 1.226 GB, free: 7.109 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.382e-05/0.3121, allocations: 4 kB / 1.226 GB, free: 7.105 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.738e-05/0.3121, allocations: 11.38 kB / 1.226 GB, free: 7.094 MB / 0.9825 GB Notification: Performance of SimCode: time 2.6e-07/0.3121, allocations: 0 / 1.226 GB, free: 7.094 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01865/0.3308, allocations: 1.744 MB / 1.228 GB, free: 5.488 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.827/8.158, allocations: 11.8 kB / 1.228 GB, free: 5.477 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches