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.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.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.001029/0.001029, 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.001547/0.001547, allocations: 198.1 kB / 16.14 MB, free: 6.719 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.332/1.332, allocations: 222.9 MB / 239.8 MB, free: 4.621 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.579/2.579, allocations: 437 MB / 0.7099 GB, free: 5.32 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 63.91 kB / 0.8687 GB, free: 5.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.651/0.6525, allocations: 151.6 MB / 1.017 GB, free: 2.75 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck): time 0.002085/0.6546, allocations: 0.6646 MB / 1.017 GB, free: 2.082 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0007812/0.6554, allocations: 374.8 kB / 1.018 GB, free: 1.715 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.762e-05/0.6555, allocations: 0 / 1.018 GB, free: 1.715 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.621e-05/0.6555, allocations: 0 / 1.018 GB, free: 1.715 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.413e-05/0.6555, allocations: 0 / 1.018 GB, free: 1.715 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004189/0.656, allocations: 75.84 kB / 1.018 GB, free: 1.641 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.309e-05/0.656, allocations: 11.94 kB / 1.018 GB, free: 1.629 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.169e-05/0.6561, allocations: 4 kB / 1.018 GB, free: 1.625 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.73e-05/0.6561, allocations: 3.938 kB / 1.018 GB, free: 1.621 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.36e-05/0.6561, allocations: 7.984 kB / 1.018 GB, free: 1.613 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.198e-05/0.6561, allocations: 0 / 1.018 GB, free: 1.613 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003897/0.6565, allocations: 279.6 kB / 1.018 GB, free: 1.34 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.161e-05/0.6566, allocations: 0 / 1.018 GB, free: 1.34 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.114e-05/0.6566, allocations: 7.938 kB / 1.018 GB, free: 1.332 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.000187/0.6568, allocations: 91.84 kB / 1.018 GB, free: 1.242 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.6568, allocations: 0 / 1.018 GB, free: 1.242 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.162e-06/0.6568, allocations: 4 kB / 1.018 GB, free: 1.238 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.312e-06/0.6568, allocations: 0 / 1.018 GB, free: 1.238 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.0003556/0.6572, allocations: 341.1 kB / 1.019 GB, free: 0.8555 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.105e-05/0.6572, allocations: 8.031 kB / 1.019 GB, free: 0.8477 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.933e-05/0.6573, allocations: 34.75 kB / 1.019 GB, free: 0.8047 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.57e-05/0.6573, allocations: 4.938 kB / 1.019 GB, free: 0.8008 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001075/0.6574, allocations: 166.6 kB / 1.019 GB, free: 0.6016 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.228e-05/0.6575, allocations: 4.359 kB / 1.019 GB, free: 0.5977 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.718e-05/0.6575, allocations: 384 / 1.019 GB, free: 0.5977 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.367e-05/0.6576, allocations: 42.2 kB / 1.019 GB, free: 0.5508 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.737e-06/0.6576, allocations: 3.938 kB / 1.019 GB, free: 0.5469 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.313e-05/0.6576, allocations: 4 kB / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.648e-06/0.6576, allocations: 0 / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.5e-05/0.6576, allocations: 3.984 kB / 1.019 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001718/0.6578, allocations: 157.6 kB / 1.019 GB, free: 344 kB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 5.132e-05/0.6579, allocations: 22.59 kB / 1.019 GB, free: 312 kB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.009e-05/0.6579, allocations: 12.92 kB / 1.019 GB, free: 296 kB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007741/0.6587, allocations: 453.5 kB / 1.019 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.096e-05/0.6587, allocations: 46.48 kB / 1.019 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.223e-06/0.6587, allocations: 3.938 kB / 1.019 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0006006/0.6593, allocations: 250.2 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.396e-05/0.6594, allocations: 55.41 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.142e-05/0.6595, allocations: 93.86 kB / 1.02 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.495e-05/0.6595, allocations: 25.7 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.582e-05/0.6595, allocations: 88.48 kB / 1.02 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.466e-05/0.6596, allocations: 7.844 kB / 1.02 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.461e-05/0.6596, allocations: 21.7 kB / 1.02 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.000101/0.6597, allocations: 314.8 kB / 1.02 GB, free: 14.76 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.983e-05/0.6597, allocations: 8 kB / 1.02 GB, free: 14.75 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.504e-05/0.6598, allocations: 17.7 kB / 1.02 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.249e-05/0.6598, allocations: 33.66 kB / 1.02 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.61e-07/0.6598, allocations: 0 / 1.02 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001033/0.6599, allocations: 49.61 kB / 1.02 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.66, allocations: 14.42 kB / 1.02 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.66, allocations: 0 / 1.02 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.66, allocations: 0 / 1.02 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.357e-05/0.6601, allocations: 8 kB / 1.02 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.768e-06/0.6601, allocations: 3.938 kB / 1.02 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.354e-05/0.6601, allocations: 8 kB / 1.02 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.947e-06/0.6601, allocations: 8.062 kB / 1.02 GB, free: 14.59 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 7.592e-05/0.6602, allocations: 105.8 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.425e-05/0.6602, allocations: 7.938 kB / 1.021 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001381/0.6604, allocations: 57.17 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.6604, allocations: 0 / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.6604, allocations: 0 / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.6604, allocations: 0 / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001047/0.6605, allocations: 153.7 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.6605, allocations: 0 / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.811e-05/0.6606, allocations: 7.938 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.048e-06/0.6606, allocations: 7.875 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.425e-06/0.6606, allocations: 4 kB / 1.021 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.6606, allocations: 4 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.6606, allocations: 0 / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001541/0.6608, allocations: 77.28 kB / 1.021 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.918e-05/0.6608, allocations: 85.11 kB / 1.021 GB, free: 13.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.468e-05/0.6609, allocations: 7.938 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.314e-05/0.6609, allocations: 4.031 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.599e-05/0.6609, allocations: 0 / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.149e-06/0.6609, allocations: 0 / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.527e-05/0.661, allocations: 83.27 kB / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.41e-07/0.661, allocations: 0 / 1.021 GB, free: 13.89 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002175/0.6612, allocations: 24 kB / 1.021 GB, free: 13.87 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.0005006/0.6617, allocations: 0.6553 MB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 9.039e-05/0.6618, allocations: 15.98 kB / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.6618, allocations: 0 / 1.022 GB, free: 13.17 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.026e-05/0.6619, allocations: 15.94 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000149/0.662, allocations: 0.75 kB / 1.022 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009194/0.6629, allocations: 1.125 MB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000193/0.6631, allocations: 0.677 MB / 1.023 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.263e-05/0.6632, allocations: 4 kB / 1.023 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.955e-05/0.6632, allocations: 11.44 kB / 1.023 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.6632, allocations: 0 / 1.023 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01136/0.6746, allocations: 1.594 MB / 1.025 GB, free: 9.777 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001891/0.6748, allocations: 237.9 kB / 1.025 GB, free: 9.516 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.619/2.294, allocations: 0 / 1.025 GB, free: 9.516 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