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.008697/0.008697, allocations: 101.8 kB / 15.73 MB, free: 6.035 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.001759/0.001759, allocations: 192.7 kB / 16.67 MB, free: 5.973 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 4.293 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.309/2.309, allocations: 390.3 MB / 0.6648 GB, free: 144 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 60.59 kB / 0.9504 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2802/0.2813, allocations: 140.4 MB / 1.088 GB, free: 1.887 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.002217/0.2836, allocations: 0.6076 MB / 1.088 GB, free: 1.281 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.000846/0.2845, allocations: 355.1 kB / 1.088 GB, free: 0.9336 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.955e-05/0.2845, allocations: 4 kB / 1.088 GB, free: 0.9297 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 2.264e-05/0.2846, allocations: 7.938 kB / 1.088 GB, free: 0.9219 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 2.891e-05/0.2846, allocations: 0 / 1.088 GB, free: 0.9219 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006113/0.2852, allocations: 112.3 kB / 1.089 GB, free: 0.8125 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 7.958e-05/0.2853, allocations: 23.92 kB / 1.089 GB, free: 0.7891 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.72e-05/0.2854, allocations: 3.938 kB / 1.089 GB, free: 0.7852 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 4.78e-05/0.2854, allocations: 15.97 kB / 1.089 GB, free: 0.7695 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 6.969e-05/0.2855, allocations: 11.94 kB / 1.089 GB, free: 0.7578 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.626e-05/0.2855, allocations: 4 kB / 1.089 GB, free: 0.7539 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004436/0.286, allocations: 275.6 kB / 1.089 GB, free: 496 kB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.738e-05/0.286, allocations: 8 kB / 1.089 GB, free: 488 kB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.799e-05/0.286, allocations: 11.91 kB / 1.089 GB, free: 476 kB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001977/0.2863, allocations: 99.78 kB / 1.089 GB, free: 376 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2863, allocations: 4 kB / 1.089 GB, free: 372 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.563e-06/0.2863, allocations: 0 / 1.089 GB, free: 372 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.242e-06/0.2863, allocations: 4 kB / 1.089 GB, free: 368 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.0004232/0.2867, allocations: 354.3 kB / 1.089 GB, free: 15.96 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.2868, allocations: 12.03 kB / 1.089 GB, free: 15.95 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.759e-05/0.2868, allocations: 38.75 kB / 1.089 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.812e-05/0.2869, allocations: 12.83 kB / 1.089 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001054/0.287, allocations: 164.4 kB / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.287, allocations: 384 / 1.09 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.249e-05/0.287, allocations: 12.31 kB / 1.09 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001204/0.2871, allocations: 50.23 kB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.2872, allocations: 3.938 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.927e-06/0.2872, allocations: 3.938 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.2872, allocations: 0 / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.332e-05/0.2873, allocations: 23.98 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001673/0.2874, allocations: 166.1 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001058/0.2875, allocations: 62.48 kB / 1.09 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.066e-05/0.2876, allocations: 28.86 kB / 1.09 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006706/0.2883, allocations: 457.5 kB / 1.09 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.49e-05/0.2883, allocations: 42.56 kB / 1.09 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.032e-06/0.2883, allocations: 0 / 1.09 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.001416/0.2897, allocations: 0.592 MB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.261e-05/0.2898, allocations: 51.41 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.804e-05/0.2899, allocations: 101.9 kB / 1.091 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.2899, allocations: 29.64 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.406e-05/0.29, allocations: 80.14 kB / 1.091 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.736e-05/0.29, allocations: 43.45 kB / 1.091 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.308e-05/0.2901, allocations: 25.72 kB / 1.091 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001068/0.2902, allocations: 318.8 kB / 1.092 GB, free: 13.33 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.426e-05/0.2902, allocations: 16 kB / 1.092 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.982e-05/0.2903, allocations: 26.48 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.615e-05/0.2904, allocations: 60.8 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.2904, allocations: 0 / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001664/0.2906, allocations: 104.5 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.2906, allocations: 5.719 kB / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.2906, allocations: 0 / 1.092 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.2906, allocations: 8 kB / 1.092 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.2907, allocations: 23.92 kB / 1.092 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.2907, allocations: 3.938 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.621e-05/0.2908, allocations: 4 kB / 1.092 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.754e-06/0.2908, allocations: 4 kB / 1.092 GB, free: 13.07 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 8.556e-05/0.2909, allocations: 113.8 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.046e-05/0.2909, allocations: 8.125 kB / 1.092 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000198/0.2911, allocations: 113.5 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.2911, allocations: 4 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/0.2912, allocations: 4 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.2912, allocations: 3.938 kB / 1.092 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004031/0.2916, allocations: 350.5 kB / 1.092 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.2916, allocations: 0 / 1.092 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001125/0.2917, allocations: 23.98 kB / 1.092 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.2917, allocations: 0 / 1.092 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.291e-05/0.2917, allocations: 4 kB / 1.092 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.394e-06/0.2917, allocations: 3.938 kB / 1.092 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2917, allocations: 4 kB / 1.092 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002843/0.292, allocations: 215.4 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.499e-05/0.2921, allocations: 89.03 kB / 1.093 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.516e-05/0.2921, allocations: 7.938 kB / 1.093 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.288e-05/0.2922, allocations: 11.98 kB / 1.093 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.062e-05/0.2922, allocations: 4 kB / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.204e-06/0.2922, allocations: 0 / 1.093 GB, free: 12.02 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.83e-05/0.2923, allocations: 87.27 kB / 1.093 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2923, allocations: 4.062 kB / 1.093 GB, free: 11.93 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002828/0.2926, allocations: 40 kB / 1.093 GB, free: 11.89 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.0006781/0.2933, allocations: 0.7948 MB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.000182/0.2935, allocations: 64.47 kB / 1.094 GB, free: 11.01 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.2935, allocations: 0 / 1.094 GB, free: 11.01 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 4.928e-05/0.2935, allocations: 32.05 kB / 1.094 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002262/0.2938, allocations: 8.219 kB / 1.094 GB, free: 10.97 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001311/0.2951, allocations: 1.393 MB / 1.095 GB, free: 9.504 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002326/0.2953, allocations: 0.6884 MB / 1.096 GB, free: 8.789 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.39e-05/0.2954, allocations: 11.98 kB / 1.096 GB, free: 8.777 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.313e-05/0.2955, allocations: 19.44 kB / 1.096 GB, free: 8.758 MB / 0.8575 GB Notification: Performance of SimCode: time 1.744e-06/0.2955, allocations: 4 kB / 1.096 GB, free: 8.754 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01931/0.3148, allocations: 2.486 MB / 1.098 GB, free: 6.418 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.747/8.062, allocations: 15.56 kB / 1.098 GB, free: 6.402 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