Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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.RegNonZeroPowerDerivative_2_Check,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check,fileNamePrefix="Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check",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.007209/0.007209, allocations: 102.1 kB / 15.73 MB, free: 6.012 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.001301/0.001301, allocations: 193.7 kB / 16.67 MB, free: 5.949 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.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.383/2.383, allocations: 390.3 MB / 0.6648 GB, free: 232 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 60.62 kB / 0.9504 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.281/0.2824, allocations: 140.4 MB / 1.088 GB, free: 1.922 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.001799/0.2843, allocations: 0.618 MB / 1.088 GB, free: 1.309 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0006906/0.285, allocations: 355.1 kB / 1.088 GB, free: 0.9609 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.862e-05/0.285, allocations: 4 kB / 1.088 GB, free: 0.957 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.896e-05/0.285, allocations: 3.938 kB / 1.088 GB, free: 0.9531 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 3.055e-05/0.2851, allocations: 0 / 1.088 GB, free: 0.9531 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004929/0.2856, allocations: 119.6 kB / 1.089 GB, free: 0.8359 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 6.638e-05/0.2857, allocations: 27.91 kB / 1.089 GB, free: 0.8086 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.431e-05/0.2857, allocations: 4 kB / 1.089 GB, free: 0.8047 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 3.727e-05/0.2858, allocations: 7.984 kB / 1.089 GB, free: 0.7969 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.889e-05/0.2858, allocations: 11.94 kB / 1.089 GB, free: 0.7852 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.217e-05/0.2858, allocations: 0 / 1.089 GB, free: 0.7852 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003555/0.2862, allocations: 275.6 kB / 1.089 GB, free: 0.5156 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.572e-05/0.2862, allocations: 7.984 kB / 1.089 GB, free: 0.5078 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.735e-05/0.2863, allocations: 15.92 kB / 1.089 GB, free: 0.4922 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001681/0.2864, allocations: 99.77 kB / 1.089 GB, free: 404 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.2864, allocations: 4 kB / 1.089 GB, free: 400 kB / 0.8419 GB Notification: Performance of FrontEnd: time 2.144e-06/0.2864, allocations: 8 kB / 1.089 GB, free: 392 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.029e-06/0.2865, allocations: 3.938 kB / 1.089 GB, free: 388 kB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004064/0.2869, allocations: 350.5 kB / 1.089 GB, free: 15.98 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.2869, allocations: 12.03 kB / 1.089 GB, free: 15.97 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.24e-05/0.287, allocations: 34.75 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.608e-05/0.287, allocations: 8.844 kB / 1.089 GB, free: 15.92 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.838e-05/0.2871, allocations: 164.3 kB / 1.09 GB, free: 15.72 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.183e-05/0.2871, allocations: 8.344 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.399e-05/0.2872, allocations: 8.375 kB / 1.09 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001133/0.2873, allocations: 50.25 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.2873, allocations: 3.938 kB / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.2873, allocations: 0 / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.2873, allocations: 0 / 1.09 GB, free: 15.65 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.295e-05/0.2874, allocations: 19.98 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001647/0.2876, allocations: 166.1 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001085/0.2877, allocations: 66.42 kB / 1.09 GB, free: 15.34 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.07e-05/0.2877, allocations: 32.86 kB / 1.09 GB, free: 15.31 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006971/0.2884, allocations: 457.5 kB / 1.09 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.085e-05/0.2885, allocations: 38.56 kB / 1.09 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.2885, allocations: 0 / 1.09 GB, free: 14.72 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.001308/0.2898, allocations: 0.5879 MB / 1.091 GB, free: 14.05 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.056e-05/0.2898, allocations: 51.41 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.932e-05/0.2899, allocations: 105.8 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.546e-05/0.2899, allocations: 25.7 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.721e-05/0.29, allocations: 84.14 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.567e-05/0.29, allocations: 39.45 kB / 1.091 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.181e-05/0.2901, allocations: 21.81 kB / 1.091 GB, free: 13.69 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001025/0.2902, allocations: 322.8 kB / 1.092 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.101e-05/0.2902, allocations: 16 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.032e-05/0.2903, allocations: 29.92 kB / 1.092 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.535e-05/0.2904, allocations: 60.86 kB / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.72e-07/0.2904, allocations: 0 / 1.092 GB, free: 13.26 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001638/0.2906, allocations: 103 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.2906, allocations: 4 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.2906, allocations: 0 / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/0.2906, allocations: 7.938 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001068/0.2907, allocations: 23.92 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/0.2907, allocations: 0 / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.827e-05/0.2908, allocations: 8 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.677e-06/0.2908, allocations: 0 / 1.092 GB, free: 13.11 MB / 0.8575 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 (13): * Single equations (assignments): 13 * 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 9.951e-05/0.2909, allocations: 117.8 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.014e-05/0.2909, allocations: 7.938 kB / 1.092 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001895/0.2911, allocations: 113.4 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.629e-06/0.2911, allocations: 4 kB / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.2912, allocations: 192 / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.2912, allocations: 0 / 1.092 GB, free: 12.85 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003659/0.2915, allocations: 354.5 kB / 1.092 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.2915, allocations: 0 / 1.092 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001072/0.2917, allocations: 27.92 kB / 1.092 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.2917, allocations: 4 kB / 1.092 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.079e-05/0.2917, allocations: 4 kB / 1.092 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.2917, allocations: 4 kB / 1.092 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.2917, allocations: 0 / 1.092 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002556/0.292, allocations: 219.7 kB / 1.093 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.268e-05/0.292, allocations: 89.03 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.429e-05/0.292, allocations: 0 / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.185e-05/0.2921, allocations: 8 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.881e-05/0.2922, allocations: 12.05 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.065e-06/0.2922, allocations: 4 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.506e-05/0.2922, allocations: 87.2 kB / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2e-07/0.2922, allocations: 0 / 1.093 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002755/0.2925, allocations: 40 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (y_comp,der_y_comp) * 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 (11): * Single equations (assignments): 11 * 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.0006154/0.2931, allocations: 0.7987 MB / 1.094 GB, free: 11.1 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001454/0.2933, allocations: 63.92 kB / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2933, allocations: 0 / 1.094 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 4.786e-05/0.2933, allocations: 35.92 kB / 1.094 GB, free: 11 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002147/0.2936, allocations: 5.25 kB / 1.094 GB, free: 11 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001233/0.2948, allocations: 1.389 MB / 1.095 GB, free: 9.535 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002254/0.295, allocations: 0.6884 MB / 1.096 GB, free: 8.82 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.001e-05/0.2951, allocations: 16.05 kB / 1.096 GB, free: 8.805 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.922e-05/0.2951, allocations: 19.44 kB / 1.096 GB, free: 8.785 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.2952, allocations: 0 / 1.096 GB, free: 8.785 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01947/0.3146, allocations: 2.494 MB / 1.098 GB, free: 6.441 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.591/7.905, allocations: 17.86 kB / 1.098 GB, free: 6.426 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.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(der(x)),der(der_y),der(der_y_comp),der(x),der(y),der(y_comp),der_err,der_y,der_y_comp,err,n,time,x,y,y_comp