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.007637/0.007637, allocations: 100.2 kB / 15.73 MB, free: 5.602 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.002127/0.002127, allocations: 192.2 kB / 16.68 MB, free: 5.523 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.741/2.741, allocations: 482.4 MB / 0.7548 GB, free: 6.879 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001879/0.001879, allocations: 69.84 kB / 1.083 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2728/0.2747, allocations: 162.2 MB / 1.241 GB, free: 9.25 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck): time 0.001597/0.2764, allocations: 0.603 MB / 1.242 GB, free: 8.648 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.000663/0.277, allocations: 347.1 kB / 1.242 GB, free: 8.309 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.581e-05/0.2771, allocations: 0 / 1.242 GB, free: 8.309 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.5e-05/0.2771, allocations: 3.938 kB / 1.242 GB, free: 8.305 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 1.704e-05/0.2771, allocations: 0 / 1.242 GB, free: 8.305 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004498/0.2776, allocations: 121.9 kB / 1.243 GB, free: 8.188 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 4.332e-05/0.2776, allocations: 4 kB / 1.243 GB, free: 8.184 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.643e-05/0.2777, allocations: 0 / 1.243 GB, free: 8.184 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 1.869e-05/0.2777, allocations: 7.984 kB / 1.243 GB, free: 8.176 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.809e-05/0.2778, allocations: 4 kB / 1.243 GB, free: 8.172 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.372e-05/0.2778, allocations: 4 kB / 1.243 GB, free: 8.168 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004056/0.2782, allocations: 271.6 kB / 1.243 GB, free: 7.902 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.007e-05/0.2782, allocations: 11.92 kB / 1.243 GB, free: 7.891 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 1.565e-05/0.2782, allocations: 0 / 1.243 GB, free: 7.891 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001812/0.2784, allocations: 92.02 kB / 1.243 GB, free: 7.801 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.2784, allocations: 3.938 kB / 1.243 GB, free: 7.797 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.353e-06/0.2784, allocations: 4 kB / 1.243 GB, free: 7.793 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.498e-06/0.2784, allocations: 0 / 1.243 GB, free: 7.793 MB / 0.9669 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.0003829/0.2788, allocations: 347.3 kB / 1.243 GB, free: 7.402 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.417e-05/0.2789, allocations: 8.031 kB / 1.243 GB, free: 7.395 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.279e-05/0.2789, allocations: 30.75 kB / 1.243 GB, free: 7.355 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.228e-05/0.279, allocations: 0.9375 kB / 1.243 GB, free: 7.355 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001222/0.2791, allocations: 164.4 kB / 1.243 GB, free: 7.156 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.275e-05/0.2791, allocations: 12.25 kB / 1.243 GB, free: 7.145 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.724e-05/0.2791, allocations: 4.375 kB / 1.243 GB, free: 7.141 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.728e-05/0.2792, allocations: 34.25 kB / 1.243 GB, free: 7.102 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/0.2792, allocations: 3.938 kB / 1.243 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.263e-06/0.2792, allocations: 0 / 1.243 GB, free: 7.098 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.2793, allocations: 4 kB / 1.243 GB, free: 7.094 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.791e-05/0.2793, allocations: 0 / 1.243 GB, free: 7.094 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001654/0.2794, allocations: 157.6 kB / 1.244 GB, free: 6.891 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 4.83e-05/0.2795, allocations: 26.55 kB / 1.244 GB, free: 6.855 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.144e-05/0.2795, allocations: 12.92 kB / 1.244 GB, free: 6.84 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007328/0.2803, allocations: 457.4 kB / 1.244 GB, free: 6.301 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.084e-05/0.2803, allocations: 38.56 kB / 1.244 GB, free: 6.254 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.282e-06/0.2803, allocations: 0 / 1.244 GB, free: 6.254 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0005164/0.2808, allocations: 254.3 kB / 1.244 GB, free: 5.953 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.953e-05/0.2809, allocations: 51.41 kB / 1.244 GB, free: 5.891 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.466e-05/0.281, allocations: 98.06 kB / 1.245 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.956e-05/0.281, allocations: 29.83 kB / 1.245 GB, free: 5.75 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.652e-05/0.281, allocations: 80.14 kB / 1.245 GB, free: 5.668 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.662e-05/0.2811, allocations: 15.91 kB / 1.245 GB, free: 5.652 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.289e-05/0.2811, allocations: 17.72 kB / 1.245 GB, free: 5.629 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001326/0.2812, allocations: 310.8 kB / 1.245 GB, free: 5.316 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.916e-05/0.2813, allocations: 7.984 kB / 1.245 GB, free: 5.309 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.437e-05/0.2813, allocations: 17.72 kB / 1.245 GB, free: 5.285 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.156e-05/0.2814, allocations: 33.59 kB / 1.245 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.92e-07/0.2814, allocations: 0 / 1.245 GB, free: 5.246 MB / 0.9669 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001049/0.2815, allocations: 57.62 kB / 1.245 GB, free: 5.184 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/0.2815, allocations: 11.94 kB / 1.245 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/0.2815, allocations: 0 / 1.245 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.002e-05/0.2815, allocations: 0 / 1.245 GB, free: 5.172 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.62e-05/0.2816, allocations: 8 kB / 1.245 GB, free: 5.164 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.598e-06/0.2816, allocations: 0 / 1.245 GB, free: 5.164 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.815e-05/0.2816, allocations: 4.062 kB / 1.245 GB, free: 5.16 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-06/0.2816, allocations: 3.984 kB / 1.245 GB, free: 5.156 MB / 0.9669 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.278e-05/0.2817, allocations: 113.8 kB / 1.245 GB, free: 5.035 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.469e-05/0.2817, allocations: 4.078 kB / 1.245 GB, free: 5.031 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001245/0.2819, allocations: 57.11 kB / 1.245 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.2819, allocations: 0 / 1.245 GB, free: 4.969 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.2819, allocations: 7.938 kB / 1.245 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.324e-06/0.2819, allocations: 4 kB / 1.245 GB, free: 4.957 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001264/0.282, allocations: 153.7 kB / 1.245 GB, free: 4.758 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.282, allocations: 0 / 1.245 GB, free: 4.758 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.07e-05/0.2821, allocations: 7.984 kB / 1.245 GB, free: 4.75 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.2821, allocations: 3.938 kB / 1.245 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.62e-06/0.2821, allocations: 0 / 1.245 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.2821, allocations: 0 / 1.245 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.2821, allocations: 0 / 1.245 GB, free: 4.746 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001431/0.2823, allocations: 81.12 kB / 1.246 GB, free: 4.648 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.686e-05/0.2823, allocations: 85 kB / 1.246 GB, free: 4.547 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.052e-05/0.2823, allocations: 0 / 1.246 GB, free: 4.547 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.027e-05/0.2824, allocations: 3.984 kB / 1.246 GB, free: 4.543 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.246e-05/0.2824, allocations: 7.969 kB / 1.246 GB, free: 4.535 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.469e-06/0.2824, allocations: 0 / 1.246 GB, free: 4.535 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.979e-05/0.2825, allocations: 83.28 kB / 1.246 GB, free: 4.453 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2825, allocations: 0 / 1.246 GB, free: 4.453 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002079/0.2827, allocations: 19.94 kB / 1.246 GB, free: 4.434 MB / 0.9669 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.0005208/0.2832, allocations: 0.6516 MB / 1.246 GB, free: 3.75 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 8.615e-05/0.2833, allocations: 19.94 kB / 1.246 GB, free: 3.73 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2833, allocations: 3.938 kB / 1.246 GB, free: 3.727 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.761e-05/0.2833, allocations: 7.984 kB / 1.246 GB, free: 3.719 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001337/0.2835, allocations: 4.188 kB / 1.246 GB, free: 3.715 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009833/0.2845, allocations: 1.127 MB / 1.247 GB, free: 2.5 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000289/0.2848, allocations: 0.6768 MB / 1.248 GB, free: 1.797 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.949e-05/0.2848, allocations: 7.984 kB / 1.248 GB, free: 1.789 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.753e-05/0.2848, allocations: 11.44 kB / 1.248 GB, free: 1.777 MB / 0.9669 GB Notification: Performance of SimCode: time 2.51e-07/0.2848, allocations: 0 / 1.248 GB, free: 1.777 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02213/0.307, allocations: 1.753 MB / 1.25 GB, free: 176 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.563/7.87, allocations: 7.891 kB / 1.25 GB, free: 172 kB / 0.9669 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 400 --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