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.006279/0.006279, allocations: 108.4 kB / 15.74 MB, free: 6.449 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.001529/0.001529, allocations: 197 kB / 16.67 MB, free: 6.355 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.407/1.407, allocations: 222.9 MB / 240.4 MB, free: 4.285 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.419/2.419, allocations: 390.2 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 73.16 kB / 0.9504 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2765/0.2778, allocations: 140.4 MB / 1.088 GB, free: 1.922 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck): time 0.002148/0.28, allocations: 0.5921 MB / 1.088 GB, free: 1.332 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0007408/0.2808, allocations: 347.1 kB / 1.088 GB, free: 0.9922 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.596e-05/0.2809, allocations: 0 / 1.088 GB, free: 0.9922 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.533e-05/0.2809, allocations: 0 / 1.088 GB, free: 0.9922 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 3.115e-05/0.281, allocations: 3.938 kB / 1.088 GB, free: 0.9883 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005798/0.2816, allocations: 108.8 kB / 1.089 GB, free: 0.8828 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 5.897e-05/0.2816, allocations: 8 kB / 1.089 GB, free: 0.875 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 4.31e-05/0.2817, allocations: 3.938 kB / 1.089 GB, free: 0.8711 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 2.526e-05/0.2817, allocations: 8 kB / 1.089 GB, free: 0.8633 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 6.088e-05/0.2818, allocations: 7.984 kB / 1.089 GB, free: 0.8555 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.479e-05/0.2818, allocations: 4 kB / 1.089 GB, free: 0.8516 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004091/0.2822, allocations: 267.7 kB / 1.089 GB, free: 0.5898 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.604e-05/0.2822, allocations: 11.97 kB / 1.089 GB, free: 0.5781 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.034e-05/0.2823, allocations: 3.938 kB / 1.089 GB, free: 0.5742 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002021/0.2825, allocations: 83.86 kB / 1.089 GB, free: 0.4922 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2825, allocations: 3.938 kB / 1.089 GB, free: 500 kB / 0.8419 GB Notification: Performance of FrontEnd: time 3.898e-06/0.2825, allocations: 4 kB / 1.089 GB, free: 496 kB / 0.8419 GB Notification: Performance of Transformations before backend: time 6.162e-06/0.2825, allocations: 0 / 1.089 GB, free: 496 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.0003664/0.2829, allocations: 343.5 kB / 1.089 GB, free: 100 kB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 5.253e-05/0.2829, allocations: 16.02 kB / 1.089 GB, free: 84 kB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.632e-05/0.283, allocations: 30.75 kB / 1.089 GB, free: 44 kB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.497e-05/0.283, allocations: 4.875 kB / 1.089 GB, free: 40 kB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001267/0.2832, allocations: 167.2 kB / 1.089 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.138e-05/0.2832, allocations: 4.375 kB / 1.089 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.015e-05/0.2832, allocations: 384 / 1.089 GB, free: 15.84 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000103/0.2833, allocations: 34.25 kB / 1.089 GB, free: 15.8 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.2833, allocations: 3.938 kB / 1.089 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.135e-06/0.2833, allocations: 4 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.2834, allocations: 4 kB / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.408e-05/0.2834, allocations: 0 / 1.09 GB, free: 15.79 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001714/0.2836, allocations: 161.5 kB / 1.09 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.347e-05/0.2836, allocations: 18.61 kB / 1.09 GB, free: 15.55 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.103e-05/0.2836, allocations: 12.92 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006896/0.2843, allocations: 457.5 kB / 1.09 GB, free: 15 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.2844, allocations: 34.56 kB / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.192e-06/0.2844, allocations: 0 / 1.09 GB, free: 14.95 MB / 0.8575 GB Notification: Performance of matching and sorting (n=3): time 0.0005747/0.285, allocations: 258.4 kB / 1.09 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.142e-05/0.285, allocations: 51.41 kB / 1.09 GB, free: 14.59 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.418e-05/0.2851, allocations: 93.86 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.468e-05/0.2851, allocations: 25.7 kB / 1.091 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.449e-05/0.2851, allocations: 84.14 kB / 1.091 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.79e-05/0.2852, allocations: 15.8 kB / 1.091 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.382e-05/0.2852, allocations: 13.97 kB / 1.091 GB, free: 14.33 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001183/0.2853, allocations: 318.8 kB / 1.091 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.936e-05/0.2854, allocations: 7.938 kB / 1.091 GB, free: 14 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.132e-05/0.2854, allocations: 21.7 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.534e-05/0.2855, allocations: 21.72 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.41e-07/0.2855, allocations: 0 / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001084/0.2856, allocations: 57.62 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.2856, allocations: 11.94 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.15e-06/0.2856, allocations: 0 / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.2856, allocations: 0 / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.475e-05/0.2857, allocations: 12 kB / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.51e-06/0.2857, allocations: 0 / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.131e-05/0.2857, allocations: 0 / 1.091 GB, free: 13.86 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.763e-06/0.2857, allocations: 4.078 kB / 1.091 GB, free: 13.86 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 7.387e-05/0.2858, allocations: 118.4 kB / 1.091 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.293e-05/0.2859, allocations: 15.92 kB / 1.091 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001358/0.286, allocations: 53.12 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.286, allocations: 0 / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.286, allocations: 4 kB / 1.091 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.286, allocations: 0 / 1.091 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001101/0.2862, allocations: 153.7 kB / 1.091 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.2862, allocations: 0 / 1.091 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.392e-05/0.2862, allocations: 4 kB / 1.091 GB, free: 13.45 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.752e-06/0.2862, allocations: 7.922 kB / 1.091 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.095e-06/0.2862, allocations: 4 kB / 1.091 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.2863, allocations: 0 / 1.091 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2863, allocations: 0 / 1.091 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001445/0.2864, allocations: 81.06 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.565e-05/0.2865, allocations: 84.95 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.222e-05/0.2865, allocations: 0 / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.67e-05/0.2865, allocations: 0 / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.62e-05/0.2865, allocations: 8.078 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.688e-06/0.2866, allocations: 4 kB / 1.092 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.215e-05/0.2866, allocations: 83.28 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2866, allocations: 0 / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002202/0.2868, allocations: 20 kB / 1.092 GB, free: 13.12 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.0004518/0.2873, allocations: 0.6503 MB / 1.092 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 8.694e-05/0.2874, allocations: 16 kB / 1.092 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2874, allocations: 0 / 1.092 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 1.567e-05/0.2874, allocations: 4 kB / 1.092 GB, free: 12.43 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001436/0.2875, allocations: 9.766 kB / 1.092 GB, free: 12.42 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009246/0.2885, allocations: 1.139 MB / 1.094 GB, free: 11.19 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001883/0.2887, allocations: 0.6767 MB / 1.094 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.244e-05/0.2887, allocations: 15.98 kB / 1.094 GB, free: 10.47 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.102e-05/0.2888, allocations: 15.38 kB / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of SimCode: time 3.51e-07/0.2888, allocations: 0 / 1.094 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01814/0.3069, allocations: 1.743 MB / 1.096 GB, free: 8.859 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.412/7.719, allocations: 13.3 kB / 1.096 GB, free: 8.848 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