Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck,fileNamePrefix="Buildings_latest_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.001554/0.001554, allocations: 108 kB / 15.61 MB, free: 152 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.00183/0.00183, allocations: 194.6 kB / 16.53 MB, free: 6.699 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.323/1.323, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.544/2.544, allocations: 461.9 MB / 0.7346 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001333/0.001333, allocations: 70.14 kB / 0.8992 GB, free: 36.97 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2547/0.256, allocations: 157.4 MB / 1.053 GB, free: 8.258 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck): time 0.001862/0.2579, allocations: 0.5914 MB / 1.053 GB, free: 7.664 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006298/0.2586, allocations: 350.7 kB / 1.054 GB, free: 7.32 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.918e-05/0.2586, allocations: 0 / 1.054 GB, free: 7.32 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.073e-05/0.2586, allocations: 0 / 1.054 GB, free: 7.32 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 2.244e-05/0.2587, allocations: 0 / 1.054 GB, free: 7.32 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004772/0.2591, allocations: 115.5 kB / 1.054 GB, free: 7.207 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 4.432e-05/0.2592, allocations: 15.98 kB / 1.054 GB, free: 7.191 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.794e-05/0.2592, allocations: 4 kB / 1.054 GB, free: 7.188 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.685e-05/0.2593, allocations: 7.938 kB / 1.054 GB, free: 7.18 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.853e-05/0.2593, allocations: 7.922 kB / 1.054 GB, free: 7.172 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.081e-05/0.2593, allocations: 0 / 1.054 GB, free: 7.172 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003559/0.2597, allocations: 275.6 kB / 1.054 GB, free: 6.902 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.041e-05/0.2597, allocations: 0 / 1.054 GB, free: 6.902 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 1.996e-05/0.2597, allocations: 8 kB / 1.054 GB, free: 6.895 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001675/0.2599, allocations: 87.8 kB / 1.054 GB, free: 6.809 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.2599, allocations: 3.984 kB / 1.054 GB, free: 6.805 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.383e-06/0.2599, allocations: 0 / 1.054 GB, free: 6.805 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.859e-06/0.2599, allocations: 0 / 1.054 GB, free: 6.805 MB / 0.8106 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.0003178/0.2603, allocations: 343.6 kB / 1.055 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.2603, allocations: 12.62 kB / 1.055 GB, free: 6.406 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.871e-05/0.2603, allocations: 30.75 kB / 1.055 GB, free: 6.367 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.784e-05/0.2604, allocations: 0.9375 kB / 1.055 GB, free: 6.367 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.682e-05/0.2605, allocations: 168.6 kB / 1.055 GB, free: 6.164 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.2605, allocations: 8.359 kB / 1.055 GB, free: 6.156 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.077e-05/0.2605, allocations: 4.312 kB / 1.055 GB, free: 6.152 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.579e-05/0.2606, allocations: 38.25 kB / 1.055 GB, free: 6.109 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.695e-06/0.2606, allocations: 7.938 kB / 1.055 GB, free: 6.102 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.965e-06/0.2607, allocations: 0 / 1.055 GB, free: 6.102 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.2607, allocations: 0 / 1.055 GB, free: 6.102 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.152e-05/0.2607, allocations: 4 kB / 1.055 GB, free: 6.098 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001412/0.2608, allocations: 153.7 kB / 1.055 GB, free: 5.898 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.424e-05/0.2609, allocations: 18.61 kB / 1.055 GB, free: 5.871 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.917e-05/0.2609, allocations: 12.86 kB / 1.055 GB, free: 5.855 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006715/0.2616, allocations: 461.4 kB / 1.056 GB, free: 5.312 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.679e-05/0.2616, allocations: 38.56 kB / 1.056 GB, free: 5.266 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.242e-06/0.2616, allocations: 4 kB / 1.056 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0004652/0.2621, allocations: 254.2 kB / 1.056 GB, free: 4.961 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.506e-05/0.2621, allocations: 51.41 kB / 1.056 GB, free: 4.898 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.645e-05/0.2622, allocations: 101.8 kB / 1.056 GB, free: 4.789 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.464e-05/0.2622, allocations: 25.7 kB / 1.056 GB, free: 4.758 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.439e-05/0.2623, allocations: 80.14 kB / 1.056 GB, free: 4.676 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.914e-05/0.2623, allocations: 8.156 kB / 1.056 GB, free: 4.668 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.92e-05/0.2623, allocations: 21.72 kB / 1.056 GB, free: 4.641 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.142e-05/0.2624, allocations: 318.8 kB / 1.056 GB, free: 4.32 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.772e-05/0.2624, allocations: 4 kB / 1.056 GB, free: 4.316 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.61e-05/0.2625, allocations: 17.72 kB / 1.056 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.248e-05/0.2625, allocations: 25.66 kB / 1.056 GB, free: 4.262 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.81e-07/0.2625, allocations: 4 kB / 1.056 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.347e-05/0.2626, allocations: 53.69 kB / 1.056 GB, free: 4.199 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.519e-05/0.2626, allocations: 7.938 kB / 1.056 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.2626, allocations: 15.86 kB / 1.057 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.2627, allocations: 0 / 1.057 GB, free: 4.176 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.408e-05/0.2627, allocations: 4 kB / 1.057 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/0.2627, allocations: 7.984 kB / 1.057 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.789e-05/0.2628, allocations: 0 / 1.057 GB, free: 4.164 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.661e-06/0.2628, allocations: 0 / 1.057 GB, free: 4.164 MB / 0.8106 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.064e-05/0.2628, allocations: 113.9 kB / 1.057 GB, free: 4.043 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.496e-05/0.2629, allocations: 3.938 kB / 1.057 GB, free: 4.039 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001209/0.263, allocations: 53.19 kB / 1.057 GB, free: 3.98 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.263, allocations: 3.938 kB / 1.057 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.263, allocations: 0 / 1.057 GB, free: 3.977 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.263, allocations: 3.984 kB / 1.057 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.83e-05/0.2631, allocations: 149.7 kB / 1.057 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.2631, allocations: 3.984 kB / 1.057 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.045e-05/0.2632, allocations: 12 kB / 1.057 GB, free: 3.762 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.2632, allocations: 3.938 kB / 1.057 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-06/0.2632, allocations: 0 / 1.057 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.2632, allocations: 3.938 kB / 1.057 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.2632, allocations: 0 / 1.057 GB, free: 3.754 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001308/0.2633, allocations: 81.33 kB / 1.057 GB, free: 3.656 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.013e-05/0.2634, allocations: 84.95 kB / 1.057 GB, free: 3.555 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.321e-05/0.2634, allocations: 3.984 kB / 1.057 GB, free: 3.551 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.668e-05/0.2634, allocations: 4.062 kB / 1.057 GB, free: 3.547 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.662e-05/0.2635, allocations: 4 kB / 1.057 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.661e-06/0.2635, allocations: 0 / 1.057 GB, free: 3.543 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 2.598e-05/0.2635, allocations: 79.22 kB / 1.057 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2635, allocations: 0 / 1.057 GB, free: 3.465 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002072/0.2637, allocations: 27.98 kB / 1.057 GB, free: 3.438 MB / 0.8106 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.0004156/0.2641, allocations: 0.6477 MB / 1.058 GB, free: 2.758 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 7.672e-05/0.2642, allocations: 15.94 kB / 1.058 GB, free: 2.742 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 6.121e-06/0.2642, allocations: 4 kB / 1.058 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 1.698e-05/0.2643, allocations: 7.984 kB / 1.058 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001327/0.2644, allocations: 1.562 kB / 1.058 GB, free: 2.73 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000816/0.2652, allocations: 1.159 MB / 1.059 GB, free: 1.484 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001739/0.2654, allocations: 0.6729 MB / 1.06 GB, free: 0.7852 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.819e-05/0.2654, allocations: 3.984 kB / 1.06 GB, free: 0.7812 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.625e-05/0.2655, allocations: 11.44 kB / 1.06 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of SimCode: time 2.91e-07/0.2655, allocations: 0 / 1.06 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.128/1.393, allocations: 1.717 MB / 1.061 GB, free: 15.18 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.76/12.15, allocations: 6.547 kB / 1.061 GB, free: 15.17 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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