Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.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.Examples.RegNonZeroPower,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_RegNonZeroPower",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.007968/0.007968, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.00219/0.002191, allocations: 193.6 kB / 16.67 MB, free: 5.93 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.387/1.387, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.776/2.776, allocations: 482.4 MB / 0.7548 GB, free: 6.879 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 64.69 kB / 1.083 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.285/0.287, allocations: 162.2 MB / 1.241 GB, free: 9.273 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002413/0.2894, allocations: 1.443 MB / 1.243 GB, free: 7.82 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0006993/0.2902, allocations: 386.7 kB / 1.243 GB, free: 7.441 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.759e-05/0.2902, allocations: 3.938 kB / 1.243 GB, free: 7.438 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.876e-05/0.2902, allocations: 3.938 kB / 1.243 GB, free: 7.434 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 3.569e-05/0.2903, allocations: 7.938 kB / 1.243 GB, free: 7.426 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003998/0.2907, allocations: 106.7 kB / 1.243 GB, free: 7.324 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 5.959e-05/0.2907, allocations: 23.92 kB / 1.243 GB, free: 7.301 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 8.088e-05/0.2908, allocations: 15.98 kB / 1.243 GB, free: 7.285 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.677e-05/0.2909, allocations: 7.938 kB / 1.243 GB, free: 7.277 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.001e-05/0.2909, allocations: 15.97 kB / 1.243 GB, free: 7.262 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.056e-05/0.2909, allocations: 0 / 1.243 GB, free: 7.262 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004083/0.2914, allocations: 279.7 kB / 1.244 GB, free: 6.988 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.452e-05/0.2914, allocations: 11.92 kB / 1.244 GB, free: 6.977 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.068e-05/0.2914, allocations: 7.938 kB / 1.244 GB, free: 6.969 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000198/0.2916, allocations: 111.9 kB / 1.244 GB, free: 6.859 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.838e-06/0.2916, allocations: 0 / 1.244 GB, free: 6.859 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.272e-06/0.2916, allocations: 0 / 1.244 GB, free: 6.859 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.449e-06/0.2916, allocations: 0 / 1.244 GB, free: 6.859 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: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004732/0.2921, allocations: 371.1 kB / 1.244 GB, free: 6.445 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.672e-05/0.2922, allocations: 8.031 kB / 1.244 GB, free: 6.438 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.482e-05/0.2922, allocations: 34.69 kB / 1.244 GB, free: 6.395 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.063e-05/0.2922, allocations: 4.938 kB / 1.244 GB, free: 6.391 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001395/0.2924, allocations: 168.4 kB / 1.244 GB, free: 6.188 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.2924, allocations: 4.375 kB / 1.244 GB, free: 6.184 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.112e-06/0.2924, allocations: 384 / 1.244 GB, free: 6.184 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001761/0.2926, allocations: 54.23 kB / 1.244 GB, free: 6.125 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.2926, allocations: 7.922 kB / 1.244 GB, free: 6.117 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.073e-06/0.2926, allocations: 0 / 1.244 GB, free: 6.117 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-06/0.2926, allocations: 0 / 1.244 GB, free: 6.117 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001729/0.2928, allocations: 31.97 kB / 1.244 GB, free: 6.086 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003088/0.2931, allocations: 256.9 kB / 1.245 GB, free: 5.785 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001312/0.2933, allocations: 42.5 kB / 1.245 GB, free: 5.734 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.509e-05/0.2934, allocations: 34.38 kB / 1.245 GB, free: 5.699 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007073/0.2941, allocations: 457.5 kB / 1.245 GB, free: 5.16 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.302e-05/0.2941, allocations: 34.56 kB / 1.245 GB, free: 5.117 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 1.203e-06/0.2941, allocations: 0 / 1.245 GB, free: 5.117 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2): time 0.0003745/0.2945, allocations: 85.58 kB / 1.245 GB, free: 5.027 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.749e-05/0.2946, allocations: 55.47 kB / 1.245 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.35e-05/0.2947, allocations: 109.8 kB / 1.245 GB, free: 4.844 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.647e-05/0.2947, allocations: 25.7 kB / 1.246 GB, free: 4.812 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.917e-05/0.2947, allocations: 88.14 kB / 1.246 GB, free: 4.723 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 1.625e-05/0.2948, allocations: 7.938 kB / 1.246 GB, free: 4.715 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.441e-05/0.2948, allocations: 9.719 kB / 1.246 GB, free: 4.699 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001306/0.2949, allocations: 318.8 kB / 1.246 GB, free: 4.379 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.343e-05/0.295, allocations: 15.92 kB / 1.246 GB, free: 4.363 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.001e-05/0.2951, allocations: 23.98 kB / 1.246 GB, free: 4.34 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001548/0.2953, allocations: 36.81 kB / 1.246 GB, free: 4.301 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.2953, allocations: 3.938 kB / 1.246 GB, free: 4.297 MB / 0.9669 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002196/0.2955, allocations: 69.59 kB / 1.246 GB, free: 4.223 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.18e-05/0.2955, allocations: 12.09 kB / 1.246 GB, free: 4.211 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/0.2955, allocations: 0 / 1.246 GB, free: 4.211 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.074e-05/0.2956, allocations: 0 / 1.246 GB, free: 4.211 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.933e-05/0.2956, allocations: 12 kB / 1.246 GB, free: 4.199 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.2956, allocations: 3.984 kB / 1.246 GB, free: 4.195 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.765e-05/0.2957, allocations: 7.953 kB / 1.246 GB, free: 4.188 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.629e-06/0.2957, allocations: 0 / 1.246 GB, free: 4.188 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (2): * Single equations (assignments): 2 * 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.585e-05/0.2958, allocations: 110.3 kB / 1.246 GB, free: 4.07 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.898e-05/0.2958, allocations: 4 kB / 1.246 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002402/0.2961, allocations: 85.05 kB / 1.246 GB, free: 3.973 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.764e-06/0.2961, allocations: 4 kB / 1.246 GB, free: 3.969 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.2961, allocations: 0 / 1.246 GB, free: 3.969 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.2961, allocations: 0 / 1.246 GB, free: 3.969 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001831/0.2963, allocations: 157.6 kB / 1.246 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.2963, allocations: 0 / 1.246 GB, free: 3.766 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.469e-05/0.2964, allocations: 11.98 kB / 1.246 GB, free: 3.754 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.2964, allocations: 0 / 1.246 GB, free: 3.754 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.931e-06/0.2964, allocations: 4.031 kB / 1.246 GB, free: 3.75 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.083e-06/0.2964, allocations: 0 / 1.246 GB, free: 3.75 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2964, allocations: 0 / 1.246 GB, free: 3.75 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002653/0.2967, allocations: 167.5 kB / 1.247 GB, free: 3.57 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.422e-05/0.2967, allocations: 85.05 kB / 1.247 GB, free: 3.469 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.101e-05/0.2968, allocations: 0 / 1.247 GB, free: 3.469 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.897e-05/0.2968, allocations: 8.281 kB / 1.247 GB, free: 3.461 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.245e-05/0.2969, allocations: 11.92 kB / 1.247 GB, free: 3.449 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.04e-06/0.2969, allocations: 7.938 kB / 1.247 GB, free: 3.441 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.302e-05/0.2969, allocations: 83.28 kB / 1.247 GB, free: 3.359 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2969, allocations: 0 / 1.247 GB, free: 3.359 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002317/0.2972, allocations: 12 kB / 1.247 GB, free: 3.348 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (2): * Single equations (assignments): 2 * 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.0006211/0.2978, allocations: 0.7124 MB / 1.248 GB, free: 2.609 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002086/0.298, allocations: 35.97 kB / 1.248 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.298, allocations: 0 / 1.248 GB, free: 2.574 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 9.514e-05/0.2981, allocations: 28 kB / 1.248 GB, free: 2.547 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002587/0.2984, allocations: 7.938 kB / 1.248 GB, free: 2.539 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003783/0.2988, allocations: 143 kB / 1.248 GB, free: 2.359 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/0.2991, allocations: 0.6768 MB / 1.248 GB, free: 1.656 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.089e-05/0.2991, allocations: 0 / 1.248 GB, free: 1.656 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.321e-05/0.2992, allocations: 15.44 kB / 1.248 GB, free: 1.641 MB / 0.9669 GB Notification: Performance of SimCode: time 2.6e-07/0.2992, allocations: 0 / 1.248 GB, free: 1.641 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02159/0.3208, allocations: 1.609 MB / 1.25 GB, free: 120 kB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.766/8.087, allocations: 8.234 kB / 1.25 GB, free: 116 kB / 0.9669 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_Math_Examples_RegNonZeroPower.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches