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.001336/0.001336, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001388/0.001388, allocations: 194.4 kB / 16.14 MB, free: 6.645 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.334/1.334, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.652/2.652, allocations: 461.9 MB / 0.7342 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 65.39 kB / 0.8985 GB, free: 37.02 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2756/0.2769, allocations: 157.4 MB / 1.052 GB, free: 8.23 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.001956/0.2789, allocations: 0.6482 MB / 1.053 GB, free: 7.578 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007255/0.2796, allocations: 362.8 kB / 1.053 GB, free: 7.223 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.021e-05/0.2797, allocations: 0 / 1.053 GB, free: 7.223 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.442e-05/0.2797, allocations: 0 / 1.053 GB, free: 7.223 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.438e-06/0.2797, allocations: 0 / 1.053 GB, free: 7.223 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003899/0.2801, allocations: 75.05 kB / 1.053 GB, free: 7.152 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.488e-05/0.2802, allocations: 0 / 1.053 GB, free: 7.152 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.897e-05/0.2802, allocations: 7.984 kB / 1.053 GB, free: 7.145 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.372e-05/0.2802, allocations: 0 / 1.053 GB, free: 7.145 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 2.237e-05/0.2803, allocations: 4 kB / 1.053 GB, free: 7.141 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.608e-06/0.2803, allocations: 0 / 1.053 GB, free: 7.141 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003941/0.2807, allocations: 271.7 kB / 1.054 GB, free: 6.875 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.052e-05/0.2807, allocations: 0 / 1.054 GB, free: 6.875 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.612e-05/0.2807, allocations: 7.984 kB / 1.054 GB, free: 6.867 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001885/0.2809, allocations: 83.8 kB / 1.054 GB, free: 6.785 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.2809, allocations: 4 kB / 1.054 GB, free: 6.781 MB / 0.8106 GB Notification: Performance of FrontEnd: time 9.82e-07/0.2809, allocations: 0 / 1.054 GB, free: 6.781 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.222e-06/0.2809, allocations: 0 / 1.054 GB, free: 6.781 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.0002975/0.2812, allocations: 335.6 kB / 1.054 GB, free: 6.402 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.2813, allocations: 11.97 kB / 1.054 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.135e-05/0.2813, allocations: 30.75 kB / 1.054 GB, free: 6.352 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.713e-05/0.2814, allocations: 4.938 kB / 1.054 GB, free: 6.348 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.074e-05/0.2815, allocations: 168.4 kB / 1.054 GB, free: 6.145 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.844e-06/0.2815, allocations: 384 / 1.054 GB, free: 6.145 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.468e-06/0.2815, allocations: 384 / 1.054 GB, free: 6.145 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.564e-05/0.2816, allocations: 30.2 kB / 1.054 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.047e-06/0.2816, allocations: 11.94 kB / 1.054 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.855e-06/0.2816, allocations: 4 kB / 1.054 GB, free: 6.094 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.2817, allocations: 0 / 1.054 GB, free: 6.094 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.866e-05/0.2817, allocations: 0 / 1.054 GB, free: 6.094 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001359/0.2818, allocations: 145.7 kB / 1.054 GB, free: 5.902 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 6.122e-05/0.2819, allocations: 22.61 kB / 1.054 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.782e-05/0.2819, allocations: 4.859 kB / 1.054 GB, free: 5.863 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005106/0.2824, allocations: 429.6 kB / 1.055 GB, free: 5.352 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.782e-05/0.2825, allocations: 34.5 kB / 1.055 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=1): time 1.142e-06/0.2825, allocations: 0 / 1.055 GB, free: 5.309 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1): time 0.0001485/0.2826, allocations: 37.64 kB / 1.055 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.039e-05/0.2827, allocations: 51.41 kB / 1.055 GB, free: 5.203 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.217e-05/0.2827, allocations: 101.9 kB / 1.055 GB, free: 5.094 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.177e-05/0.2827, allocations: 25.7 kB / 1.055 GB, free: 5.062 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.963e-05/0.2828, allocations: 80.14 kB / 1.055 GB, free: 4.98 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.747e-05/0.2828, allocations: 3.938 kB / 1.055 GB, free: 4.977 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.988e-05/0.2828, allocations: 17.72 kB / 1.055 GB, free: 4.953 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001101/0.283, allocations: 310.8 kB / 1.055 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.137e-05/0.283, allocations: 0 / 1.055 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.612e-06/0.283, allocations: 0 / 1.055 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.933e-05/0.283, allocations: 16.86 kB / 1.055 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.283, allocations: 0 / 1.055 GB, free: 4.621 MB / 0.8106 GB Notification: Performance of matching and sorting (n=1) (initialization): time 7.65e-05/0.2831, allocations: 37.69 kB / 1.055 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.2831, allocations: 4 kB / 1.055 GB, free: 4.574 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.2831, allocations: 3.938 kB / 1.055 GB, free: 4.57 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.2831, allocations: 3.984 kB / 1.055 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.58e-05/0.2832, allocations: 0 / 1.055 GB, free: 4.566 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.468e-06/0.2832, allocations: 4 kB / 1.055 GB, free: 4.562 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.107e-05/0.2832, allocations: 4 kB / 1.055 GB, free: 4.559 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.568e-06/0.2832, allocations: 0 / 1.055 GB, free: 4.559 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.631e-05/0.2833, allocations: 109.9 kB / 1.056 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.979e-05/0.2833, allocations: 0 / 1.056 GB, free: 4.441 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.167e-05/0.2834, allocations: 48.69 kB / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.2834, allocations: 0 / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.2834, allocations: 0 / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.033e-06/0.2834, allocations: 0 / 1.056 GB, free: 4.391 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.184e-05/0.2835, allocations: 146 kB / 1.056 GB, free: 4.199 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.2835, allocations: 32 / 1.056 GB, free: 4.199 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.472e-05/0.2835, allocations: 11.98 kB / 1.056 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.2836, allocations: 0 / 1.056 GB, free: 4.188 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.321e-06/0.2836, allocations: 3.938 kB / 1.056 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.2836, allocations: 0 / 1.056 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.2836, allocations: 0 / 1.056 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.338e-05/0.2837, allocations: 57.08 kB / 1.056 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 2.938e-05/0.2837, allocations: 77.11 kB / 1.056 GB, free: 4.016 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.261e-05/0.2837, allocations: 11.95 kB / 1.056 GB, free: 4.004 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.024e-05/0.2837, allocations: 8 kB / 1.056 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.325e-05/0.2837, allocations: 4 kB / 1.056 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-06/0.2837, allocations: 0 / 1.056 GB, free: 3.992 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.209e-05/0.2838, allocations: 75.28 kB / 1.056 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.274e-06/0.2838, allocations: 0 / 1.056 GB, free: 3.918 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002105/0.284, allocations: 15.88 kB / 1.056 GB, free: 3.902 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.0004207/0.2844, allocations: 0.6163 MB / 1.057 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 6.567e-05/0.2845, allocations: 3.938 kB / 1.057 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.2845, allocations: 4 kB / 1.057 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 6.211e-06/0.2845, allocations: 0 / 1.057 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001275/0.2847, allocations: 0 / 1.057 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002633/0.2849, allocations: 116.5 kB / 1.057 GB, free: 3.09 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002275/0.2852, allocations: 0.6731 MB / 1.057 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 1.653e-05/0.2852, allocations: 0 / 1.057 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.585e-05/0.2852, allocations: 7.438 kB / 1.057 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of SimCode: time 3.4e-07/0.2852, allocations: 0 / 1.057 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01037/0.2956, allocations: 1.071 MB / 1.058 GB, free: 1.426 MB / 0.8106 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001771/0.2958, allocations: 220.2 kB / 1.059 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.69/1.986, allocations: 0 / 1.059 GB, free: 1.168 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