Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.RegNonZeroPowerDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck,fileNamePrefix="Buildings_10_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.001093/0.001093, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.297/1.297, allocations: 222.9 MB / 240.2 MB, free: 4.414 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.395/2.395, allocations: 437.1 MB / 0.7104 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 71.89 kB / 0.8694 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5296/0.5308, allocations: 151.6 MB / 1.017 GB, free: 2.477 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck): time 0.001706/0.5326, allocations: 0.5938 MB / 1.018 GB, free: 1.879 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0005958/0.5332, allocations: 342.7 kB / 1.018 GB, free: 1.543 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.823e-05/0.5332, allocations: 0 / 1.018 GB, free: 1.543 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.245e-05/0.5332, allocations: 3.938 kB / 1.018 GB, free: 1.539 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 1.802e-05/0.5333, allocations: 0 / 1.018 GB, free: 1.539 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004125/0.5337, allocations: 111.7 kB / 1.018 GB, free: 1.43 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 3.98e-05/0.5337, allocations: 15.98 kB / 1.018 GB, free: 1.414 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.465e-05/0.5338, allocations: 0 / 1.018 GB, free: 1.414 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.75e-05/0.5338, allocations: 4 kB / 1.018 GB, free: 1.41 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.947e-05/0.5339, allocations: 7.938 kB / 1.018 GB, free: 1.402 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.274e-05/0.5339, allocations: 0 / 1.018 GB, free: 1.402 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003361/0.5342, allocations: 279.6 kB / 1.019 GB, free: 1.129 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.114e-05/0.5342, allocations: 7.938 kB / 1.019 GB, free: 1.121 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 1.661e-05/0.5343, allocations: 4 kB / 1.019 GB, free: 1.117 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001573/0.5344, allocations: 91.78 kB / 1.019 GB, free: 1.027 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.5344, allocations: 0 / 1.019 GB, free: 1.027 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.372e-06/0.5345, allocations: 4 kB / 1.019 GB, free: 1.023 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 3.877e-06/0.5345, allocations: 0 / 1.019 GB, free: 1.023 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002911/0.5348, allocations: 343.5 kB / 1.019 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.5348, allocations: 12.03 kB / 1.019 GB, free: 0.625 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.514e-05/0.5348, allocations: 34.75 kB / 1.019 GB, free: 0.582 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.265e-05/0.5349, allocations: 0.9375 kB / 1.019 GB, free: 0.582 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.152e-05/0.535, allocations: 174.6 kB / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.742e-06/0.535, allocations: 384 / 1.019 GB, free: 384 kB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.744e-05/0.535, allocations: 4.312 kB / 1.019 GB, free: 380 kB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.754e-05/0.5351, allocations: 38.27 kB / 1.019 GB, free: 336 kB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.913e-06/0.5351, allocations: 3.938 kB / 1.019 GB, free: 332 kB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.293e-06/0.5351, allocations: 0 / 1.019 GB, free: 332 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.5351, allocations: 0 / 1.019 GB, free: 332 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.987e-05/0.5351, allocations: 7.938 kB / 1.019 GB, free: 324 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001362/0.5353, allocations: 153.7 kB / 1.02 GB, free: 120 kB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 3.62e-05/0.5353, allocations: 18.61 kB / 1.02 GB, free: 92 kB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.708e-05/0.5354, allocations: 16.91 kB / 1.02 GB, free: 72 kB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006318/0.536, allocations: 453.5 kB / 1.02 GB, free: 15.54 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.243e-05/0.536, allocations: 38.56 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.312e-06/0.536, allocations: 3.938 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0004519/0.5365, allocations: 250.2 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.619e-05/0.5365, allocations: 55.39 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.611e-05/0.5366, allocations: 101.8 kB / 1.02 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.177e-05/0.5366, allocations: 26.05 kB / 1.02 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.416e-05/0.5366, allocations: 84.14 kB / 1.021 GB, free: 14.89 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.234e-05/0.5367, allocations: 11.84 kB / 1.021 GB, free: 14.88 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.849e-05/0.5367, allocations: 17.7 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.398e-05/0.5368, allocations: 318.8 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.548e-05/0.5368, allocations: 0 / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.301e-05/0.5368, allocations: 17.72 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.512e-05/0.5369, allocations: 33.7 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.02e-07/0.5369, allocations: 0 / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.333e-05/0.537, allocations: 53.55 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.373e-05/0.537, allocations: 7.938 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.537, allocations: 4 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.537, allocations: 0 / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.629e-05/0.5371, allocations: 7.984 kB / 1.021 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.5371, allocations: 4 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.835e-05/0.5371, allocations: 0 / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.35e-06/0.5371, allocations: 4.062 kB / 1.021 GB, free: 14.39 MB / 0.7794 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 6.15e-05/0.5372, allocations: 113.8 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.425e-05/0.5372, allocations: 3.938 kB / 1.021 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001192/0.5374, allocations: 61.3 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.5374, allocations: 0 / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.975e-06/0.5374, allocations: 0 / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.5374, allocations: 3.938 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.698e-05/0.5375, allocations: 157.7 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.5375, allocations: 4 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.933e-05/0.5375, allocations: 4 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.5376, allocations: 3.938 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.661e-06/0.5376, allocations: 0 / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.5376, allocations: 4 kB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.5376, allocations: 0 / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001398/0.5377, allocations: 85.08 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.018e-05/0.5378, allocations: 85.11 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.146e-05/0.5378, allocations: 3.938 kB / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.635e-05/0.5378, allocations: 0 / 1.022 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.718e-05/0.5378, allocations: 4 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.459e-06/0.5379, allocations: 0 / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.318e-05/0.5379, allocations: 75.28 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5379, allocations: 0 / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002198/0.5381, allocations: 31.98 kB / 1.022 GB, free: 13.66 MB / 0.7794 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.000417/0.5386, allocations: 0.6514 MB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 7.916e-05/0.5387, allocations: 19.98 kB / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.5387, allocations: 0 / 1.022 GB, free: 12.96 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.582e-05/0.5387, allocations: 7.938 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001312/0.5388, allocations: 6.031 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008209/0.5396, allocations: 1.131 MB / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001807/0.5398, allocations: 0.6768 MB / 1.024 GB, free: 11.03 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.944e-05/0.5399, allocations: 7.984 kB / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.501e-05/0.5399, allocations: 7.438 kB / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.5399, allocations: 0 / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.157/1.697, allocations: 1.721 MB / 1.026 GB, free: 9.41 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.39/12.09, allocations: 11.45 kB / 1.026 GB, free: 9.402 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.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(x),der(y),n,time,x,y