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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.00744/0.00744, allocations: 99.5 kB / 15.73 MB, free: 6.059 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.001696/0.001696, allocations: 193 kB / 16.67 MB, free: 5.977 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.708/1.708, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.74/2.74, allocations: 472.7 MB / 0.7453 GB, free: 4.531 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 59.91 kB / 1.069 GB, free: 9.625 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2701/0.2716, allocations: 159.9 MB / 1.225 GB, free: 9.602 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck): time 0.002462/0.2741, allocations: 0.6049 MB / 1.226 GB, free: 9 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001005/0.2752, allocations: 346.7 kB / 1.226 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.926e-05/0.2752, allocations: 0 / 1.226 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.783e-05/0.2753, allocations: 0 / 1.226 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 3.616e-05/0.2753, allocations: 0 / 1.226 GB, free: 8.66 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007331/0.2761, allocations: 119.6 kB / 1.226 GB, free: 8.543 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 6.831e-05/0.2761, allocations: 4 kB / 1.226 GB, free: 8.539 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.619e-05/0.2762, allocations: 8 kB / 1.226 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 2.763e-05/0.2762, allocations: 0 / 1.226 GB, free: 8.531 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 7.861e-05/0.2763, allocations: 15.91 kB / 1.226 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.648e-05/0.2764, allocations: 0 / 1.226 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005916/0.2769, allocations: 271.7 kB / 1.227 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.864e-05/0.277, allocations: 3.984 kB / 1.227 GB, free: 8.246 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 3.206e-05/0.277, allocations: 7.938 kB / 1.227 GB, free: 8.238 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002694/0.2773, allocations: 91.78 kB / 1.227 GB, free: 8.148 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.2773, allocations: 0 / 1.227 GB, free: 8.148 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.653e-06/0.2773, allocations: 0 / 1.227 GB, free: 8.148 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.782e-06/0.2773, allocations: 0 / 1.227 GB, free: 8.148 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.0004783/0.2778, allocations: 347.2 kB / 1.227 GB, free: 7.758 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.585e-05/0.2779, allocations: 12.02 kB / 1.227 GB, free: 7.746 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.672e-05/0.278, allocations: 34.75 kB / 1.227 GB, free: 7.703 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.437e-05/0.278, allocations: 4.938 kB / 1.227 GB, free: 7.699 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.2782, allocations: 160.4 kB / 1.227 GB, free: 7.504 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.491e-05/0.2782, allocations: 4.375 kB / 1.227 GB, free: 7.5 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.341e-05/0.2782, allocations: 8.312 kB / 1.227 GB, free: 7.492 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001087/0.2784, allocations: 34.25 kB / 1.227 GB, free: 7.453 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.216e-05/0.2784, allocations: 3.938 kB / 1.227 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.047e-05/0.2784, allocations: 0 / 1.227 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.2784, allocations: 0 / 1.227 GB, free: 7.449 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.063e-05/0.2785, allocations: 8 kB / 1.227 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002195/0.2787, allocations: 153.7 kB / 1.227 GB, free: 7.242 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 6.811e-05/0.2788, allocations: 30.52 kB / 1.227 GB, free: 7.203 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.72e-05/0.2788, allocations: 8.797 kB / 1.227 GB, free: 7.191 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009961/0.2798, allocations: 461.5 kB / 1.228 GB, free: 6.648 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.204e-05/0.2799, allocations: 30.56 kB / 1.228 GB, free: 6.609 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.463e-06/0.2799, allocations: 0 / 1.228 GB, free: 6.609 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0007133/0.2806, allocations: 258.3 kB / 1.228 GB, free: 6.305 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.696e-05/0.2806, allocations: 51.41 kB / 1.228 GB, free: 6.242 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.224e-05/0.2807, allocations: 90.08 kB / 1.228 GB, free: 6.145 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.394e-05/0.2808, allocations: 37.83 kB / 1.228 GB, free: 6.102 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 3.493e-05/0.2808, allocations: 80.14 kB / 1.228 GB, free: 6.02 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.002e-05/0.2809, allocations: 15.83 kB / 1.228 GB, free: 6.004 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.054e-05/0.2809, allocations: 17.72 kB / 1.228 GB, free: 5.98 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001181/0.281, allocations: 314.8 kB / 1.229 GB, free: 5.664 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.601e-05/0.2811, allocations: 4 kB / 1.229 GB, free: 5.66 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.285e-05/0.2811, allocations: 21.7 kB / 1.229 GB, free: 5.633 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.66e-05/0.2812, allocations: 37.59 kB / 1.229 GB, free: 5.59 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.2812, allocations: 0 / 1.229 GB, free: 5.59 MB / 0.9825 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001485/0.2814, allocations: 49.69 kB / 1.229 GB, free: 5.535 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.2814, allocations: 7.938 kB / 1.229 GB, free: 5.527 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.2814, allocations: 3.938 kB / 1.229 GB, free: 5.523 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.2814, allocations: 4 kB / 1.229 GB, free: 5.52 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.676e-05/0.2815, allocations: 4 kB / 1.229 GB, free: 5.516 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.2815, allocations: 64 / 1.229 GB, free: 5.516 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.999e-05/0.2816, allocations: 8 kB / 1.229 GB, free: 5.508 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.053e-05/0.2816, allocations: 4 kB / 1.229 GB, free: 5.504 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.483e-05/0.2817, allocations: 109.8 kB / 1.229 GB, free: 5.387 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.393e-05/0.2817, allocations: 7.938 kB / 1.229 GB, free: 5.379 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001671/0.2819, allocations: 57.3 kB / 1.229 GB, free: 5.312 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.2819, allocations: 3.938 kB / 1.229 GB, free: 5.309 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.282, allocations: 4 kB / 1.229 GB, free: 5.305 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.282, allocations: 0 / 1.229 GB, free: 5.305 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001428/0.2821, allocations: 153.7 kB / 1.229 GB, free: 5.105 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.2821, allocations: 0 / 1.229 GB, free: 5.105 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.287e-05/0.2822, allocations: 4 kB / 1.229 GB, free: 5.102 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.957e-06/0.2822, allocations: 15.86 kB / 1.229 GB, free: 5.086 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.2822, allocations: 0 / 1.229 GB, free: 5.086 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.2823, allocations: 0 / 1.229 GB, free: 5.086 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/0.2823, allocations: 0 / 1.229 GB, free: 5.086 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002027/0.2825, allocations: 81.08 kB / 1.229 GB, free: 4.988 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.874e-05/0.2825, allocations: 85.08 kB / 1.229 GB, free: 4.887 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.659e-05/0.2826, allocations: 0 / 1.229 GB, free: 4.887 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.032e-05/0.2826, allocations: 0 / 1.229 GB, free: 4.887 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.335e-05/0.2827, allocations: 7.984 kB / 1.229 GB, free: 4.879 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.232e-05/0.2827, allocations: 8 kB / 1.229 GB, free: 4.871 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 3.98e-05/0.2827, allocations: 79.22 kB / 1.229 GB, free: 4.793 MB / 0.9825 GB Notification: Performance of sort global known variables: time 3.71e-07/0.2827, allocations: 0 / 1.229 GB, free: 4.793 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003761/0.2831, allocations: 23.94 kB / 1.229 GB, free: 4.77 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.0006641/0.2838, allocations: 0.6477 MB / 1.23 GB, free: 4.09 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0001195/0.2839, allocations: 19.94 kB / 1.23 GB, free: 4.07 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2839, allocations: 0 / 1.23 GB, free: 4.07 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 2.751e-05/0.284, allocations: 11.94 kB / 1.23 GB, free: 4.059 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002351/0.2842, allocations: 8.172 kB / 1.23 GB, free: 4.051 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001177/0.2854, allocations: 1.131 MB / 1.231 GB, free: 2.832 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002608/0.2857, allocations: 0.6729 MB / 1.232 GB, free: 2.133 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.907e-05/0.2857, allocations: 3.984 kB / 1.232 GB, free: 2.129 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.46e-05/0.2858, allocations: 11.44 kB / 1.232 GB, free: 2.117 MB / 0.9825 GB Notification: Performance of SimCode: time 5.61e-07/0.2858, allocations: 0 / 1.232 GB, free: 2.117 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02358/0.3094, allocations: 1.748 MB / 1.234 GB, free: 0.5195 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.915/8.225, allocations: 8 kB / 1.234 GB, free: 0.5117 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