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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.008379/0.008379, allocations: 103.6 kB / 15.73 MB, free: 6.445 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.002023/0.002023, allocations: 190.6 kB / 16.67 MB, free: 6.355 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.429/1.429, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.837/2.837, allocations: 461.9 MB / 0.7348 GB, free: 14.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 63.91 kB / 1.054 GB, free: 7.617 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3199/0.3215, allocations: 157.4 MB / 1.207 GB, free: 10.12 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck): time 0.001808/0.3233, allocations: 0.5913 MB / 1.208 GB, free: 9.527 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0007342/0.3241, allocations: 350.7 kB / 1.208 GB, free: 9.184 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.396e-05/0.3241, allocations: 0 / 1.208 GB, free: 9.184 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.665e-05/0.3241, allocations: 4 kB / 1.208 GB, free: 9.18 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 1.98e-05/0.3242, allocations: 0 / 1.208 GB, free: 9.18 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000525/0.3247, allocations: 121.3 kB / 1.208 GB, free: 9.062 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 4.998e-05/0.3248, allocations: 7.984 kB / 1.208 GB, free: 9.055 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 5.06e-05/0.3248, allocations: 7.984 kB / 1.208 GB, free: 9.047 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 2.013e-05/0.3248, allocations: 4 kB / 1.208 GB, free: 9.043 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.013e-05/0.3249, allocations: 7.938 kB / 1.208 GB, free: 9.035 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.102e-05/0.3249, allocations: 4 kB / 1.208 GB, free: 9.031 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003939/0.3253, allocations: 275.6 kB / 1.209 GB, free: 8.762 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.207e-05/0.3253, allocations: 0 / 1.209 GB, free: 8.762 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.125e-05/0.3254, allocations: 4 kB / 1.209 GB, free: 8.758 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001897/0.3256, allocations: 95.78 kB / 1.209 GB, free: 8.664 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.3256, allocations: 0 / 1.209 GB, free: 8.664 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.664e-06/0.3256, allocations: 0 / 1.209 GB, free: 8.664 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.3256, allocations: 0 / 1.209 GB, free: 8.664 MB / 0.9669 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.000378/0.326, allocations: 343.6 kB / 1.209 GB, free: 8.277 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.326, allocations: 12.62 kB / 1.209 GB, free: 8.266 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.129e-05/0.3261, allocations: 34.75 kB / 1.209 GB, free: 8.223 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.003e-05/0.3261, allocations: 4.844 kB / 1.209 GB, free: 8.219 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001223/0.3262, allocations: 172.5 kB / 1.209 GB, free: 8.012 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.426e-06/0.3263, allocations: 384 / 1.209 GB, free: 8.012 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.195e-05/0.3263, allocations: 12.31 kB / 1.209 GB, free: 8 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.428e-05/0.3264, allocations: 34.25 kB / 1.209 GB, free: 7.961 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.405e-06/0.3264, allocations: 3.938 kB / 1.209 GB, free: 7.957 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.197e-06/0.3264, allocations: 0 / 1.209 GB, free: 7.957 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.3264, allocations: 0 / 1.209 GB, free: 7.957 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.467e-05/0.3265, allocations: 8 kB / 1.209 GB, free: 7.949 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001629/0.3266, allocations: 153.7 kB / 1.209 GB, free: 7.75 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 4.57e-05/0.3267, allocations: 26.52 kB / 1.209 GB, free: 7.715 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.718e-05/0.3267, allocations: 4.859 kB / 1.209 GB, free: 7.707 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000751/0.3275, allocations: 461.5 kB / 1.21 GB, free: 7.164 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.3275, allocations: 30.56 kB / 1.21 GB, free: 7.125 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=2): time 3.076e-06/0.3275, allocations: 0 / 1.21 GB, free: 7.125 MB / 0.9669 GB Notification: Performance of matching and sorting (n=3): time 0.0005568/0.3281, allocations: 262.4 kB / 1.21 GB, free: 6.816 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.074e-05/0.3281, allocations: 55.41 kB / 1.21 GB, free: 6.75 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.116e-05/0.3282, allocations: 97.84 kB / 1.21 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.3282, allocations: 29.7 kB / 1.21 GB, free: 6.609 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 2.905e-05/0.3282, allocations: 80.14 kB / 1.21 GB, free: 6.527 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.262e-05/0.3283, allocations: 3.906 kB / 1.21 GB, free: 6.523 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.469e-05/0.3283, allocations: 17.72 kB / 1.21 GB, free: 6.5 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.3284, allocations: 314.8 kB / 1.211 GB, free: 6.184 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.146e-05/0.3285, allocations: 12.11 kB / 1.211 GB, free: 6.172 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.907e-05/0.3285, allocations: 21.72 kB / 1.211 GB, free: 6.145 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.448e-05/0.3285, allocations: 25.66 kB / 1.211 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.42e-07/0.3285, allocations: 0 / 1.211 GB, free: 6.113 MB / 0.9669 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.000111/0.3287, allocations: 53.62 kB / 1.211 GB, free: 6.055 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.3287, allocations: 9.5 kB / 1.211 GB, free: 6.047 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.199e-06/0.3287, allocations: 4.062 kB / 1.211 GB, free: 6.043 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.3287, allocations: 4 kB / 1.211 GB, free: 6.039 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.305e-05/0.3288, allocations: 4 kB / 1.211 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.871e-06/0.3288, allocations: 0 / 1.211 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.455e-05/0.3288, allocations: 7.984 kB / 1.211 GB, free: 6.027 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-06/0.3288, allocations: 0 / 1.211 GB, free: 6.027 MB / 0.9669 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 9.099e-05/0.3289, allocations: 113.8 kB / 1.211 GB, free: 5.906 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.262e-05/0.329, allocations: 3.938 kB / 1.211 GB, free: 5.902 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001309/0.3291, allocations: 61.03 kB / 1.211 GB, free: 5.836 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.3291, allocations: 0 / 1.211 GB, free: 5.836 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3291, allocations: 0 / 1.211 GB, free: 5.836 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.005e-06/0.3291, allocations: 4.125 kB / 1.211 GB, free: 5.832 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001111/0.3292, allocations: 157.7 kB / 1.211 GB, free: 5.629 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.3293, allocations: 0 / 1.211 GB, free: 5.629 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.684e-05/0.3293, allocations: 11.98 kB / 1.211 GB, free: 5.617 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.384e-06/0.3293, allocations: 7.922 kB / 1.211 GB, free: 5.609 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.103e-06/0.3293, allocations: 0 / 1.211 GB, free: 5.609 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.3294, allocations: 0 / 1.211 GB, free: 5.609 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.3294, allocations: 4 kB / 1.211 GB, free: 5.605 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001409/0.3295, allocations: 73.12 kB / 1.211 GB, free: 5.516 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.839e-05/0.3296, allocations: 85.08 kB / 1.211 GB, free: 5.414 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.618e-05/0.3296, allocations: 11.92 kB / 1.211 GB, free: 5.402 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.068e-05/0.3296, allocations: 3.938 kB / 1.211 GB, free: 5.398 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.479e-05/0.3296, allocations: 0 / 1.211 GB, free: 5.398 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.291e-06/0.3297, allocations: 8 kB / 1.211 GB, free: 5.391 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.428e-05/0.3297, allocations: 79.34 kB / 1.212 GB, free: 5.312 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3297, allocations: 0 / 1.212 GB, free: 5.312 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002199/0.3299, allocations: 20 kB / 1.212 GB, free: 5.293 MB / 0.9669 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.0004989/0.3304, allocations: 0.6359 MB / 1.212 GB, free: 4.625 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 8.389e-05/0.3305, allocations: 24.09 kB / 1.212 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3305, allocations: 0 / 1.212 GB, free: 4.602 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 1.821e-05/0.3306, allocations: 11.98 kB / 1.212 GB, free: 4.59 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001462/0.3307, allocations: 6.438 kB / 1.212 GB, free: 4.586 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009883/0.3317, allocations: 1.139 MB / 1.213 GB, free: 3.355 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003016/0.332, allocations: 0.6768 MB / 1.214 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.394e-05/0.3321, allocations: 11.94 kB / 1.214 GB, free: 2.641 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.324e-05/0.3321, allocations: 15.44 kB / 1.214 GB, free: 2.629 MB / 0.9669 GB Notification: Performance of SimCode: time 2.3e-07/0.3321, allocations: 0 / 1.214 GB, free: 2.629 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01895/0.3511, allocations: 1.754 MB / 1.216 GB, free: 1.02 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.664/8.016, allocations: 9.844 kB / 1.216 GB, free: 1.016 MB / 0.9669 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) "" Variables in the reference:time,x,y,der(x),der(y) Variables in the result:delta,der(x),der(y),n,time,x,y