Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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.RegNonZeroPowerDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck,fileNamePrefix="Buildings_10_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.0009755/0.0009755, allocations: 90.52 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.005771/0.005771, allocations: 171.1 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.323/1.323, allocations: 223.3 MB / 240.3 MB, free: 5.332 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.527/2.527, allocations: 437.8 MB / 0.7121 GB, free: 6.992 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003317/0.0003321, allocations: 12 kB / 0.873 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6161/0.6164, allocations: 153.8 MB / 1.023 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck): time 0.0007846/0.6173, allocations: 333.5 kB / 1.023 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.000786/0.6181, allocations: 366.8 kB / 1.024 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.35e-05/0.6181, allocations: 4 kB / 1.024 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.207e-05/0.6181, allocations: 0 / 1.024 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 2.178e-05/0.6182, allocations: 0 / 1.024 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003932/0.6186, allocations: 71.84 kB / 1.024 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 4.386e-05/0.6186, allocations: 7.938 kB / 1.024 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.002e-05/0.6187, allocations: 7.984 kB / 1.024 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 1.753e-05/0.6187, allocations: 8 kB / 1.024 GB, free: 15.03 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.537e-05/0.6187, allocations: 7.938 kB / 1.024 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.198e-05/0.6188, allocations: 7.922 kB / 1.024 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003581/0.6191, allocations: 275.6 kB / 1.024 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.223e-05/0.6191, allocations: 4 kB / 1.024 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.71e-05/0.6192, allocations: 25.7 kB / 1.024 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001622/0.6193, allocations: 87.8 kB / 1.024 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.6193, allocations: 0 / 1.024 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of FrontEnd: time 3.417e-06/0.6194, allocations: 4 kB / 1.024 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.096e-06/0.6194, allocations: 0 / 1.024 GB, free: 14.62 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002956/0.6197, allocations: 347.5 kB / 1.025 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.6197, allocations: 8.031 kB / 1.025 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.244e-05/0.6197, allocations: 30.75 kB / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.62e-05/0.6198, allocations: 4.938 kB / 1.025 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.913e-05/0.6199, allocations: 166.6 kB / 1.025 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.145e-06/0.6199, allocations: 384 / 1.025 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.693e-05/0.6199, allocations: 4.375 kB / 1.025 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.202e-05/0.62, allocations: 42.19 kB / 1.025 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.814e-06/0.62, allocations: 7.938 kB / 1.025 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.934e-06/0.6201, allocations: 0 / 1.025 GB, free: 13.92 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.6201, allocations: 3.984 kB / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.733e-05/0.6201, allocations: 0 / 1.025 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001393/0.6202, allocations: 153.7 kB / 1.025 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 4.214e-05/0.6203, allocations: 18.61 kB / 1.025 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.609e-05/0.6203, allocations: 8.922 kB / 1.025 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006873/0.621, allocations: 469.5 kB / 1.026 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.376e-05/0.621, allocations: 30.56 kB / 1.026 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.062e-06/0.621, allocations: 7.938 kB / 1.026 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0004895/0.6215, allocations: 250.2 kB / 1.026 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.428e-05/0.6216, allocations: 51.41 kB / 1.026 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.152e-05/0.6216, allocations: 101.8 kB / 1.026 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.402e-05/0.6217, allocations: 25.7 kB / 1.026 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.143e-05/0.6217, allocations: 84.47 kB / 1.026 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.236e-05/0.6217, allocations: 19.84 kB / 1.026 GB, free: 12.47 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.292e-05/0.6218, allocations: 9.719 kB / 1.026 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 7.998e-05/0.6218, allocations: 310.8 kB / 1.026 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.66e-05/0.6219, allocations: 8 kB / 1.026 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.363e-05/0.6219, allocations: 17.7 kB / 1.026 GB, free: 12.11 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.358e-05/0.6219, allocations: 29.66 kB / 1.026 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.52e-07/0.6219, allocations: 4 kB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=4) (initialization): time 9.143e-05/0.622, allocations: 53.59 kB / 1.026 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.335e-05/0.6221, allocations: 7.938 kB / 1.026 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.647e-06/0.6221, allocations: 0 / 1.026 GB, free: 12.01 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.025e-05/0.6221, allocations: 4 kB / 1.026 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.154e-05/0.6221, allocations: 7.938 kB / 1.026 GB, free: 12 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.6222, allocations: 3.938 kB / 1.026 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.179e-05/0.6222, allocations: 8 kB / 1.026 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.78e-06/0.6222, allocations: 0 / 1.026 GB, free: 11.98 MB / 0.7794 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 5.787e-05/0.6223, allocations: 109.9 kB / 1.027 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.545e-05/0.6223, allocations: 11.92 kB / 1.027 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001184/0.6224, allocations: 53.19 kB / 1.027 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.6224, allocations: 0 / 1.027 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/0.6224, allocations: 0 / 1.027 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.6224, allocations: 0 / 1.027 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.993e-05/0.6225, allocations: 149.7 kB / 1.027 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.6225, allocations: 0 / 1.027 GB, free: 11.6 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.076e-05/0.6226, allocations: 8 kB / 1.027 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.6226, allocations: 11.88 kB / 1.027 GB, free: 11.58 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.194e-06/0.6226, allocations: 3.984 kB / 1.027 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.6226, allocations: 0 / 1.027 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.6226, allocations: 0 / 1.027 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001326/0.6228, allocations: 77.12 kB / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.472e-05/0.6228, allocations: 85.08 kB / 1.027 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.242e-05/0.6228, allocations: 4 kB / 1.027 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.899e-05/0.6229, allocations: 8.062 kB / 1.027 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.416e-05/0.6229, allocations: 4.219 kB / 1.027 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.071e-06/0.6229, allocations: 7.938 kB / 1.027 GB, free: 11.36 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.851e-05/0.6229, allocations: 75.28 kB / 1.027 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.11e-07/0.6229, allocations: 0 / 1.027 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002086/0.6232, allocations: 24 kB / 1.027 GB, free: 11.26 MB / 0.7794 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.0004537/0.6236, allocations: 0.6592 MB / 1.028 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 7.01e-05/0.6237, allocations: 15.98 kB / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.6237, allocations: 0 / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.783e-05/0.6237, allocations: 11.94 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001405/0.6239, allocations: 5.547 kB / 1.028 GB, free: 10.54 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000831/0.6247, allocations: 1.123 MB / 1.029 GB, free: 9.328 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002045/0.6249, allocations: 0.6809 MB / 1.03 GB, free: 8.621 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.091e-05/0.625, allocations: 4 kB / 1.03 GB, free: 8.617 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.644e-05/0.625, allocations: 11.44 kB / 1.03 GB, free: 8.605 MB / 0.7794 GB Notification: Performance of SimCode: time 4.31e-07/0.625, allocations: 4 kB / 1.03 GB, free: 8.602 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0108/0.6358, allocations: 1.536 MB / 1.031 GB, free: 7.238 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001795/0.636, allocations: 234.1 kB / 1.031 GB, free: 6.98 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.682/2.318, allocations: 64 / 1.031 GB, free: 6.98 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.fmu > Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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