Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.RegNonZeroPower,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_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.001418/0.001418, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001603/0.001603, allocations: 195.6 kB / 16.53 MB, free: 6.664 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.36/1.36, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.741/2.741, allocations: 469.4 MB / 0.742 GB, free: 7.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001323/0.001323, allocations: 66.16 kB / 0.9083 GB, free: 34.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2715/0.2729, allocations: 159.1 MB / 1.064 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.001698/0.2746, allocations: 0.5856 MB / 1.064 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006056/0.2752, allocations: 326.8 kB / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.295e-05/0.2753, allocations: 0 / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.122e-05/0.2753, allocations: 0 / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.268e-06/0.2753, allocations: 0 / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004136/0.2757, allocations: 103.7 kB / 1.065 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 3.105e-05/0.2758, allocations: 0 / 1.065 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.586e-05/0.2758, allocations: 8 kB / 1.065 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.235e-05/0.2758, allocations: 0 / 1.065 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 1.915e-05/0.2759, allocations: 7.938 kB / 1.065 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 8.817e-06/0.2759, allocations: 0 / 1.065 GB, free: 13.42 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003616/0.2762, allocations: 271.7 kB / 1.065 GB, free: 13.15 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.988e-06/0.2763, allocations: 3.984 kB / 1.065 GB, free: 13.15 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.473e-05/0.2763, allocations: 0 / 1.065 GB, free: 13.15 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001621/0.2764, allocations: 87.8 kB / 1.065 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.597e-06/0.2765, allocations: 0 / 1.065 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.162e-06/0.2765, allocations: 0 / 1.065 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.2765, allocations: 0 / 1.065 GB, free: 13.06 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002567/0.2767, allocations: 339.6 kB / 1.065 GB, free: 12.68 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.2768, allocations: 16.02 kB / 1.065 GB, free: 12.66 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.928e-05/0.2768, allocations: 34.69 kB / 1.065 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.104e-05/0.2769, allocations: 0.9375 kB / 1.065 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.917e-05/0.2769, allocations: 160.4 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.065e-06/0.2769, allocations: 384 / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.153e-06/0.277, allocations: 4.375 kB / 1.066 GB, free: 12.42 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 6.946e-05/0.277, allocations: 26.27 kB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.277, allocations: 3.938 kB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.691e-06/0.2771, allocations: 4 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.417e-06/0.2771, allocations: 0 / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.887e-05/0.2771, allocations: 4 kB / 1.066 GB, free: 12.38 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001104/0.2772, allocations: 149.7 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 3.258e-05/0.2772, allocations: 18.52 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.448e-05/0.2773, allocations: 8.953 kB / 1.066 GB, free: 12.14 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004461/0.2777, allocations: 429.5 kB / 1.066 GB, free: 11.63 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.042e-05/0.2777, allocations: 30.56 kB / 1.066 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.173e-06/0.2777, allocations: 0 / 1.066 GB, free: 11.59 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001274/0.2779, allocations: 37.62 kB / 1.066 GB, free: 11.55 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.215e-05/0.2779, allocations: 59.34 kB / 1.066 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.876e-05/0.278, allocations: 89.98 kB / 1.066 GB, free: 11.38 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 9.278e-06/0.278, allocations: 33.7 kB / 1.066 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.014e-05/0.278, allocations: 80.14 kB / 1.066 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.011e-05/0.278, allocations: 0 / 1.066 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.642e-05/0.2781, allocations: 9.719 kB / 1.066 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 7.711e-05/0.2781, allocations: 314.8 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.827e-06/0.2781, allocations: 4 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.701e-06/0.2782, allocations: 0 / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.625e-05/0.2782, allocations: 16.92 kB / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.2782, allocations: 0 / 1.067 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.471e-05/0.2783, allocations: 33.69 kB / 1.067 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.2783, allocations: 4 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.01e-06/0.2783, allocations: 11.88 kB / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/0.2783, allocations: 3.938 kB / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.346e-05/0.2784, allocations: 0 / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.2784, allocations: 0 / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.317e-06/0.2784, allocations: 288 / 1.067 GB, free: 10.85 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.432e-06/0.2784, allocations: 4 kB / 1.067 GB, free: 10.84 MB / 0.8262 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 (1): * Single equations (assignments): 1 * 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 5.167e-05/0.2784, allocations: 109.9 kB / 1.067 GB, free: 10.73 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.245e-05/0.2785, allocations: 3.984 kB / 1.067 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.636e-05/0.2785, allocations: 52.67 kB / 1.067 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.2786, allocations: 0 / 1.067 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.579e-06/0.2786, allocations: 8 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.683e-06/0.2786, allocations: 0 / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.521e-05/0.2787, allocations: 149.6 kB / 1.067 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.2787, allocations: 0 / 1.067 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.189e-05/0.2787, allocations: 4.031 kB / 1.067 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.2787, allocations: 4 kB / 1.067 GB, free: 10.46 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.041e-06/0.2787, allocations: 7.875 kB / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.2787, allocations: 0 / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.2787, allocations: 0 / 1.067 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.023e-05/0.2788, allocations: 57.14 kB / 1.067 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 2.754e-05/0.2788, allocations: 81.09 kB / 1.067 GB, free: 10.28 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.007e-05/0.2788, allocations: 3.969 kB / 1.067 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.693e-06/0.2788, allocations: 4 kB / 1.067 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.867e-06/0.2789, allocations: 0 / 1.067 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.943e-06/0.2789, allocations: 0 / 1.067 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 1.999e-05/0.2789, allocations: 75.28 kB / 1.067 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2789, allocations: 4 kB / 1.067 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001888/0.2791, allocations: 8 kB / 1.067 GB, free: 10.18 MB / 0.8262 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 (1): * Single equations (assignments): 1 * 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.000344/0.2794, allocations: 0.6223 MB / 1.068 GB, free: 9.531 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 5.716e-05/0.2795, allocations: 7.984 kB / 1.068 GB, free: 9.523 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2795, allocations: 0 / 1.068 GB, free: 9.523 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 9.378e-06/0.2795, allocations: 8 kB / 1.068 GB, free: 9.516 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001223/0.2797, allocations: 1.875 kB / 1.068 GB, free: 9.516 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002588/0.2799, allocations: 116 kB / 1.068 GB, free: 9.363 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000166/0.2801, allocations: 0.6768 MB / 1.069 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.761e-05/0.2801, allocations: 4 kB / 1.069 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.299e-05/0.2801, allocations: 7.438 kB / 1.069 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of SimCode: time 3.2e-07/0.2801, allocations: 0 / 1.069 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01505/0.2952, allocations: 1.171 MB / 1.07 GB, free: 7.57 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.124/7.419, allocations: 14.66 kB / 1.07 GB, free: 7.559 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,y Variables in the result:time,y