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.001137/0.001136, allocations: 108 kB / 15.6 MB, free: 132 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.00109/0.00109, allocations: 198.2 kB / 16.54 MB, free: 6.672 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.319/1.319, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.546/2.546, allocations: 461.9 MB / 0.7347 GB, free: 14.74 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 64.41 kB / 0.8992 GB, free: 36.99 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/0.2886, allocations: 157.4 MB / 1.053 GB, free: 8.254 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.001899/0.2905, allocations: 0.5816 MB / 1.053 GB, free: 7.668 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.000666/0.2912, allocations: 338.7 kB / 1.054 GB, free: 7.336 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.723e-05/0.2912, allocations: 0 / 1.054 GB, free: 7.336 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.17e-05/0.2913, allocations: 4 kB / 1.054 GB, free: 7.332 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.659e-06/0.2913, allocations: 0 / 1.054 GB, free: 7.332 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004786/0.2918, allocations: 107.6 kB / 1.054 GB, free: 7.227 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.235e-05/0.2918, allocations: 3.984 kB / 1.054 GB, free: 7.223 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.506e-05/0.2919, allocations: 3.984 kB / 1.054 GB, free: 7.219 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.225e-05/0.2919, allocations: 4 kB / 1.054 GB, free: 7.215 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.049e-05/0.2919, allocations: 0 / 1.054 GB, free: 7.215 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.057e-06/0.292, allocations: 0 / 1.054 GB, free: 7.215 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004147/0.2924, allocations: 279.7 kB / 1.054 GB, free: 6.941 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.278e-06/0.2924, allocations: 0 / 1.054 GB, free: 6.941 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.234e-05/0.2924, allocations: 0 / 1.054 GB, free: 6.941 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001906/0.2926, allocations: 87.84 kB / 1.054 GB, free: 6.855 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.2926, allocations: 3.938 kB / 1.054 GB, free: 6.852 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.342e-06/0.2926, allocations: 0 / 1.054 GB, free: 6.852 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.618e-06/0.2926, allocations: 0 / 1.054 GB, free: 6.852 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.0003001/0.2929, allocations: 335.5 kB / 1.055 GB, free: 6.473 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.074e-05/0.293, allocations: 12.62 kB / 1.055 GB, free: 6.461 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.327e-05/0.293, allocations: 30.75 kB / 1.055 GB, free: 6.422 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.771e-05/0.2931, allocations: 8.922 kB / 1.055 GB, free: 6.414 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.741e-05/0.2932, allocations: 160.4 kB / 1.055 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.464e-06/0.2932, allocations: 384 / 1.055 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.788e-06/0.2932, allocations: 384 / 1.055 GB, free: 6.219 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.022e-05/0.2933, allocations: 38.25 kB / 1.055 GB, free: 6.176 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.524e-06/0.2933, allocations: 3.938 kB / 1.055 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.542e-06/0.2933, allocations: 0 / 1.055 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.2933, allocations: 0 / 1.055 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.957e-05/0.2934, allocations: 3.938 kB / 1.055 GB, free: 6.168 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001262/0.2935, allocations: 153.7 kB / 1.055 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 3.494e-05/0.2935, allocations: 18.52 kB / 1.055 GB, free: 5.941 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.694e-05/0.2936, allocations: 12.95 kB / 1.055 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004965/0.2941, allocations: 417.5 kB / 1.055 GB, free: 5.426 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.329e-05/0.2941, allocations: 38.56 kB / 1.055 GB, free: 5.379 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.443e-06/0.2941, allocations: 0 / 1.055 GB, free: 5.379 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001447/0.2943, allocations: 41.58 kB / 1.055 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.137e-05/0.2943, allocations: 51.41 kB / 1.056 GB, free: 5.27 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.459e-05/0.2943, allocations: 93.84 kB / 1.056 GB, free: 5.168 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.036e-05/0.2944, allocations: 25.7 kB / 1.056 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.51e-05/0.2944, allocations: 80.14 kB / 1.056 GB, free: 5.055 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.955e-05/0.2944, allocations: 4 kB / 1.056 GB, free: 5.051 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.711e-05/0.2945, allocations: 13.84 kB / 1.056 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.012e-05/0.2946, allocations: 314.8 kB / 1.056 GB, free: 4.715 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.188e-05/0.2946, allocations: 4 kB / 1.056 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.328e-06/0.2946, allocations: 0 / 1.056 GB, free: 4.711 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.588e-05/0.2946, allocations: 12.8 kB / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.2946, allocations: 0 / 1.056 GB, free: 4.695 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.964e-05/0.2947, allocations: 37.62 kB / 1.056 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.2947, allocations: 9.188 kB / 1.056 GB, free: 4.645 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.2947, allocations: 7.938 kB / 1.056 GB, free: 4.637 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.2948, allocations: 4 kB / 1.056 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.844e-05/0.2948, allocations: 0 / 1.056 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/0.2948, allocations: 0 / 1.056 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.014e-05/0.2948, allocations: 288 / 1.056 GB, free: 4.633 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.759e-06/0.2948, allocations: 0 / 1.056 GB, free: 4.633 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 6.778e-05/0.2949, allocations: 113.8 kB / 1.056 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.204e-05/0.2949, allocations: 0 / 1.056 GB, free: 4.512 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.487e-05/0.295, allocations: 48.69 kB / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.295, allocations: 0 / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.295, allocations: 0 / 1.056 GB, free: 4.461 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.295, allocations: 4 kB / 1.056 GB, free: 4.457 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.042e-05/0.2951, allocations: 141.7 kB / 1.056 GB, free: 4.27 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.2951, allocations: 3.938 kB / 1.056 GB, free: 4.266 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.434e-05/0.2952, allocations: 3.984 kB / 1.056 GB, free: 4.262 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.2952, allocations: 0 / 1.056 GB, free: 4.262 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.156e-06/0.2952, allocations: 7.938 kB / 1.056 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.2952, allocations: 0 / 1.056 GB, free: 4.254 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.2952, allocations: 4.031 kB / 1.056 GB, free: 4.25 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.407e-05/0.2953, allocations: 53.14 kB / 1.056 GB, free: 4.18 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.322e-05/0.2953, allocations: 85.09 kB / 1.057 GB, free: 4.078 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.189e-05/0.2953, allocations: 7.875 kB / 1.057 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.203e-06/0.2953, allocations: 0 / 1.057 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.276e-05/0.2954, allocations: 0 / 1.057 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-06/0.2954, allocations: 0 / 1.057 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.164e-05/0.2954, allocations: 79.31 kB / 1.057 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2954, allocations: 0 / 1.057 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002059/0.2956, allocations: 12 kB / 1.057 GB, free: 3.98 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.0003816/0.296, allocations: 0.6124 MB / 1.057 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 6.626e-05/0.2961, allocations: 8.031 kB / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.2961, allocations: 0 / 1.057 GB, free: 3.328 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 8.376e-06/0.2961, allocations: 7.938 kB / 1.057 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001252/0.2962, allocations: 5.875 kB / 1.057 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002935/0.2965, allocations: 122.4 kB / 1.057 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001968/0.2967, allocations: 0.669 MB / 1.058 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.811e-05/0.2968, allocations: 4 kB / 1.058 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.747e-05/0.2968, allocations: 15.55 kB / 1.058 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of SimCode: time 2.31e-07/0.2968, allocations: 0 / 1.058 GB, free: 2.441 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.531/1.828, allocations: 1.164 MB / 1.059 GB, free: 1.367 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/12.55, allocations: 10.69 kB / 1.059 GB, free: 1.359 MB / 0.8106 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