Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.RegNonZeroPowerDerivative_2_Check,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check",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.0009481/0.000948, allocations: 91.06 kB / 15.36 MB, free: 0.7383 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.006398/0.006398, allocations: 172.4 kB / 16.26 MB, free: 6.613 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.296/1.296, allocations: 223.3 MB / 240.3 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.571/2.571, allocations: 437.8 MB / 0.7121 GB, free: 7.012 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003308/0.0003311, allocations: 12 kB / 0.873 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.629/0.6294, allocations: 153.8 MB / 1.023 GB, free: 15.88 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.0006709/0.6301, allocations: 357.3 kB / 1.023 GB, free: 15.52 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0007089/0.6308, allocations: 374.9 kB / 1.024 GB, free: 15.16 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.641e-05/0.6308, allocations: 4 kB / 1.024 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.202e-05/0.6309, allocations: 0 / 1.024 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 2.746e-05/0.6309, allocations: 4 kB / 1.024 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003825/0.6313, allocations: 79.45 kB / 1.024 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 5.468e-05/0.6313, allocations: 27.92 kB / 1.024 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.785e-05/0.6314, allocations: 0 / 1.024 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.521e-05/0.6314, allocations: 11.94 kB / 1.024 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.139e-05/0.6315, allocations: 19.91 kB / 1.024 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.525e-05/0.6315, allocations: 4 kB / 1.024 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003814/0.6319, allocations: 275.7 kB / 1.024 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.336e-05/0.6319, allocations: 3.984 kB / 1.024 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.11e-05/0.632, allocations: 37.64 kB / 1.024 GB, free: 14.7 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001803/0.6321, allocations: 99.77 kB / 1.024 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.6322, allocations: 0 / 1.024 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.443e-06/0.6322, allocations: 0 / 1.024 GB, free: 14.6 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.256e-06/0.6322, allocations: 0 / 1.024 GB, free: 14.6 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003839/0.6326, allocations: 361.8 kB / 1.025 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.6326, allocations: 8.031 kB / 1.025 GB, free: 14.19 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.566e-05/0.6326, allocations: 42.69 kB / 1.025 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.929e-05/0.6327, allocations: 0.9375 kB / 1.025 GB, free: 14.14 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001033/0.6328, allocations: 172.3 kB / 1.025 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.887e-06/0.6328, allocations: 384 / 1.025 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.301e-05/0.6329, allocations: 4.375 kB / 1.025 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001123/0.633, allocations: 54.17 kB / 1.025 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.36e-05/0.633, allocations: 7.938 kB / 1.025 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.618e-06/0.633, allocations: 0 / 1.025 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.633, allocations: 4 kB / 1.025 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.354e-05/0.6331, allocations: 23.92 kB / 1.025 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001654/0.6333, allocations: 173.6 kB / 1.025 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000105/0.6334, allocations: 58.5 kB / 1.025 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.44e-05/0.6334, allocations: 28.84 kB / 1.025 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006612/0.6341, allocations: 461.5 kB / 1.026 GB, free: 12.97 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.428e-05/0.6341, allocations: 30.56 kB / 1.026 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.6341, allocations: 0 / 1.026 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.001244/0.6354, allocations: 0.5917 MB / 1.026 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.455e-05/0.6354, allocations: 55.41 kB / 1.026 GB, free: 12.18 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.788e-05/0.6355, allocations: 101.8 kB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/0.6355, allocations: 29.7 kB / 1.027 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.203e-05/0.6356, allocations: 84.23 kB / 1.027 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 5.204e-05/0.6356, allocations: 47.33 kB / 1.027 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.853e-05/0.6356, allocations: 17.72 kB / 1.027 GB, free: 11.88 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.15e-05/0.6357, allocations: 322.8 kB / 1.027 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.885e-05/0.6358, allocations: 16 kB / 1.027 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.783e-05/0.6358, allocations: 23.98 kB / 1.027 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001005/0.6359, allocations: 60.78 kB / 1.027 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.11e-07/0.6359, allocations: 0 / 1.027 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001542/0.6361, allocations: 93.62 kB / 1.027 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.6361, allocations: 8 kB / 1.027 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.6361, allocations: 4 kB / 1.027 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.026e-05/0.6362, allocations: 0 / 1.027 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.6363, allocations: 19.98 kB / 1.027 GB, free: 11.33 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.138e-06/0.6363, allocations: 8 kB / 1.027 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.597e-05/0.6363, allocations: 7.938 kB / 1.027 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.977e-06/0.6363, allocations: 4 kB / 1.027 GB, free: 11.31 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (13): * Single equations (assignments): 13 * 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.378e-05/0.6364, allocations: 109.8 kB / 1.027 GB, free: 11.19 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.917e-05/0.6364, allocations: 15.78 kB / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001859/0.6366, allocations: 109.6 kB / 1.027 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.6366, allocations: 0 / 1.027 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.6367, allocations: 0 / 1.027 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.6367, allocations: 0 / 1.027 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003723/0.637, allocations: 362.5 kB / 1.028 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.637, allocations: 0 / 1.028 GB, free: 10.65 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001094/0.6372, allocations: 19.98 kB / 1.028 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.6372, allocations: 0 / 1.028 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.163e-05/0.6372, allocations: 8 kB / 1.028 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.6372, allocations: 0 / 1.028 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.6372, allocations: 7.938 kB / 1.028 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002476/0.6375, allocations: 222.9 kB / 1.028 GB, free: 10.39 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.173e-05/0.6375, allocations: 81.12 kB / 1.028 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.601e-05/0.6375, allocations: 8 kB / 1.028 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.276e-05/0.6376, allocations: 3.984 kB / 1.028 GB, free: 10.28 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.815e-05/0.6377, allocations: 7.938 kB / 1.028 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.485e-06/0.6377, allocations: 4 kB / 1.028 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.353e-05/0.6377, allocations: 91.33 kB / 1.028 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6377, allocations: 0 / 1.028 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002833/0.638, allocations: 40 kB / 1.028 GB, free: 10.14 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (y_comp,der_y_comp) * 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 (11): * Single equations (assignments): 11 * 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.0005976/0.6386, allocations: 0.7903 MB / 1.029 GB, free: 9.316 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001359/0.6388, allocations: 63.92 kB / 1.029 GB, free: 9.254 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.6388, allocations: 4.062 kB / 1.029 GB, free: 9.25 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.687e-05/0.6388, allocations: 27.98 kB / 1.029 GB, free: 9.223 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002264/0.639, allocations: 8 kB / 1.029 GB, free: 9.215 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001213/0.6403, allocations: 1.41 MB / 1.03 GB, free: 7.73 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002118/0.6405, allocations: 0.6887 MB / 1.031 GB, free: 7.016 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.245e-05/0.6406, allocations: 12 kB / 1.031 GB, free: 7.004 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.148e-05/0.6406, allocations: 19.42 kB / 1.031 GB, free: 6.984 MB / 0.7794 GB Notification: Performance of SimCode: time 2.9e-07/0.6406, allocations: 0 / 1.031 GB, free: 6.984 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01276/0.6534, allocations: 2.27 MB / 1.033 GB, free: 4.898 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003012/0.6537, allocations: 236.3 kB / 1.034 GB, free: 4.641 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.782/2.436, allocations: 4.062 kB / 1.034 GB, free: 4.637 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.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(der(x)),der(der_y),der(der_y_comp),der(x),der(y),der(y_comp),der_err,der_y,der_y_comp,err,n,time,x,y,y_comp