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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.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.001181/0.001182, allocations: 94.28 kB / 15.37 MB, free: 0.7266 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.00151/0.00151, allocations: 179 kB / 16.27 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.39/1.39, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.638/2.638, allocations: 462.7 MB / 0.7364 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003255/0.0003255, allocations: 11.28 kB / 0.9029 GB, free: 36.38 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2977/0.2981, allocations: 159.6 MB / 1.059 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.0006448/0.2988, allocations: 330.8 kB / 1.059 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.000639/0.2994, allocations: 354.9 kB / 1.059 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.047e-06/0.2994, allocations: 0 / 1.059 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.078e-05/0.2994, allocations: 0 / 1.059 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.162e-06/0.2995, allocations: 0 / 1.059 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003298/0.2998, allocations: 75.78 kB / 1.06 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.015e-05/0.2998, allocations: 0 / 1.06 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.598e-05/0.2999, allocations: 0 / 1.06 GB, free: 4.098 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.521e-05/0.2999, allocations: 4 kB / 1.06 GB, free: 4.094 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.081e-05/0.2999, allocations: 4 kB / 1.06 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 8.716e-06/0.2999, allocations: 0 / 1.06 GB, free: 4.09 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003886/0.3003, allocations: 275.6 kB / 1.06 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.085e-05/0.3003, allocations: 4 kB / 1.06 GB, free: 3.816 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.555e-05/0.3004, allocations: 29.69 kB / 1.06 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001489/0.3005, allocations: 83.86 kB / 1.06 GB, free: 3.699 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.3005, allocations: 3.938 kB / 1.06 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.363e-06/0.3006, allocations: 0 / 1.06 GB, free: 3.695 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.576e-06/0.3006, allocations: 0 / 1.06 GB, free: 3.695 MB / 0.8106 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.0002455/0.3008, allocations: 331.6 kB / 1.06 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.044e-05/0.3009, allocations: 15.97 kB / 1.06 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.087e-05/0.3009, allocations: 30.75 kB / 1.06 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.771e-05/0.3009, allocations: 0.9375 kB / 1.06 GB, free: 3.266 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.963e-05/0.301, allocations: 168.4 kB / 1.06 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.105e-06/0.301, allocations: 384 / 1.06 GB, free: 3.062 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.42e-06/0.301, allocations: 4.375 kB / 1.06 GB, free: 3.059 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.81e-05/0.3011, allocations: 34.19 kB / 1.06 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.673e-06/0.3011, allocations: 3.938 kB / 1.06 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.432e-06/0.3012, allocations: 0 / 1.06 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.3012, allocations: 0 / 1.06 GB, free: 3.016 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.643e-05/0.3012, allocations: 8 kB / 1.06 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001148/0.3013, allocations: 141.7 kB / 1.061 GB, free: 2.82 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 3.469e-05/0.3013, allocations: 22.61 kB / 1.061 GB, free: 2.789 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.419e-05/0.3014, allocations: 8.844 kB / 1.061 GB, free: 2.777 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004364/0.3018, allocations: 425.6 kB / 1.061 GB, free: 2.27 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.081e-05/0.3018, allocations: 46.44 kB / 1.061 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.3018, allocations: 0 / 1.061 GB, free: 2.215 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001209/0.302, allocations: 33.64 kB / 1.061 GB, free: 2.176 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.62e-05/0.302, allocations: 51.41 kB / 1.061 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.192e-05/0.302, allocations: 93.86 kB / 1.061 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 9.849e-06/0.3021, allocations: 25.7 kB / 1.061 GB, free: 1.98 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.277e-05/0.3021, allocations: 84.27 kB / 1.061 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.236e-05/0.3021, allocations: 0 / 1.061 GB, free: 1.895 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.89e-05/0.3021, allocations: 9.719 kB / 1.061 GB, free: 1.879 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.554e-05/0.3022, allocations: 318.8 kB / 1.062 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.294e-06/0.3022, allocations: 0 / 1.062 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.135e-05/0.3023, allocations: 7.938 kB / 1.062 GB, free: 1.551 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.204e-05/0.3023, allocations: 8.797 kB / 1.062 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3023, allocations: 0 / 1.062 GB, free: 1.539 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.741e-05/0.3024, allocations: 37.77 kB / 1.062 GB, free: 1.496 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.09e-05/0.3024, allocations: 4 kB / 1.062 GB, free: 1.492 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.3024, allocations: 3.938 kB / 1.062 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.896e-06/0.3024, allocations: 0 / 1.062 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.352e-05/0.3024, allocations: 4 kB / 1.062 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.3024, allocations: 3.984 kB / 1.062 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.866e-06/0.3025, allocations: 0 / 1.062 GB, free: 1.48 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.157e-06/0.3025, allocations: 0 / 1.062 GB, free: 1.48 MB / 0.8106 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.613e-05/0.3025, allocations: 113.8 kB / 1.062 GB, free: 1.359 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.85e-05/0.3026, allocations: 4.031 kB / 1.062 GB, free: 1.355 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.465e-05/0.3026, allocations: 40.7 kB / 1.062 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.3026, allocations: 0 / 1.062 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-06/0.3026, allocations: 0 / 1.062 GB, free: 1.312 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.3027, allocations: 3.984 kB / 1.062 GB, free: 1.309 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.161e-05/0.3027, allocations: 146 kB / 1.062 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.3027, allocations: 0 / 1.062 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.072e-05/0.3027, allocations: 0 / 1.062 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-06/0.3028, allocations: 0 / 1.062 GB, free: 1.117 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.881e-06/0.3028, allocations: 7.969 kB / 1.062 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.3028, allocations: 4 kB / 1.062 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.3028, allocations: 0 / 1.062 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.158e-05/0.3029, allocations: 61.06 kB / 1.062 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.552e-05/0.3029, allocations: 77.11 kB / 1.062 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.143e-05/0.3029, allocations: 7.938 kB / 1.062 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.913e-06/0.3029, allocations: 0 / 1.062 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.119e-05/0.3029, allocations: 32 / 1.062 GB, free: 0.9258 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.823e-06/0.3029, allocations: 4 kB / 1.062 GB, free: 0.9219 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.17e-05/0.303, allocations: 75.28 kB / 1.062 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.4e-07/0.303, allocations: 3.938 kB / 1.062 GB, free: 0.8438 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000195/0.3032, allocations: 23.92 kB / 1.062 GB, free: 0.8203 MB / 0.8106 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.0003426/0.3035, allocations: 0.6086 MB / 1.063 GB, free: 184 kB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 5.276e-05/0.3036, allocations: 7.938 kB / 1.063 GB, free: 176 kB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.3036, allocations: 0 / 1.063 GB, free: 176 kB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 5.811e-06/0.3036, allocations: 3.938 kB / 1.063 GB, free: 172 kB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001227/0.3037, allocations: 7.25 kB / 1.063 GB, free: 168 kB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002322/0.304, allocations: 112.3 kB / 1.063 GB, free: 12 kB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001931/0.3042, allocations: 0.6692 MB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.736e-05/0.3042, allocations: 4.125 kB / 1.064 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.277e-05/0.3042, allocations: 7.438 kB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.3042, allocations: 0 / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009651/0.3139, allocations: 1.005 MB / 1.065 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001782/0.3141, allocations: 220.9 kB / 1.065 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.701/2.015, allocations: 0 / 1.065 GB, free: 14.18 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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