Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.001435/0.001435, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001747/0.001747, allocations: 192.6 kB / 16.14 MB, free: 6.711 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.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.517/2.517, allocations: 437 MB / 0.7099 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001494, allocations: 67.89 kB / 0.8687 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5993/0.6008, allocations: 151.6 MB / 1.017 GB, free: 2.781 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.001652/0.6025, allocations: 0.6879 MB / 1.017 GB, free: 2.09 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0006459/0.6032, allocations: 378.8 kB / 1.018 GB, free: 1.719 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.383e-05/0.6032, allocations: 0 / 1.018 GB, free: 1.719 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.288e-05/0.6032, allocations: 0 / 1.018 GB, free: 1.719 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.259e-05/0.6033, allocations: 0 / 1.018 GB, free: 1.719 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003174/0.6036, allocations: 83.84 kB / 1.018 GB, free: 1.637 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.208e-05/0.6036, allocations: 27.8 kB / 1.018 GB, free: 1.609 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.288e-05/0.6037, allocations: 4 kB / 1.018 GB, free: 1.605 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.911e-05/0.6037, allocations: 7.984 kB / 1.018 GB, free: 1.598 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.404e-05/0.6038, allocations: 15.92 kB / 1.018 GB, free: 1.582 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.346e-05/0.6038, allocations: 4 kB / 1.018 GB, free: 1.578 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003287/0.6041, allocations: 275.6 kB / 1.018 GB, free: 1.309 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.257e-05/0.6041, allocations: 4 kB / 1.018 GB, free: 1.305 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.416e-05/0.6042, allocations: 19.86 kB / 1.018 GB, free: 1.285 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.000153/0.6043, allocations: 95.83 kB / 1.018 GB, free: 1.191 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.6043, allocations: 3.938 kB / 1.018 GB, free: 1.188 MB / 0.7637 GB Notification: Performance of FrontEnd: time 6.81e-07/0.6043, allocations: 4 kB / 1.018 GB, free: 1.184 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 2.986e-06/0.6043, allocations: 0 / 1.018 GB, free: 1.184 MB / 0.7637 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.0003534/0.6047, allocations: 361.8 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/0.6047, allocations: 12.03 kB / 1.019 GB, free: 0.7695 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.866e-05/0.6048, allocations: 34.75 kB / 1.019 GB, free: 0.7266 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.643e-05/0.6048, allocations: 8.844 kB / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.636e-05/0.6049, allocations: 160.4 kB / 1.019 GB, free: 0.5234 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.034e-05/0.6049, allocations: 4.375 kB / 1.019 GB, free: 0.5195 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.776e-05/0.605, allocations: 4.375 kB / 1.019 GB, free: 0.5156 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.987e-05/0.6051, allocations: 58.17 kB / 1.019 GB, free: 464 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.6051, allocations: 7.922 kB / 1.019 GB, free: 456 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.126e-06/0.6051, allocations: 0 / 1.019 GB, free: 456 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/0.6051, allocations: 4 kB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.36e-05/0.6051, allocations: 15.98 kB / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001416/0.6053, allocations: 165.6 kB / 1.019 GB, free: 220 kB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 9.202e-05/0.6054, allocations: 66.56 kB / 1.019 GB, free: 144 kB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.862e-05/0.6054, allocations: 32.84 kB / 1.019 GB, free: 108 kB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006496/0.6061, allocations: 457.5 kB / 1.02 GB, free: 15.57 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.294e-05/0.6061, allocations: 34.56 kB / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.032e-06/0.6061, allocations: 0 / 1.02 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.001143/0.6073, allocations: 0.5952 MB / 1.02 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.87e-05/0.6073, allocations: 51.41 kB / 1.02 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.277e-05/0.6074, allocations: 97.86 kB / 1.02 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.716e-05/0.6074, allocations: 37.69 kB / 1.02 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.574e-05/0.6074, allocations: 80.14 kB / 1.02 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.261e-05/0.6075, allocations: 35.41 kB / 1.021 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.976e-05/0.6075, allocations: 29.7 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.853e-05/0.6076, allocations: 314.8 kB / 1.021 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.895e-05/0.6077, allocations: 19.98 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.683e-05/0.6077, allocations: 27.98 kB / 1.021 GB, free: 14.11 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.107e-05/0.6078, allocations: 56.8 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.92e-07/0.6078, allocations: 0 / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001567/0.608, allocations: 109.3 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.608, allocations: 7.938 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-06/0.608, allocations: 4 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.526e-06/0.608, allocations: 0 / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.38e-05/0.6081, allocations: 20 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.214e-06/0.6081, allocations: 3.984 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.35e-05/0.6081, allocations: 11.94 kB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.202e-06/0.6081, allocations: 0 / 1.021 GB, free: 13.89 MB / 0.7794 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 6.507e-05/0.6082, allocations: 117.8 kB / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.705e-05/0.6082, allocations: 7.938 kB / 1.021 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001724/0.6084, allocations: 102 kB / 1.021 GB, free: 13.66 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.6084, allocations: 7.984 kB / 1.021 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.6084, allocations: 0 / 1.021 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.6085, allocations: 0 / 1.021 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003326/0.6088, allocations: 358.4 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.6088, allocations: 0 / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.92e-05/0.6089, allocations: 20 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.833e-06/0.6089, allocations: 192 / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.222e-05/0.6089, allocations: 11.98 kB / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.6089, allocations: 0 / 1.022 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.6089, allocations: 7.922 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002235/0.6092, allocations: 219.6 kB / 1.022 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.336e-05/0.6092, allocations: 89.03 kB / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.512e-05/0.6092, allocations: 4 kB / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.004e-05/0.6093, allocations: 8.062 kB / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.848e-05/0.6094, allocations: 7.984 kB / 1.022 GB, free: 12.85 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.714e-06/0.6094, allocations: 4 kB / 1.022 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.263e-05/0.6094, allocations: 79.28 kB / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6094, allocations: 0 / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002576/0.6097, allocations: 43.98 kB / 1.022 GB, free: 12.72 MB / 0.7794 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.000557/0.6102, allocations: 0.7983 MB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001243/0.6104, allocations: 59.92 kB / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.6104, allocations: 0 / 1.023 GB, free: 11.84 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.381e-05/0.6104, allocations: 31.98 kB / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002078/0.6106, allocations: 11 kB / 1.023 GB, free: 11.8 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001106/0.6118, allocations: 1.413 MB / 1.024 GB, free: 10.31 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002074/0.612, allocations: 0.6888 MB / 1.025 GB, free: 9.594 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.17e-05/0.612, allocations: 19.86 kB / 1.025 GB, free: 9.574 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.355e-05/0.6121, allocations: 15.44 kB / 1.025 GB, free: 9.559 MB / 0.7794 GB Notification: Performance of SimCode: time 2.81e-07/0.6121, allocations: 0 / 1.025 GB, free: 9.559 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01087/0.623, allocations: 2.326 MB / 1.027 GB, free: 7.383 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001782/0.6232, allocations: 236.6 kB / 1.028 GB, free: 7.125 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.669/2.292, allocations: 1.406 kB / 1.028 GB, free: 7.125 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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