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.00726/0.00726, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001665/0.001665, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.442/1.442, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.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.68/2.68, allocations: 437 MB / 0.7105 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001295/0.001295, allocations: 67.89 kB / 1.018 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3248/0.3261, allocations: 151.6 MB / 1.166 GB, free: 7.383 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.001765/0.3279, allocations: 0.6109 MB / 1.167 GB, free: 6.773 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0007377/0.3287, allocations: 359 kB / 1.167 GB, free: 6.422 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.963e-05/0.3287, allocations: 0 / 1.167 GB, free: 6.422 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 1.326e-05/0.3288, allocations: 3.938 kB / 1.167 GB, free: 6.418 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 2.421e-05/0.3288, allocations: 0 / 1.167 GB, free: 6.418 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004965/0.3293, allocations: 115.6 kB / 1.167 GB, free: 6.305 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 6.669e-05/0.3294, allocations: 19.98 kB / 1.167 GB, free: 6.285 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.728e-05/0.3294, allocations: 11.97 kB / 1.167 GB, free: 6.273 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 4.012e-05/0.3295, allocations: 15.94 kB / 1.167 GB, free: 6.258 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 5.691e-05/0.3295, allocations: 11.98 kB / 1.167 GB, free: 6.246 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.529e-05/0.3296, allocations: 0 / 1.167 GB, free: 6.246 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003914/0.33, allocations: 275.6 kB / 1.168 GB, free: 5.977 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.806e-05/0.33, allocations: 11.98 kB / 1.168 GB, free: 5.965 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.892e-05/0.33, allocations: 15.92 kB / 1.168 GB, free: 5.949 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001912/0.3302, allocations: 95.78 kB / 1.168 GB, free: 5.855 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.3302, allocations: 0 / 1.168 GB, free: 5.855 MB / 0.92 GB Notification: Performance of FrontEnd: time 3.426e-06/0.3302, allocations: 0 / 1.168 GB, free: 5.855 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.861e-06/0.3302, allocations: 3.938 kB / 1.168 GB, free: 5.852 MB / 0.92 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.0004309/0.3307, allocations: 366.3 kB / 1.168 GB, free: 5.445 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.291e-05/0.3307, allocations: 12.03 kB / 1.168 GB, free: 5.434 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.068e-05/0.3308, allocations: 34.73 kB / 1.168 GB, free: 5.391 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.262e-05/0.3309, allocations: 4.938 kB / 1.168 GB, free: 5.387 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000106/0.331, allocations: 164.4 kB / 1.168 GB, free: 5.188 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.273e-05/0.331, allocations: 8.375 kB / 1.168 GB, free: 5.18 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.212e-05/0.331, allocations: 4.375 kB / 1.168 GB, free: 5.176 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001177/0.3311, allocations: 46.25 kB / 1.168 GB, free: 5.125 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.3312, allocations: 7.844 kB / 1.168 GB, free: 5.117 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.3312, allocations: 8 kB / 1.168 GB, free: 5.109 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.812e-06/0.3312, allocations: 4 kB / 1.168 GB, free: 5.105 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.69e-05/0.3312, allocations: 19.92 kB / 1.168 GB, free: 5.086 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001834/0.3314, allocations: 170.5 kB / 1.169 GB, free: 4.871 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001105/0.3316, allocations: 50.56 kB / 1.169 GB, free: 4.812 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.688e-05/0.3316, allocations: 28.84 kB / 1.169 GB, free: 4.781 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007327/0.3323, allocations: 465.4 kB / 1.169 GB, free: 4.234 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.989e-05/0.3324, allocations: 30.56 kB / 1.169 GB, free: 4.195 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.423e-06/0.3324, allocations: 0 / 1.169 GB, free: 4.195 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.001378/0.3338, allocations: 0.5917 MB / 1.17 GB, free: 3.512 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.272e-05/0.3338, allocations: 55.39 kB / 1.17 GB, free: 3.445 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.586e-05/0.3339, allocations: 101.8 kB / 1.17 GB, free: 3.336 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.89e-05/0.3339, allocations: 29.7 kB / 1.17 GB, free: 3.301 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.158e-05/0.334, allocations: 88.14 kB / 1.17 GB, free: 3.211 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 4.169e-05/0.334, allocations: 35.45 kB / 1.17 GB, free: 3.176 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.759e-05/0.3341, allocations: 29.7 kB / 1.17 GB, free: 3.141 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.594e-05/0.3342, allocations: 310.8 kB / 1.17 GB, free: 2.828 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.285e-05/0.3342, allocations: 23.98 kB / 1.17 GB, free: 2.805 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.68e-05/0.3343, allocations: 20 kB / 1.17 GB, free: 2.785 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.622e-05/0.3344, allocations: 56.84 kB / 1.17 GB, free: 2.727 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.01e-07/0.3344, allocations: 0 / 1.17 GB, free: 2.727 MB / 0.92 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001665/0.3346, allocations: 108.1 kB / 1.17 GB, free: 2.617 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.3346, allocations: 12 kB / 1.17 GB, free: 2.605 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.3346, allocations: 0 / 1.17 GB, free: 2.605 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.3346, allocations: 0 / 1.17 GB, free: 2.605 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.3347, allocations: 20.17 kB / 1.171 GB, free: 2.586 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.467e-06/0.3347, allocations: 7.984 kB / 1.171 GB, free: 2.578 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.432e-05/0.3348, allocations: 0 / 1.171 GB, free: 2.578 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.062e-05/0.3348, allocations: 4.094 kB / 1.171 GB, free: 2.574 MB / 0.92 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.468e-05/0.3349, allocations: 117.7 kB / 1.171 GB, free: 2.449 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.873e-05/0.3349, allocations: 19.83 kB / 1.171 GB, free: 2.43 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002013/0.3351, allocations: 109.5 kB / 1.171 GB, free: 2.309 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.3352, allocations: 4 kB / 1.171 GB, free: 2.305 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.3352, allocations: 0 / 1.171 GB, free: 2.305 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.3352, allocations: 0 / 1.171 GB, free: 2.305 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004027/0.3356, allocations: 366.6 kB / 1.171 GB, free: 1.891 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.3356, allocations: 0 / 1.171 GB, free: 1.891 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001091/0.3357, allocations: 19.98 kB / 1.171 GB, free: 1.871 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.3357, allocations: 0 / 1.171 GB, free: 1.871 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.3357, allocations: 4 kB / 1.171 GB, free: 1.867 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.3357, allocations: 4 kB / 1.171 GB, free: 1.863 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.3358, allocations: 0 / 1.171 GB, free: 1.863 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000269/0.336, allocations: 227.3 kB / 1.171 GB, free: 1.625 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.808e-05/0.3361, allocations: 85.09 kB / 1.171 GB, free: 1.523 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.925e-05/0.3361, allocations: 4 kB / 1.171 GB, free: 1.52 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.075e-05/0.3362, allocations: 0 / 1.171 GB, free: 1.52 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.99e-05/0.3362, allocations: 11.98 kB / 1.171 GB, free: 1.508 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.258e-06/0.3362, allocations: 4 kB / 1.171 GB, free: 1.504 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.08e-05/0.3363, allocations: 79.34 kB / 1.172 GB, free: 1.426 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3363, allocations: 0 / 1.172 GB, free: 1.426 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.000285/0.3366, allocations: 44 kB / 1.172 GB, free: 1.383 MB / 0.92 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.0006258/0.3372, allocations: 0.7943 MB / 1.172 GB, free: 0.5625 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001505/0.3374, allocations: 59.97 kB / 1.172 GB, free: 0.5039 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.3374, allocations: 4.062 kB / 1.172 GB, free: 0.5 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 4.822e-05/0.3374, allocations: 35.88 kB / 1.172 GB, free: 476 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002271/0.3377, allocations: 13.7 kB / 1.172 GB, free: 464 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001311/0.339, allocations: 1.392 MB / 1.174 GB, free: 14.98 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002333/0.3392, allocations: 0.6885 MB / 1.174 GB, free: 14.27 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.918e-05/0.3393, allocations: 8 kB / 1.174 GB, free: 14.26 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.457e-05/0.3393, allocations: 22.81 kB / 1.175 GB, free: 14.25 MB / 0.9356 GB Notification: Performance of SimCode: time 2.41e-07/0.3394, allocations: 0 / 1.175 GB, free: 14.25 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02202/0.3614, allocations: 2.483 MB / 1.177 GB, free: 11.91 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.925/8.287, allocations: 8.359 kB / 1.177 GB, free: 11.9 MB / 0.9356 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