Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck,fileNamePrefix="Buildings_9_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.007437/0.007437, allocations: 101.1 kB / 15.73 MB, free: 6.051 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.001793/0.001793, allocations: 187.8 kB / 16.67 MB, free: 5.98 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 / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.403/2.403, allocations: 390.2 MB / 0.6648 GB, free: 172 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 60.66 kB / 0.9504 GB, free: 5.871 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2787/0.2799, allocations: 140.4 MB / 1.088 GB, free: 1.918 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck): time 0.002188/0.2821, allocations: 0.5843 MB / 1.088 GB, free: 1.336 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0006586/0.2828, allocations: 343.2 kB / 1.088 GB, free: 1 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.3e-05/0.2829, allocations: 0 / 1.088 GB, free: 1 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.327e-05/0.2829, allocations: 3.938 kB / 1.088 GB, free: 0.9961 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 2.082e-05/0.2829, allocations: 4 kB / 1.088 GB, free: 0.9922 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004873/0.2834, allocations: 109.3 kB / 1.089 GB, free: 0.8867 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 5.394e-05/0.2835, allocations: 15.92 kB / 1.089 GB, free: 0.8711 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.406e-05/0.2835, allocations: 7.984 kB / 1.089 GB, free: 0.8633 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 1.548e-05/0.2836, allocations: 0 / 1.089 GB, free: 0.8633 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.019e-05/0.2836, allocations: 11.94 kB / 1.089 GB, free: 0.8516 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.073e-05/0.2836, allocations: 0 / 1.089 GB, free: 0.8516 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003608/0.284, allocations: 271.6 kB / 1.089 GB, free: 0.5859 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.335e-05/0.284, allocations: 8 kB / 1.089 GB, free: 0.5781 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 1.856e-05/0.284, allocations: 0 / 1.089 GB, free: 0.5781 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0001825/0.2842, allocations: 99.77 kB / 1.089 GB, free: 492 kB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.2842, allocations: 3.938 kB / 1.089 GB, free: 488 kB / 0.8419 GB Notification: Performance of FrontEnd: time 1.502e-06/0.2843, allocations: 0 / 1.089 GB, free: 488 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.19e-06/0.2843, allocations: 0 / 1.089 GB, free: 488 kB / 0.8419 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.0003387/0.2846, allocations: 339.6 kB / 1.089 GB, free: 96 kB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.2847, allocations: 8.031 kB / 1.089 GB, free: 88 kB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.188e-05/0.2847, allocations: 30.75 kB / 1.089 GB, free: 48 kB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.114e-05/0.2847, allocations: 4.938 kB / 1.089 GB, free: 44 kB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001086/0.2849, allocations: 167.2 kB / 1.089 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.153e-05/0.2849, allocations: 384 / 1.089 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.198e-05/0.2849, allocations: 384 / 1.089 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.947e-05/0.285, allocations: 46.23 kB / 1.089 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.368e-06/0.285, allocations: 3.938 kB / 1.089 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.647e-06/0.285, allocations: 3.938 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.285, allocations: 0 / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.035e-05/0.2851, allocations: 0 / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001487/0.2852, allocations: 161.6 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.98e-05/0.2853, allocations: 18.61 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.773e-05/0.2853, allocations: 8.922 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006874/0.286, allocations: 469.4 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.613e-05/0.286, allocations: 34.56 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.2861, allocations: 0 / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0005192/0.2866, allocations: 254.3 kB / 1.09 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.189e-05/0.2866, allocations: 55.62 kB / 1.09 GB, free: 14.58 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.683e-05/0.2867, allocations: 97.84 kB / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.256e-05/0.2867, allocations: 25.7 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.009e-05/0.2867, allocations: 84.14 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.384e-05/0.2868, allocations: 11.81 kB / 1.091 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.979e-05/0.2868, allocations: 13.72 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.547e-05/0.2869, allocations: 318.8 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.95e-05/0.2869, allocations: 4 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.834e-05/0.2869, allocations: 21.84 kB / 1.091 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.664e-05/0.287, allocations: 25.72 kB / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.22e-07/0.287, allocations: 0 / 1.091 GB, free: 13.94 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001013/0.2871, allocations: 53.62 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.2871, allocations: 7.938 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.2871, allocations: 0 / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.2872, allocations: 64 / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.122e-05/0.2872, allocations: 15.98 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.2872, allocations: 0 / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.063e-05/0.2873, allocations: 0 / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-06/0.2873, allocations: 7.938 kB / 1.091 GB, free: 13.85 MB / 0.8575 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.464e-05/0.2874, allocations: 110.4 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.021e-05/0.2874, allocations: 11.88 kB / 1.091 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001363/0.2875, allocations: 49.19 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.2875, allocations: 4 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.2876, allocations: 0 / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.2876, allocations: 3.984 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.531e-05/0.2877, allocations: 153.7 kB / 1.091 GB, free: 13.46 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.2877, allocations: 3.984 kB / 1.091 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.571e-05/0.2877, allocations: 4 kB / 1.091 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.218e-06/0.2877, allocations: 3.938 kB / 1.091 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.2878, allocations: 4 kB / 1.091 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.567e-06/0.2878, allocations: 3.938 kB / 1.091 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2878, allocations: 3.938 kB / 1.091 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001355/0.2879, allocations: 77.31 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.332e-05/0.2879, allocations: 88.98 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.438e-05/0.288, allocations: 3.984 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.633e-05/0.288, allocations: 4.031 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.484e-05/0.288, allocations: 0 / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.879e-06/0.288, allocations: 0 / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.985e-05/0.2881, allocations: 79.28 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.5e-07/0.2881, allocations: 4.156 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002174/0.2883, allocations: 31.98 kB / 1.092 GB, free: 13.11 MB / 0.8575 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.0004843/0.2888, allocations: 0.6364 MB / 1.092 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 9.166e-05/0.2889, allocations: 16 kB / 1.092 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/0.2889, allocations: 192 / 1.092 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.939e-05/0.2889, allocations: 15.92 kB / 1.092 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001412/0.2891, allocations: 4.281 kB / 1.092 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009621/0.2901, allocations: 1.139 MB / 1.094 GB, free: 11.18 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002652/0.2903, allocations: 0.6768 MB / 1.094 GB, free: 10.48 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.954e-05/0.2904, allocations: 7.938 kB / 1.094 GB, free: 10.47 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.927e-05/0.2904, allocations: 15.44 kB / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of SimCode: time 2.11e-07/0.2904, allocations: 0 / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02025/0.3107, allocations: 1.739 MB / 1.096 GB, free: 8.863 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.602/7.912, allocations: 9.109 kB / 1.096 GB, free: 8.855 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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