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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.004333/0.004333, allocations: 100.5 kB / 15.73 MB, free: 6.008 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.001222/0.001222, allocations: 197.8 kB / 16.67 MB, free: 5.926 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.306/1.306, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.381/2.381, allocations: 437.1 MB / 0.7105 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001807/0.001807, allocations: 63.89 kB / 1.018 GB, free: 9.781 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8814/0.8832, allocations: 151.6 MB / 1.166 GB, free: 3.684 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.00182/0.8851, allocations: 0.6175 MB / 1.167 GB, free: 3.07 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0007612/0.8859, allocations: 354.7 kB / 1.167 GB, free: 2.723 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.689e-05/0.8859, allocations: 0 / 1.167 GB, free: 2.723 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.7e-05/0.8859, allocations: 3.938 kB / 1.167 GB, free: 2.719 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 3.601e-05/0.886, allocations: 0 / 1.167 GB, free: 2.719 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005129/0.8865, allocations: 120.7 kB / 1.167 GB, free: 2.602 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 7.43e-05/0.8866, allocations: 23.98 kB / 1.167 GB, free: 2.578 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.351e-05/0.8866, allocations: 4 kB / 1.167 GB, free: 2.574 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 4.208e-05/0.8867, allocations: 11.92 kB / 1.167 GB, free: 2.562 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.446e-05/0.8867, allocations: 19.86 kB / 1.167 GB, free: 2.543 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.41e-05/0.8868, allocations: 0 / 1.167 GB, free: 2.543 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004328/0.8872, allocations: 279.6 kB / 1.168 GB, free: 2.27 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.615e-05/0.8872, allocations: 4 kB / 1.168 GB, free: 2.266 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.102e-05/0.8873, allocations: 15.92 kB / 1.168 GB, free: 2.25 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002037/0.8875, allocations: 103.4 kB / 1.168 GB, free: 2.152 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.8875, allocations: 4 kB / 1.168 GB, free: 2.148 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.683e-06/0.8875, allocations: 0 / 1.168 GB, free: 2.148 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.781e-06/0.8875, allocations: 0 / 1.168 GB, free: 2.148 MB / 0.8887 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.0004826/0.888, allocations: 359.2 kB / 1.168 GB, free: 1.746 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/0.888, allocations: 12.92 kB / 1.168 GB, free: 1.734 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.978e-05/0.8881, allocations: 34.75 kB / 1.168 GB, free: 1.691 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.658e-05/0.8882, allocations: 8.891 kB / 1.168 GB, free: 1.684 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001414/0.8883, allocations: 168.3 kB / 1.168 GB, free: 1.48 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.525e-05/0.8883, allocations: 4.375 kB / 1.168 GB, free: 1.477 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.132e-05/0.8884, allocations: 4.375 kB / 1.168 GB, free: 1.473 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001339/0.8885, allocations: 62.16 kB / 1.168 GB, free: 1.406 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/0.8885, allocations: 3.938 kB / 1.168 GB, free: 1.402 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.8885, allocations: 0 / 1.168 GB, free: 1.402 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.8886, allocations: 4 kB / 1.168 GB, free: 1.398 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.064e-05/0.8886, allocations: 15.98 kB / 1.168 GB, free: 1.383 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001978/0.8888, allocations: 161.7 kB / 1.169 GB, free: 1.176 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001138/0.8889, allocations: 66.5 kB / 1.169 GB, free: 1.102 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.196e-05/0.889, allocations: 32.84 kB / 1.169 GB, free: 1.066 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007378/0.8897, allocations: 457.5 kB / 1.169 GB, free: 0.5273 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.659e-05/0.8898, allocations: 34.56 kB / 1.169 GB, free: 496 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=7): time 1.263e-06/0.8898, allocations: 0 / 1.169 GB, free: 496 kB / 0.8887 GB Notification: Performance of matching and sorting (n=11): time 0.001371/0.8912, allocations: 0.6033 MB / 1.17 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.762e-05/0.8912, allocations: 51.41 kB / 1.17 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.84e-05/0.8913, allocations: 97.86 kB / 1.17 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.065e-05/0.8913, allocations: 33.7 kB / 1.17 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.148e-05/0.8914, allocations: 80.14 kB / 1.17 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.444e-05/0.8914, allocations: 39.64 kB / 1.17 GB, free: 15.46 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.582e-05/0.8915, allocations: 29.7 kB / 1.17 GB, free: 15.43 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001303/0.8916, allocations: 314.8 kB / 1.17 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.592e-05/0.8917, allocations: 23.92 kB / 1.17 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.374e-05/0.8917, allocations: 32.08 kB / 1.17 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.333e-05/0.8918, allocations: 52.86 kB / 1.17 GB, free: 15 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.21e-07/0.8918, allocations: 0 / 1.17 GB, free: 15 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001608/0.892, allocations: 98.25 kB / 1.171 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.892, allocations: 11.98 kB / 1.171 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.892, allocations: 0 / 1.171 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.892, allocations: 0 / 1.171 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001164/0.8922, allocations: 19.94 kB / 1.171 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.185e-06/0.8922, allocations: 4 kB / 1.171 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.491e-05/0.8922, allocations: 4 kB / 1.171 GB, free: 14.86 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/0.8922, allocations: 0 / 1.171 GB, free: 14.86 MB / 0.9044 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.058e-05/0.8923, allocations: 121.8 kB / 1.171 GB, free: 14.73 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.088e-05/0.8923, allocations: 11.89 kB / 1.171 GB, free: 14.72 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002063/0.8926, allocations: 109.5 kB / 1.171 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.048e-06/0.8926, allocations: 4 kB / 1.171 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.8926, allocations: 0 / 1.171 GB, free: 14.6 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.63e-06/0.8926, allocations: 3.984 kB / 1.171 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004208/0.893, allocations: 354.5 kB / 1.171 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.893, allocations: 0 / 1.171 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.8931, allocations: 23.94 kB / 1.171 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.8932, allocations: 0 / 1.171 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.102e-05/0.8932, allocations: 4 kB / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.549e-06/0.8932, allocations: 4 kB / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.8932, allocations: 3.984 kB / 1.171 GB, free: 14.16 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002751/0.8935, allocations: 220.8 kB / 1.171 GB, free: 13.93 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.851e-05/0.8935, allocations: 85.05 kB / 1.171 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.655e-05/0.8936, allocations: 4 kB / 1.171 GB, free: 13.82 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.915e-05/0.8936, allocations: 8.062 kB / 1.171 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.956e-05/0.8937, allocations: 7.984 kB / 1.171 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.038e-05/0.8937, allocations: 4 kB / 1.171 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.924e-05/0.8937, allocations: 79.22 kB / 1.172 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8937, allocations: 0 / 1.172 GB, free: 13.72 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002833/0.894, allocations: 51.86 kB / 1.172 GB, free: 13.67 MB / 0.9044 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.0006925/0.8947, allocations: 0.7904 MB / 1.172 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001477/0.8949, allocations: 63.84 kB / 1.172 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.8949, allocations: 8 kB / 1.172 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 4.938e-05/0.895, allocations: 32.47 kB / 1.172 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002178/0.8952, allocations: 9.125 kB / 1.172 GB, free: 12.75 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001393/0.8966, allocations: 1.385 MB / 1.174 GB, free: 11.29 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003113/0.8969, allocations: 0.6885 MB / 1.175 GB, free: 10.57 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.897e-05/0.897, allocations: 12 kB / 1.175 GB, free: 10.56 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.434e-05/0.897, allocations: 23.42 kB / 1.175 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of SimCode: time 2.41e-07/0.897, allocations: 0 / 1.175 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2693/1.166, allocations: 2.487 MB / 1.177 GB, free: 8.203 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.735/10.9, allocations: 18.06 kB / 1.177 GB, free: 8.191 MB / 0.9044 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=400 --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