Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.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.RegNonZeroPowerDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck",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.001406/0.001406, 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.001269/0.001269, allocations: 190.9 kB / 16.13 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.308/1.308, allocations: 222.9 MB / 239.8 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.574/2.574, allocations: 461.9 MB / 0.7342 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 72.72 kB / 0.8985 GB, free: 36.97 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.2891, allocations: 157.4 MB / 1.052 GB, free: 8.18 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck): time 0.001838/0.291, allocations: 0.6679 MB / 1.053 GB, free: 7.508 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0007075/0.2917, allocations: 378.9 kB / 1.053 GB, free: 7.137 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.051e-05/0.2917, allocations: 4 kB / 1.053 GB, free: 7.133 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.533e-05/0.2918, allocations: 0 / 1.053 GB, free: 7.133 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.241e-05/0.2918, allocations: 4 kB / 1.053 GB, free: 7.129 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004047/0.2922, allocations: 79.72 kB / 1.053 GB, free: 7.051 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.11e-05/0.2923, allocations: 8 kB / 1.053 GB, free: 7.043 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.9e-05/0.2923, allocations: 0 / 1.053 GB, free: 7.043 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.462e-05/0.2923, allocations: 4 kB / 1.053 GB, free: 7.039 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.535e-05/0.2924, allocations: 11.92 kB / 1.053 GB, free: 7.027 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.137e-05/0.2924, allocations: 0 / 1.053 GB, free: 7.027 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003565/0.2928, allocations: 271.6 kB / 1.054 GB, free: 6.762 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.329e-05/0.2928, allocations: 8 kB / 1.054 GB, free: 6.754 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 1.825e-05/0.2928, allocations: 0 / 1.054 GB, free: 6.754 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001912/0.293, allocations: 91.78 kB / 1.054 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.293, allocations: 0 / 1.054 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.165e-06/0.293, allocations: 4 kB / 1.054 GB, free: 6.66 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.293, allocations: 0 / 1.054 GB, free: 6.66 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.000331/0.2934, allocations: 335.6 kB / 1.054 GB, free: 6.281 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/0.2934, allocations: 15.97 kB / 1.054 GB, free: 6.266 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.022e-05/0.2934, allocations: 30.75 kB / 1.054 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.949e-05/0.2935, allocations: 4.938 kB / 1.054 GB, free: 6.223 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001104/0.2936, allocations: 172.7 kB / 1.054 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.2936, allocations: 384 / 1.054 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.814e-05/0.2937, allocations: 384 / 1.054 GB, free: 6.016 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.194e-05/0.2938, allocations: 34.2 kB / 1.054 GB, free: 5.977 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.2938, allocations: 3.938 kB / 1.054 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.706e-06/0.2938, allocations: 0 / 1.054 GB, free: 5.973 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.2938, allocations: 4 kB / 1.054 GB, free: 5.969 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.492e-05/0.2938, allocations: 3.984 kB / 1.054 GB, free: 5.965 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001452/0.294, allocations: 161.6 kB / 1.054 GB, free: 5.758 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 5.397e-05/0.294, allocations: 26.59 kB / 1.054 GB, free: 5.723 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.115e-05/0.2941, allocations: 12.86 kB / 1.054 GB, free: 5.707 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007094/0.2948, allocations: 457.4 kB / 1.055 GB, free: 5.168 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.433e-05/0.2948, allocations: 38.55 kB / 1.055 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.272e-06/0.2948, allocations: 0 / 1.055 GB, free: 5.121 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.000497/0.2953, allocations: 254.2 kB / 1.055 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.194e-05/0.2954, allocations: 55.62 kB / 1.055 GB, free: 4.754 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.391e-05/0.2954, allocations: 93.86 kB / 1.055 GB, free: 4.652 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.46e-05/0.2954, allocations: 29.7 kB / 1.055 GB, free: 4.617 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.969e-05/0.2955, allocations: 80.14 kB / 1.055 GB, free: 4.535 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.296e-05/0.2955, allocations: 11.81 kB / 1.055 GB, free: 4.523 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.368e-05/0.2955, allocations: 17.7 kB / 1.055 GB, free: 4.5 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.925e-05/0.2956, allocations: 314.8 kB / 1.056 GB, free: 4.184 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.93e-05/0.2957, allocations: 8 kB / 1.056 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.911e-05/0.2957, allocations: 25.83 kB / 1.056 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.654e-05/0.2958, allocations: 25.66 kB / 1.056 GB, free: 4.113 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.72e-07/0.2958, allocations: 3.938 kB / 1.056 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.832e-05/0.2959, allocations: 45.7 kB / 1.056 GB, free: 4.059 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.2959, allocations: 15.92 kB / 1.056 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.2959, allocations: 0 / 1.056 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.041e-05/0.2959, allocations: 8 kB / 1.056 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.818e-05/0.296, allocations: 4 kB / 1.056 GB, free: 4.031 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.296, allocations: 4 kB / 1.056 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.854e-05/0.296, allocations: 0 / 1.056 GB, free: 4.027 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.144e-06/0.296, allocations: 0 / 1.056 GB, free: 4.027 MB / 0.8106 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (4): * Single equations (assignments): 4 * 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.511e-05/0.2961, allocations: 113.8 kB / 1.056 GB, free: 3.906 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.575e-05/0.2961, allocations: 4.078 kB / 1.056 GB, free: 3.902 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001242/0.2963, allocations: 61.16 kB / 1.056 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.406e-06/0.2963, allocations: 0 / 1.056 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.2963, allocations: 3.938 kB / 1.056 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.2963, allocations: 4 kB / 1.056 GB, free: 3.828 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.648e-05/0.2964, allocations: 153.7 kB / 1.056 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.2964, allocations: 0 / 1.056 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.342e-05/0.2965, allocations: 4 kB / 1.056 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.797e-06/0.2965, allocations: 3.938 kB / 1.056 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.114e-06/0.2965, allocations: 0 / 1.056 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.2965, allocations: 0 / 1.056 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.2965, allocations: 0 / 1.056 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001448/0.2966, allocations: 89.05 kB / 1.056 GB, free: 3.516 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.252e-05/0.2967, allocations: 84.95 kB / 1.056 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.26e-05/0.2967, allocations: 0 / 1.056 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.012e-05/0.2967, allocations: 0 / 1.056 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.988e-05/0.2968, allocations: 8.031 kB / 1.056 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.539e-06/0.2968, allocations: 0 / 1.056 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.977e-05/0.2968, allocations: 87.27 kB / 1.056 GB, free: 3.32 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.6e-07/0.2968, allocations: 4.094 kB / 1.056 GB, free: 3.316 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.000221/0.2971, allocations: 20 kB / 1.057 GB, free: 3.297 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (y) * 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 (3): * Single equations (assignments): 3 * 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.0004722/0.2975, allocations: 0.6398 MB / 1.057 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 8.485e-05/0.2976, allocations: 23.92 kB / 1.057 GB, free: 2.602 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.2976, allocations: 4.188 kB / 1.057 GB, free: 2.598 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.598e-05/0.2977, allocations: 4 kB / 1.057 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000148/0.2978, allocations: 13.31 kB / 1.057 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009035/0.2987, allocations: 1.129 MB / 1.058 GB, free: 1.363 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000251/0.299, allocations: 0.677 MB / 1.059 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.698e-05/0.299, allocations: 11.92 kB / 1.059 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.099e-05/0.2991, allocations: 15.44 kB / 1.059 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of SimCode: time 3.51e-07/0.2991, allocations: 0 / 1.059 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01122/0.3103, allocations: 1.607 MB / 1.061 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002378/0.3106, allocations: 232 kB / 1.061 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.677/1.988, allocations: 2.984 kB / 1.061 GB, free: 14.92 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=1.000000 File[1]=-1.000000 " Variables in the reference:time,x,y,der(x),der(y) Variables in the result:delta,der(x),der(y),n,time,x,y