Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.0009881/0.0009881, 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.0009977/0.0009977, allocations: 193.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.206/1.206, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.112/2.112, allocations: 390.2 MB / 0.6647 GB, free: 476 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001239/0.001239, allocations: 63.89 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5222/0.5234, allocations: 140.4 MB / 0.9497 GB, free: 9.426 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.001838/0.5253, allocations: 0.6217 MB / 0.9503 GB, free: 8.941 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0005629/0.5259, allocations: 352.5 kB / 0.9507 GB, free: 8.668 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.651e-05/0.526, allocations: 1.281 kB / 0.9507 GB, free: 8.668 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.307e-05/0.526, allocations: 3.938 kB / 0.9507 GB, free: 8.664 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.78e-05/0.526, allocations: 3.938 kB / 0.9507 GB, free: 8.66 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.00045/0.5265, allocations: 118.1 kB / 0.9508 GB, free: 8.59 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.485e-05/0.5265, allocations: 22.14 kB / 0.9508 GB, free: 8.578 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 3.641e-05/0.5266, allocations: 6.469 kB / 0.9508 GB, free: 8.574 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 3.218e-05/0.5266, allocations: 8.969 kB / 0.9508 GB, free: 8.57 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.433e-05/0.5267, allocations: 19.44 kB / 0.9508 GB, free: 8.555 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.181e-05/0.5267, allocations: 3.125 kB / 0.9508 GB, free: 8.555 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000314/0.527, allocations: 275.6 kB / 0.9511 GB, free: 8.402 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.249e-05/0.527, allocations: 1.125 kB / 0.9511 GB, free: 8.402 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.104e-05/0.527, allocations: 15.28 kB / 0.9511 GB, free: 8.391 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001567/0.5272, allocations: 107.4 kB / 0.9512 GB, free: 8.316 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.5272, allocations: 0 / 0.9512 GB, free: 8.316 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.072e-06/0.5272, allocations: 0 / 0.9512 GB, free: 8.316 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.5272, allocations: 1.219 kB / 0.9512 GB, free: 8.316 MB / 0.7169 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.0003014/0.5275, allocations: 359.1 kB / 0.9516 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/0.5276, allocations: 10.53 kB / 0.9516 GB, free: 7.934 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.295e-05/0.5276, allocations: 31.88 kB / 0.9516 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.747e-05/0.5277, allocations: 3.344 kB / 0.9516 GB, free: 7.895 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.307e-05/0.5277, allocations: 173.5 kB / 0.9518 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.5277, allocations: 7.094 kB / 0.9518 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.026e-05/0.5278, allocations: 2.656 kB / 0.9518 GB, free: 7.684 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.814e-05/0.5279, allocations: 57.78 kB / 0.9518 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.5279, allocations: 3.938 kB / 0.9518 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.636e-06/0.5279, allocations: 1.062 kB / 0.9518 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.5279, allocations: 1.125 kB / 0.9518 GB, free: 7.629 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.532e-05/0.528, allocations: 19.08 kB / 0.9519 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001137/0.5281, allocations: 169.9 kB / 0.952 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.662e-05/0.5282, allocations: 62.59 kB / 0.9521 GB, free: 7.367 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.777e-05/0.5282, allocations: 31.02 kB / 0.9521 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005707/0.5288, allocations: 464.1 kB / 0.9526 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.801e-05/0.5288, allocations: 31.59 kB / 0.9526 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.143e-06/0.5288, allocations: 0 / 0.9526 GB, free: 6.809 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001084/0.5299, allocations: 0.5902 MB / 0.9532 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.943e-05/0.5299, allocations: 54 kB / 0.9532 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.737e-05/0.53, allocations: 97.81 kB / 0.9533 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.917e-06/0.53, allocations: 29.7 kB / 0.9533 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.313e-05/0.53, allocations: 81.27 kB / 0.9534 GB, free: 5.98 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.719e-05/0.53, allocations: 40.67 kB / 0.9535 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.381e-05/0.5301, allocations: 28.86 kB / 0.9535 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.258e-05/0.5301, allocations: 317.4 kB / 0.9538 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.52e-05/0.5302, allocations: 27.05 kB / 0.9538 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.283e-05/0.5302, allocations: 25.8 kB / 0.9538 GB, free: 5.574 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.474e-05/0.5303, allocations: 59.61 kB / 0.9539 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.5303, allocations: 1.094 kB / 0.9539 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001305/0.5304, allocations: 99.27 kB / 0.954 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.5304, allocations: 4.781 kB / 0.954 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/0.5304, allocations: 0 / 0.954 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.5305, allocations: 1.25 kB / 0.954 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.195e-05/0.5306, allocations: 22.09 kB / 0.954 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.429e-06/0.5306, allocations: 0 / 0.954 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.192e-05/0.5306, allocations: 5.125 kB / 0.954 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.855e-06/0.5306, allocations: 10.55 kB / 0.954 GB, free: 5.465 MB / 0.7169 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 4.37e-05/0.5307, allocations: 112.8 kB / 0.9541 GB, free: 5.348 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.651e-05/0.5307, allocations: 11.78 kB / 0.9541 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001514/0.5308, allocations: 106.6 kB / 0.9543 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.5309, allocations: 1.469 kB / 0.9543 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.807e-06/0.5309, allocations: 0 / 0.9543 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.5309, allocations: 5.672 kB / 0.9543 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002591/0.5311, allocations: 353.1 kB / 0.9546 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.5311, allocations: 0 / 0.9546 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.61e-05/0.5312, allocations: 21.41 kB / 0.9546 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.5313, allocations: 9.078 kB / 0.9546 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.5313, allocations: 1.125 kB / 0.9546 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.113e-06/0.5313, allocations: 3.984 kB / 0.9546 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.5313, allocations: 1.312 kB / 0.9546 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001844/0.5315, allocations: 218 kB / 0.9548 GB, free: 4.715 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.917e-05/0.5315, allocations: 91.72 kB / 0.9549 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.351e-05/0.5315, allocations: 1.344 kB / 0.9549 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.486e-05/0.5316, allocations: 5.406 kB / 0.9549 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.574e-05/0.5316, allocations: 8.141 kB / 0.9549 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.742e-06/0.5316, allocations: 2.781 kB / 0.9549 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.607e-05/0.5317, allocations: 78.06 kB / 0.955 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of sort global known variables: time 6.21e-07/0.5317, allocations: 0 / 0.955 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002495/0.5319, allocations: 52.27 kB / 0.9551 GB, free: 4.508 MB / 0.7169 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.0004027/0.5323, allocations: 0.7912 MB / 0.9558 GB, free: 3.789 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001275/0.5325, allocations: 71.66 kB / 0.9559 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.5325, allocations: 0 / 0.9559 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.195e-05/0.5325, allocations: 32.64 kB / 0.9559 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002017/0.5327, allocations: 7.938 kB / 0.9559 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008354/0.5336, allocations: 1.397 MB / 0.9573 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.233e-05/0.5337, allocations: 0.6874 MB / 0.958 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 4.374e-05/0.5337, allocations: 14.95 kB / 0.958 GB, free: 1.73 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.992e-05/0.5337, allocations: 16.06 kB / 0.958 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of SimCode: time 2.2e-07/0.5337, allocations: 4 kB / 0.958 GB, free: 1.715 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01751/0.5513, allocations: 2.45 MB / 0.9604 GB, free: 480 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.335/7.886, allocations: 11.44 kB / 0.9604 GB, free: 472 kB / 0.7169 GB (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check_fmu --startTime=-1 --stopTime=1 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check.fmu > Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPowerDerivative_2_Check.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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