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.001449/0.001448, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001892/0.001892, allocations: 192.8 kB / 16.25 MB, free: 6.637 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.318/1.318, allocations: 222.9 MB / 239.9 MB, free: 4.539 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.442/2.442, allocations: 437 MB / 0.7101 GB, free: 5.297 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001511/0.001511, allocations: 67.91 kB / 0.8689 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7777/0.7792, allocations: 151.6 MB / 1.017 GB, free: 2.684 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck): time 0.001875/0.7811, allocations: 0.6529 MB / 1.018 GB, free: 2.027 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0006556/0.7818, allocations: 350.8 kB / 1.018 GB, free: 1.684 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.822e-05/0.7818, allocations: 3.938 kB / 1.018 GB, free: 1.68 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.323e-05/0.7819, allocations: 0 / 1.018 GB, free: 1.68 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 2.255e-05/0.7819, allocations: 0 / 1.018 GB, free: 1.68 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004895/0.7824, allocations: 99.83 kB / 1.018 GB, free: 1.582 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.973e-05/0.7825, allocations: 4 kB / 1.018 GB, free: 1.578 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.372e-05/0.7825, allocations: 4 kB / 1.018 GB, free: 1.574 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.989e-05/0.7825, allocations: 4 kB / 1.018 GB, free: 1.57 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.981e-05/0.7826, allocations: 11.92 kB / 1.018 GB, free: 1.559 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.176e-05/0.7826, allocations: 0 / 1.018 GB, free: 1.559 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003671/0.783, allocations: 271.7 kB / 1.018 GB, free: 1.293 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.553e-05/0.783, allocations: 3.984 kB / 1.018 GB, free: 1.289 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.197e-05/0.783, allocations: 7.984 kB / 1.018 GB, free: 1.281 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0001945/0.7832, allocations: 95.8 kB / 1.018 GB, free: 1.188 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.7832, allocations: 0 / 1.018 GB, free: 1.188 MB / 0.7637 GB Notification: Performance of FrontEnd: time 3.367e-06/0.7833, allocations: 0 / 1.018 GB, free: 1.188 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 1.079e-05/0.7833, allocations: 3.938 kB / 1.018 GB, free: 1.184 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.0003482/0.7836, allocations: 343.5 kB / 1.019 GB, free: 0.7969 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.7837, allocations: 8.031 kB / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.801e-05/0.7837, allocations: 34.75 kB / 1.019 GB, free: 0.7461 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.315e-05/0.7838, allocations: 4.922 kB / 1.019 GB, free: 0.7422 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001117/0.7839, allocations: 162.6 kB / 1.019 GB, free: 0.5469 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.345e-06/0.7839, allocations: 4.375 kB / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.566e-05/0.7839, allocations: 12.38 kB / 1.019 GB, free: 0.5312 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001068/0.784, allocations: 30.27 kB / 1.019 GB, free: 0.4961 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.7841, allocations: 3.938 kB / 1.019 GB, free: 0.4922 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.7841, allocations: 3.984 kB / 1.019 GB, free: 500 kB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.7841, allocations: 0 / 1.019 GB, free: 500 kB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.027e-05/0.7841, allocations: 7.938 kB / 1.019 GB, free: 492 kB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002234/0.7844, allocations: 149.7 kB / 1.019 GB, free: 292 kB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 9.867e-05/0.7845, allocations: 26.56 kB / 1.019 GB, free: 256 kB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.717e-05/0.7845, allocations: 8.859 kB / 1.019 GB, free: 244 kB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008451/0.7854, allocations: 465.5 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.461e-05/0.7854, allocations: 30.56 kB / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.7854, allocations: 0 / 1.02 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0005876/0.786, allocations: 262.2 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.448e-05/0.786, allocations: 59.28 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.508e-05/0.7861, allocations: 94.08 kB / 1.02 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/0.7861, allocations: 29.7 kB / 1.02 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.901e-05/0.7862, allocations: 84.14 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.812e-05/0.7862, allocations: 11.83 kB / 1.02 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.285e-05/0.7863, allocations: 17.72 kB / 1.02 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.7864, allocations: 314.8 kB / 1.02 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.104e-05/0.7864, allocations: 4 kB / 1.02 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.047e-05/0.7864, allocations: 25.83 kB / 1.02 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.791e-05/0.7865, allocations: 29.72 kB / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.11e-07/0.7865, allocations: 0 / 1.021 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001094/0.7866, allocations: 57.53 kB / 1.021 GB, free: 14.57 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.7867, allocations: 7.938 kB / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.7867, allocations: 0 / 1.021 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.7867, allocations: 4 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.711e-05/0.7867, allocations: 4 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.7868, allocations: 4.062 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.927e-05/0.7868, allocations: 0 / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.54e-06/0.7868, allocations: 4 kB / 1.021 GB, free: 14.54 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.47e-05/0.7869, allocations: 109.8 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.747e-05/0.7869, allocations: 7.938 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001262/0.787, allocations: 57.11 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/0.787, allocations: 0 / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.787, allocations: 4 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.7871, allocations: 0 / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.715e-05/0.7872, allocations: 153.7 kB / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.7872, allocations: 0 / 1.021 GB, free: 14.15 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.384e-05/0.7872, allocations: 4 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.275e-06/0.7872, allocations: 7.938 kB / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.803e-06/0.7872, allocations: 0 / 1.021 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.835e-06/0.7873, allocations: 3.984 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.7873, allocations: 3.984 kB / 1.021 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001354/0.7874, allocations: 81.06 kB / 1.021 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.206e-05/0.7874, allocations: 81.05 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.348e-05/0.7875, allocations: 8.031 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.048e-05/0.7875, allocations: 0 / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.324e-05/0.7875, allocations: 3.938 kB / 1.021 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.683e-06/0.7875, allocations: 11.92 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.495e-05/0.7876, allocations: 79.28 kB / 1.021 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7876, allocations: 0 / 1.021 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000204/0.7878, allocations: 28.16 kB / 1.021 GB, free: 13.8 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.0004756/0.7883, allocations: 0.6396 MB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 9.645e-05/0.7884, allocations: 19.98 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.7884, allocations: 0 / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.83e-05/0.7884, allocations: 8.188 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001416/0.7886, allocations: 7.516 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008662/0.7894, allocations: 1.143 MB / 1.023 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002135/0.7897, allocations: 0.6807 MB / 1.024 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.05e-05/0.7897, allocations: 0 / 1.024 GB, free: 11.17 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.859e-05/0.7897, allocations: 11.44 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.7897, allocations: 4 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01208/0.8018, allocations: 1.632 MB / 1.025 GB, free: 9.684 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001969/0.8021, allocations: 237.4 kB / 1.025 GB, free: 9.426 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.733/2.535, allocations: 3.625 kB / 1.025 GB, free: 9.426 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