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.004196/0.004196, allocations: 103.3 kB / 15.74 MB, free: 5.957 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.001022/0.001022, allocations: 192.2 kB / 16.67 MB, free: 5.879 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.358/1.358, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.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.221/2.221, allocations: 390.3 MB / 0.6648 GB, free: 0.6133 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 63.91 kB / 0.9504 GB, free: 8.023 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7114/0.7126, allocations: 140.4 MB / 1.088 GB, free: 5.469 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPowerDerivative_2_Check): time 0.00156/0.7142, allocations: 0.6161 MB / 1.088 GB, free: 5.086 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0005942/0.7148, allocations: 349.6 kB / 1.088 GB, free: 4.859 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.683e-05/0.7148, allocations: 0 / 1.088 GB, free: 4.859 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.587e-05/0.7148, allocations: 3.938 kB / 1.088 GB, free: 4.855 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 2.422e-05/0.7149, allocations: 1.25 kB / 1.088 GB, free: 4.855 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004401/0.7153, allocations: 122.7 kB / 1.089 GB, free: 4.812 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 5.856e-05/0.7154, allocations: 26.8 kB / 1.089 GB, free: 4.801 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.812e-05/0.7154, allocations: 6.891 kB / 1.089 GB, free: 4.797 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.704e-05/0.7155, allocations: 10.64 kB / 1.089 GB, free: 4.793 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.615e-05/0.7155, allocations: 14.75 kB / 1.089 GB, free: 4.785 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.294e-05/0.7156, allocations: 2.094 kB / 1.089 GB, free: 4.785 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004244/0.716, allocations: 273.5 kB / 1.089 GB, free: 4.719 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.739e-05/0.716, allocations: 11.56 kB / 1.089 GB, free: 4.711 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.37e-05/0.716, allocations: 8.281 kB / 1.089 GB, free: 4.707 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001978/0.7162, allocations: 108 kB / 1.089 GB, free: 4.668 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.7163, allocations: 1.125 kB / 1.089 GB, free: 4.668 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.583e-06/0.7163, allocations: 0 / 1.089 GB, free: 4.668 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.588e-06/0.7163, allocations: 0 / 1.089 GB, free: 4.668 MB / 0.8575 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.0003496/0.7166, allocations: 355.5 kB / 1.089 GB, free: 4.297 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.7167, allocations: 10.88 kB / 1.089 GB, free: 4.297 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.804e-05/0.7167, allocations: 36.5 kB / 1.089 GB, free: 4.254 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.182e-05/0.7168, allocations: 7.578 kB / 1.089 GB, free: 4.25 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.788e-05/0.7168, allocations: 167.6 kB / 1.09 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.008e-05/0.7168, allocations: 2.25 kB / 1.09 GB, free: 4.051 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.272e-05/0.7169, allocations: 8.172 kB / 1.09 GB, free: 4.047 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001078/0.717, allocations: 49.22 kB / 1.09 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.717, allocations: 9.188 kB / 1.09 GB, free: 4 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.959e-06/0.717, allocations: 0.9688 kB / 1.09 GB, free: 4 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.731e-06/0.717, allocations: 1.438 kB / 1.09 GB, free: 4 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.985e-05/0.7171, allocations: 18.91 kB / 1.09 GB, free: 3.996 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000126/0.7172, allocations: 174.6 kB / 1.09 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 9.561e-05/0.7173, allocations: 60.45 kB / 1.09 GB, free: 3.75 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.24e-05/0.7174, allocations: 28.69 kB / 1.09 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005682/0.7179, allocations: 459.6 kB / 1.09 GB, free: 3.262 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.937e-05/0.718, allocations: 36.31 kB / 1.09 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.153e-06/0.718, allocations: 0 / 1.09 GB, free: 3.219 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.001101/0.7191, allocations: 0.5992 MB / 1.091 GB, free: 2.691 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.445e-05/0.7191, allocations: 52.53 kB / 1.091 GB, free: 2.629 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.961e-05/0.7192, allocations: 100.3 kB / 1.091 GB, free: 2.527 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.049e-05/0.7192, allocations: 26.83 kB / 1.091 GB, free: 2.496 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.434e-05/0.7192, allocations: 84.89 kB / 1.091 GB, free: 2.41 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.066e-05/0.7192, allocations: 39.52 kB / 1.091 GB, free: 2.379 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.861e-05/0.7193, allocations: 24.36 kB / 1.091 GB, free: 2.359 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.133e-05/0.7193, allocations: 319 kB / 1.092 GB, free: 2.043 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.373e-05/0.7194, allocations: 22.5 kB / 1.092 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.218e-05/0.7194, allocations: 31.45 kB / 1.092 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001133/0.7195, allocations: 54.7 kB / 1.092 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.7195, allocations: 0 / 1.092 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001449/0.7197, allocations: 100.5 kB / 1.092 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.7197, allocations: 5.812 kB / 1.092 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.7197, allocations: 1.156 kB / 1.092 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.7197, allocations: 0 / 1.092 GB, free: 1.934 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001109/0.7199, allocations: 29.33 kB / 1.092 GB, free: 1.926 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.7199, allocations: 4.453 kB / 1.092 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.207e-05/0.7199, allocations: 0.9375 kB / 1.092 GB, free: 1.922 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.187e-06/0.7199, allocations: 3.703 kB / 1.092 GB, free: 1.922 MB / 0.8575 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 5.564e-05/0.72, allocations: 113.9 kB / 1.092 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.694e-05/0.72, allocations: 10.28 kB / 1.092 GB, free: 1.797 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001962/0.7202, allocations: 109.3 kB / 1.092 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.596e-06/0.7202, allocations: 6.422 kB / 1.092 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.7202, allocations: 0.8438 kB / 1.092 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.7202, allocations: 0.7969 kB / 1.092 GB, free: 1.723 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003363/0.7206, allocations: 349.2 kB / 1.092 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-06/0.7206, allocations: 0 / 1.092 GB, free: 1.395 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001159/0.7207, allocations: 24.48 kB / 1.092 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.7207, allocations: 0 / 1.092 GB, free: 1.391 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.7207, allocations: 6.344 kB / 1.092 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.7207, allocations: 4.594 kB / 1.092 GB, free: 1.383 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.7208, allocations: 1.406 kB / 1.092 GB, free: 1.383 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002465/0.721, allocations: 223.8 kB / 1.093 GB, free: 1.215 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.681e-05/0.721, allocations: 87.27 kB / 1.093 GB, free: 1.117 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.556e-05/0.7211, allocations: 5.469 kB / 1.093 GB, free: 1.113 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.036e-05/0.7212, allocations: 6.609 kB / 1.093 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.14e-05/0.7212, allocations: 6.25 kB / 1.093 GB, free: 1.109 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.117e-06/0.7212, allocations: 7.5 kB / 1.093 GB, free: 1.105 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.297e-05/0.7212, allocations: 83.16 kB / 1.093 GB, free: 1.027 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7212, allocations: 0 / 1.093 GB, free: 1.027 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002918/0.7215, allocations: 47.16 kB / 1.093 GB, free: 1.016 MB / 0.8575 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.0006089/0.7221, allocations: 0.7887 MB / 1.094 GB, free: 16.31 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001573/0.7223, allocations: 66.08 kB / 1.094 GB, free: 16.29 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.7223, allocations: 0 / 1.094 GB, free: 16.29 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 5.176e-05/0.7224, allocations: 28.02 kB / 1.094 GB, free: 16.29 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002172/0.7226, allocations: 12.11 kB / 1.094 GB, free: 16.28 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001233/0.7238, allocations: 1.406 MB / 1.095 GB, free: 15.01 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002234/0.7241, allocations: 0.6853 MB / 1.096 GB, free: 14.32 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.848e-05/0.7241, allocations: 20.61 kB / 1.096 GB, free: 14.3 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.513e-05/0.7242, allocations: 17.5 kB / 1.096 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of SimCode: time 2.2e-07/0.7242, allocations: 0 / 1.096 GB, free: 14.29 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01985/0.744, allocations: 2.473 MB / 1.098 GB, free: 13.91 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.372/10.12, allocations: 8.703 kB / 1.098 GB, free: 13.9 MB / 0.8731 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