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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001225/0.001225, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.009978/0.009978, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.361/1.361, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.669/2.669, allocations: 462.7 MB / 0.7364 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003406/0.0003406, allocations: 14.31 kB / 0.9029 GB, free: 36.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2924/0.2928, allocations: 159.6 MB / 1.059 GB, free: 4.844 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck): time 0.000674/0.2935, allocations: 334.8 kB / 1.059 GB, free: 4.516 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0006689/0.2942, allocations: 374.9 kB / 1.059 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.182e-05/0.2942, allocations: 0 / 1.059 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.028e-05/0.2942, allocations: 0 / 1.059 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 1.962e-05/0.2943, allocations: 0 / 1.059 GB, free: 4.148 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003308/0.2946, allocations: 79.84 kB / 1.06 GB, free: 4.07 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 3.828e-05/0.2946, allocations: 8 kB / 1.06 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.683e-05/0.2947, allocations: 0 / 1.06 GB, free: 4.062 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 1.828e-05/0.2947, allocations: 7.984 kB / 1.06 GB, free: 4.055 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.268e-05/0.2948, allocations: 3.938 kB / 1.06 GB, free: 4.051 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.515e-05/0.2948, allocations: 3.984 kB / 1.06 GB, free: 4.047 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003493/0.2951, allocations: 275.6 kB / 1.06 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.321e-05/0.2952, allocations: 7.984 kB / 1.06 GB, free: 3.77 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.992e-05/0.2952, allocations: 29.7 kB / 1.06 GB, free: 3.734 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0001676/0.2954, allocations: 87.8 kB / 1.06 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2954, allocations: 0 / 1.06 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.753e-06/0.2954, allocations: 0 / 1.06 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 3.507e-06/0.2954, allocations: 0 / 1.06 GB, free: 3.648 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.0003266/0.2957, allocations: 335.6 kB / 1.06 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.397e-05/0.2958, allocations: 15.97 kB / 1.06 GB, free: 3.254 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.574e-05/0.2958, allocations: 34.73 kB / 1.06 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.686e-05/0.2959, allocations: 0.9375 kB / 1.06 GB, free: 3.211 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001111/0.296, allocations: 172.7 kB / 1.06 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.004e-05/0.296, allocations: 384 / 1.06 GB, free: 3.004 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.945e-05/0.296, allocations: 8.312 kB / 1.06 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.184e-05/0.2961, allocations: 34.25 kB / 1.061 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.2961, allocations: 3.938 kB / 1.061 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.287e-06/0.2962, allocations: 0 / 1.061 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.2962, allocations: 4 kB / 1.061 GB, free: 2.949 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.11e-05/0.2962, allocations: 3.938 kB / 1.061 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001589/0.2964, allocations: 161.6 kB / 1.061 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 4.282e-05/0.2964, allocations: 18.61 kB / 1.061 GB, free: 2.711 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.43e-05/0.2964, allocations: 12.92 kB / 1.061 GB, free: 2.695 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006729/0.2971, allocations: 465.4 kB / 1.061 GB, free: 2.148 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/0.2972, allocations: 34.56 kB / 1.061 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=2): time 1.213e-06/0.2972, allocations: 0 / 1.061 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0004469/0.2976, allocations: 254.2 kB / 1.061 GB, free: 1.805 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.646e-05/0.2977, allocations: 55.62 kB / 1.061 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.401e-05/0.2977, allocations: 97.8 kB / 1.062 GB, free: 1.633 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.347e-05/0.2977, allocations: 25.7 kB / 1.062 GB, free: 1.602 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 2.567e-05/0.2978, allocations: 80.14 kB / 1.062 GB, free: 1.52 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.502e-05/0.2978, allocations: 11.89 kB / 1.062 GB, free: 1.508 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.293e-05/0.2978, allocations: 13.72 kB / 1.062 GB, free: 1.488 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 8.522e-05/0.2979, allocations: 314.8 kB / 1.062 GB, free: 1.172 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.634e-05/0.2979, allocations: 4 kB / 1.062 GB, free: 1.168 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.72e-05/0.298, allocations: 25.86 kB / 1.062 GB, free: 1.137 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.025e-05/0.298, allocations: 21.72 kB / 1.062 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.11e-07/0.298, allocations: 0 / 1.062 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.407e-05/0.2981, allocations: 65.53 kB / 1.062 GB, free: 1.039 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.848e-05/0.2981, allocations: 9.344 kB / 1.062 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.768e-06/0.2982, allocations: 0 / 1.062 GB, free: 1.031 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.909e-06/0.2982, allocations: 4.062 kB / 1.062 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.476e-05/0.2982, allocations: 8 kB / 1.062 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.2982, allocations: 0 / 1.062 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.782e-05/0.2983, allocations: 0 / 1.062 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.015e-05/0.2983, allocations: 11.98 kB / 1.062 GB, free: 1.008 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.475e-05/0.2984, allocations: 109.8 kB / 1.062 GB, free: 0.8906 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.241e-05/0.2984, allocations: 3.938 kB / 1.062 GB, free: 0.8867 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001191/0.2985, allocations: 61.17 kB / 1.062 GB, free: 0.8203 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.2985, allocations: 4 kB / 1.062 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.537e-06/0.2985, allocations: 0 / 1.062 GB, free: 0.8164 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.2985, allocations: 3.938 kB / 1.062 GB, free: 0.8125 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.287e-05/0.2986, allocations: 153.7 kB / 1.062 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.2986, allocations: 0 / 1.062 GB, free: 0.6133 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.105e-05/0.2987, allocations: 4 kB / 1.062 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.828e-06/0.2987, allocations: 3.938 kB / 1.062 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.59e-06/0.2987, allocations: 0 / 1.062 GB, free: 0.6055 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.544e-06/0.2987, allocations: 4 kB / 1.062 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.903e-06/0.2987, allocations: 0 / 1.062 GB, free: 0.6016 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001294/0.2989, allocations: 88.98 kB / 1.063 GB, free: 0.4961 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.003e-05/0.2989, allocations: 81.05 kB / 1.063 GB, free: 408 kB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.126e-05/0.2989, allocations: 0 / 1.063 GB, free: 408 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.804e-05/0.299, allocations: 4.031 kB / 1.063 GB, free: 404 kB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.114e-05/0.299, allocations: 0 / 1.063 GB, free: 404 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-06/0.299, allocations: 0 / 1.063 GB, free: 404 kB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.389e-05/0.299, allocations: 83.27 kB / 1.063 GB, free: 320 kB / 0.8106 GB Notification: Performance of sort global known variables: time 1.7e-07/0.299, allocations: 4.156 kB / 1.063 GB, free: 316 kB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002039/0.2992, allocations: 28 kB / 1.063 GB, free: 288 kB / 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.0004427/0.2997, allocations: 0.6435 MB / 1.063 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 7.241e-05/0.2998, allocations: 15.98 kB / 1.063 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.2998, allocations: 4.188 kB / 1.063 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.804e-05/0.2998, allocations: 11.94 kB / 1.063 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001354/0.2999, allocations: 4 kB / 1.063 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008042/0.3008, allocations: 1.134 MB / 1.065 GB, free: 14.35 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000199/0.301, allocations: 0.677 MB / 1.065 GB, free: 13.65 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.906e-05/0.301, allocations: 4 kB / 1.065 GB, free: 13.64 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.42e-05/0.301, allocations: 11.44 kB / 1.065 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of SimCode: time 4e-07/0.301, allocations: 0 / 1.065 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01075/0.3118, allocations: 1.558 MB / 1.067 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001982/0.312, allocations: 233.6 kB / 1.067 GB, free: 12 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.839/2.151, allocations: 0 / 1.067 GB, free: 12 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