Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck,fileNamePrefix="Buildings_11_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.001358/0.001357, 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.001401/0.001401, allocations: 194.1 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.349/1.349, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.625/2.625, allocations: 469.8 MB / 0.7424 GB, free: 7.387 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001803/0.001803, allocations: 69.14 kB / 0.9087 GB, free: 34.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2859/0.2877, allocations: 159.2 MB / 1.064 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck): time 0.001768/0.2895, allocations: 0.5901 MB / 1.065 GB, free: 13.57 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0006551/0.2902, allocations: 342.7 kB / 1.065 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.16e-05/0.2902, allocations: 0 / 1.065 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.309e-05/0.2902, allocations: 7.938 kB / 1.065 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 1.809e-05/0.2903, allocations: 0 / 1.065 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004216/0.2907, allocations: 112.4 kB / 1.065 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 4.151e-05/0.2907, allocations: 7.984 kB / 1.065 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.196e-05/0.2908, allocations: 3.938 kB / 1.065 GB, free: 13.11 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.136e-05/0.2908, allocations: 8 kB / 1.065 GB, free: 13.1 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.344e-05/0.2909, allocations: 11.86 kB / 1.065 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.082e-05/0.2909, allocations: 4 kB / 1.065 GB, free: 13.08 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003665/0.2912, allocations: 275.6 kB / 1.065 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.498e-06/0.2913, allocations: 0 / 1.065 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.845e-05/0.2913, allocations: 4 kB / 1.065 GB, free: 12.81 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001708/0.2915, allocations: 99.77 kB / 1.066 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2915, allocations: 0 / 1.066 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.002e-06/0.2915, allocations: 0 / 1.066 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.244e-06/0.2915, allocations: 0 / 1.066 GB, free: 12.71 MB / 0.8262 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.0003603/0.2919, allocations: 335.6 kB / 1.066 GB, free: 12.33 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.435e-05/0.2919, allocations: 12.03 kB / 1.066 GB, free: 12.32 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.135e-05/0.2919, allocations: 34.75 kB / 1.066 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.318e-05/0.292, allocations: 0.9375 kB / 1.066 GB, free: 12.28 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001301/0.2921, allocations: 172.6 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.128e-05/0.2921, allocations: 4.375 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.172e-05/0.2922, allocations: 8.266 kB / 1.066 GB, free: 12.06 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.251e-05/0.2923, allocations: 30.27 kB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.2923, allocations: 3.938 kB / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.093e-06/0.2923, allocations: 0 / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.457e-06/0.2923, allocations: 0 / 1.066 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.494e-05/0.2923, allocations: 11.94 kB / 1.066 GB, free: 12.01 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001584/0.2925, allocations: 153.7 kB / 1.066 GB, free: 11.81 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.599e-05/0.2925, allocations: 22.61 kB / 1.066 GB, free: 11.78 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.932e-05/0.2926, allocations: 12.91 kB / 1.066 GB, free: 11.76 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007093/0.2933, allocations: 453.5 kB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.798e-05/0.2933, allocations: 34.56 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.2933, allocations: 3.938 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0004909/0.2938, allocations: 254.6 kB / 1.067 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.279e-05/0.2939, allocations: 55.34 kB / 1.067 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.545e-05/0.2939, allocations: 97.84 kB / 1.067 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.022e-05/0.2939, allocations: 29.7 kB / 1.067 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.618e-05/0.294, allocations: 80.14 kB / 1.067 GB, free: 10.59 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.043e-05/0.294, allocations: 7.812 kB / 1.067 GB, free: 10.58 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.395e-05/0.2941, allocations: 17.72 kB / 1.067 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001244/0.2942, allocations: 318.8 kB / 1.068 GB, free: 10.24 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.429e-05/0.2942, allocations: 4.125 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.531e-05/0.2942, allocations: 21.72 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.91e-05/0.2943, allocations: 25.7 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.02e-07/0.2943, allocations: 0 / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.487e-05/0.2944, allocations: 49.64 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.187e-05/0.2944, allocations: 11.88 kB / 1.068 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.038e-06/0.2944, allocations: 8.062 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.048e-05/0.2944, allocations: 0 / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.553e-05/0.2945, allocations: 7.984 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.503e-06/0.2945, allocations: 4 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.617e-05/0.2945, allocations: 0 / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.219e-06/0.2945, allocations: 0 / 1.068 GB, free: 10.09 MB / 0.8262 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.564e-05/0.2946, allocations: 117.8 kB / 1.068 GB, free: 9.965 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.53e-05/0.2947, allocations: 3.938 kB / 1.068 GB, free: 9.961 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00012/0.2948, allocations: 57.17 kB / 1.068 GB, free: 9.898 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.2948, allocations: 0 / 1.068 GB, free: 9.898 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.2948, allocations: 0 / 1.068 GB, free: 9.898 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.924e-06/0.2948, allocations: 0 / 1.068 GB, free: 9.898 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001115/0.2949, allocations: 153.7 kB / 1.068 GB, free: 9.699 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.308e-06/0.2949, allocations: 8 kB / 1.068 GB, free: 9.691 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.542e-05/0.295, allocations: 4 kB / 1.068 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.088e-06/0.295, allocations: 3.938 kB / 1.068 GB, free: 9.684 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.31e-06/0.295, allocations: 0 / 1.068 GB, free: 9.684 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.295, allocations: 4 kB / 1.068 GB, free: 9.68 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.295, allocations: 0 / 1.068 GB, free: 9.68 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001363/0.2951, allocations: 89.17 kB / 1.068 GB, free: 9.574 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.83e-05/0.2952, allocations: 85.03 kB / 1.068 GB, free: 9.473 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.018e-05/0.2952, allocations: 3.938 kB / 1.068 GB, free: 9.469 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.359e-05/0.2953, allocations: 0 / 1.068 GB, free: 9.469 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.714e-05/0.2953, allocations: 4 kB / 1.068 GB, free: 9.465 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-06/0.2953, allocations: 4 kB / 1.068 GB, free: 9.461 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.473e-05/0.2953, allocations: 79.34 kB / 1.068 GB, free: 9.383 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2953, allocations: 0 / 1.068 GB, free: 9.383 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001978/0.2955, allocations: 27.98 kB / 1.068 GB, free: 9.355 MB / 0.8262 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.0004982/0.296, allocations: 0.6455 MB / 1.069 GB, free: 8.68 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 8.728e-05/0.2961, allocations: 24.14 kB / 1.069 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2961, allocations: 0 / 1.069 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.736e-05/0.2962, allocations: 7.938 kB / 1.069 GB, free: 8.648 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001313/0.2963, allocations: 9.562 kB / 1.069 GB, free: 8.641 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009406/0.2973, allocations: 1.145 MB / 1.07 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002755/0.2975, allocations: 0.6768 MB / 1.071 GB, free: 6.707 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.884e-05/0.2976, allocations: 8 kB / 1.071 GB, free: 6.699 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.524e-05/0.2976, allocations: 11.44 kB / 1.071 GB, free: 6.688 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.2976, allocations: 0 / 1.071 GB, free: 6.688 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5966/0.8943, allocations: 1.714 MB / 1.072 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.54/16.44, allocations: 2.875 kB / 1.072 GB, free: 5.094 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=400 --tolerance=1e-08 Buildings_11_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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