Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001369/0.001369, allocations: 118.6 kB / 17.16 MB, free: 5.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001458/0.001458, allocations: 206.2 kB / 20.13 MB, free: 2.969 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.502/1.502, allocations: 230.6 MB / 253.5 MB, free: 15.12 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.193/3.193, allocations: 0.5003 GB / 0.8026 GB, free: 6.707 MB / 0.6387 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002489/0.002489, allocations: 63.91 kB / 1.165 GB, free: 476 kB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.195/1.198, allocations: 178.9 MB / 1.34 GB, free: 16.25 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.001821/1.199, allocations: 0.5843 MB / 1.341 GB, free: 15.88 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0006786/1.2, allocations: 331 kB / 1.341 GB, free: 15.66 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.844e-05/1.2, allocations: 0 / 1.341 GB, free: 15.66 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 1.852e-05/1.2, allocations: 0 / 1.341 GB, free: 15.66 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 8.455e-06/1.2, allocations: 3.938 kB / 1.341 GB, free: 15.66 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004877/1.201, allocations: 105.9 kB / 1.341 GB, free: 15.62 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 4.373e-05/1.201, allocations: 5.891 kB / 1.341 GB, free: 15.62 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.591e-05/1.201, allocations: 5.891 kB / 1.341 GB, free: 15.62 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 1.224e-05/1.201, allocations: 0.8438 kB / 1.341 GB, free: 15.62 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 2.228e-05/1.201, allocations: 1.031 kB / 1.341 GB, free: 15.62 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.118e-05/1.201, allocations: 0 / 1.341 GB, free: 15.62 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005212/1.201, allocations: 277.2 kB / 1.341 GB, free: 15.55 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.223e-05/1.201, allocations: 0.7031 kB / 1.341 GB, free: 15.55 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 1.565e-05/1.201, allocations: 1.438 kB / 1.341 GB, free: 15.55 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002029/1.202, allocations: 89.72 kB / 1.342 GB, free: 15.52 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/1.202, allocations: 0 / 1.342 GB, free: 15.52 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.174e-06/1.202, allocations: 0 / 1.342 GB, free: 15.52 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.392e-06/1.202, allocations: 5.281 kB / 1.342 GB, free: 15.52 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0002826/1.202, allocations: 331.7 kB / 1.342 GB, free: 15.15 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/1.202, allocations: 9.844 kB / 1.342 GB, free: 15.15 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.683e-05/1.202, allocations: 192 / 1.342 GB, free: 15.15 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.349e-05/1.202, allocations: 35.55 kB / 1.342 GB, free: 15.11 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.269e-05/1.202, allocations: 2.094 kB / 1.342 GB, free: 15.11 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.021e-05/1.202, allocations: 161.9 kB / 1.342 GB, free: 14.91 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.145e-05/1.202, allocations: 5.625 kB / 1.342 GB, free: 14.91 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.692e-06/1.202, allocations: 384 / 1.342 GB, free: 14.91 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.609e-05/1.202, allocations: 37.91 kB / 1.342 GB, free: 14.87 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/1.202, allocations: 0 / 1.342 GB, free: 14.87 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.895e-06/1.202, allocations: 0 / 1.342 GB, free: 14.87 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.589e-06/1.202, allocations: 0 / 1.342 GB, free: 14.87 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.753e-05/1.202, allocations: 2.719 kB / 1.342 GB, free: 14.87 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.852e-05/1.202, allocations: 147.8 kB / 1.342 GB, free: 14.68 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 3.841e-05/1.202, allocations: 21.33 kB / 1.342 GB, free: 14.65 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.535e-05/1.202, allocations: 14.59 kB / 1.342 GB, free: 14.64 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004257/1.203, allocations: 425.2 kB / 1.343 GB, free: 14.16 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.863e-05/1.203, allocations: 35.3 kB / 1.343 GB, free: 14.12 MB / 1.061 GB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/1.203, allocations: 1.25 kB / 1.343 GB, free: 14.12 MB / 1.061 GB Notification: Performance of matching and sorting (n=1): time 0.0001347/1.203, allocations: 31.67 kB / 1.343 GB, free: 14.09 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.387e-05/1.203, allocations: 56.44 kB / 1.343 GB, free: 14.02 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.33e-05/1.203, allocations: 90.56 kB / 1.343 GB, free: 13.93 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 5.47e-06/1.203, allocations: 25.7 kB / 1.343 GB, free: 13.89 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 1.042e-05/1.203, allocations: 85.2 kB / 1.343 GB, free: 13.81 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.443e-05/1.203, allocations: 11.89 kB / 1.343 GB, free: 13.8 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.479e-05/1.203, allocations: 12.92 kB / 1.343 GB, free: 13.78 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.088e-05/1.203, allocations: 311.5 kB / 1.343 GB, free: 13.47 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.129e-05/1.203, allocations: 4.875 kB / 1.343 GB, free: 13.46 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.773e-06/1.203, allocations: 7.078 kB / 1.343 GB, free: 13.46 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.323e-05/1.203, allocations: 6.922 kB / 1.343 GB, free: 13.45 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/1.203, allocations: 0 / 1.343 GB, free: 13.45 MB / 1.061 GB Notification: Performance of matching and sorting (n=1) (initialization): time 5.843e-05/1.203, allocations: 41.02 kB / 1.343 GB, free: 13.41 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/1.203, allocations: 10.2 kB / 1.343 GB, free: 13.41 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.837e-06/1.203, allocations: 0 / 1.343 GB, free: 13.41 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/1.203, allocations: 0.9688 kB / 1.343 GB, free: 13.41 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.747e-05/1.203, allocations: 2.766 kB / 1.343 GB, free: 13.41 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.767e-06/1.203, allocations: 4.094 kB / 1.343 GB, free: 13.41 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.127e-06/1.203, allocations: 1.281 kB / 1.343 GB, free: 13.41 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.339e-06/1.203, allocations: 4.547 kB / 1.343 GB, free: 13.4 MB / 1.061 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 (1): * Single equations (assignments): 1 * 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 3.811e-05/1.203, allocations: 107.6 kB / 1.343 GB, free: 13.29 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.857e-05/1.203, allocations: 4.938 kB / 1.343 GB, free: 13.29 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.453e-05/1.203, allocations: 36.3 kB / 1.344 GB, free: 13.25 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-06/1.203, allocations: 0.7031 kB / 1.344 GB, free: 13.25 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/1.203, allocations: 1.219 kB / 1.344 GB, free: 13.25 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.904e-06/1.203, allocations: 4 kB / 1.344 GB, free: 13.25 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.694e-05/1.203, allocations: 152.9 kB / 1.344 GB, free: 13.05 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/1.203, allocations: 0 / 1.344 GB, free: 13.05 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.161e-05/1.204, allocations: 3.047 kB / 1.344 GB, free: 13.05 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/1.204, allocations: 3.938 kB / 1.344 GB, free: 13.05 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.369e-06/1.204, allocations: 0.9062 kB / 1.344 GB, free: 13.05 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/1.204, allocations: 0 / 1.344 GB, free: 13.05 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/1.204, allocations: 1.859 kB / 1.344 GB, free: 13.05 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.327e-05/1.204, allocations: 65.88 kB / 1.344 GB, free: 12.97 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 1.91e-05/1.204, allocations: 77.91 kB / 1.344 GB, free: 12.88 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.717e-06/1.204, allocations: 4.734 kB / 1.344 GB, free: 12.88 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.582e-06/1.204, allocations: 1.5 kB / 1.344 GB, free: 12.88 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.045e-06/1.204, allocations: 0.7969 kB / 1.344 GB, free: 12.88 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-06/1.204, allocations: 0.9688 kB / 1.344 GB, free: 12.88 MB / 1.061 GB Notification: Performance of sorting global known variables: time 1.3e-05/1.204, allocations: 75.28 kB / 1.344 GB, free: 12.8 MB / 1.061 GB Notification: Performance of sort global known variables: time 4e-08/1.204, allocations: 3.938 kB / 1.344 GB, free: 12.8 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0001894/1.204, allocations: 10.64 kB / 1.344 GB, free: 12.8 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (1): * Single equations (assignments): 1 * 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.0002895/1.204, allocations: 0.6175 MB / 1.345 GB, free: 12.18 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 4.832e-05/1.204, allocations: 3.906 kB / 1.345 GB, free: 12.18 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 1.312e-06/1.204, allocations: 1.938 kB / 1.345 GB, free: 12.18 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 8.095e-06/1.204, allocations: 5.219 kB / 1.345 GB, free: 12.18 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001152/1.204, allocations: 1.641 kB / 1.345 GB, free: 12.18 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000274/1.205, allocations: 118.1 kB / 1.345 GB, free: 12.04 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.345e-05/1.205, allocations: 0.6718 MB / 1.345 GB, free: 11.34 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 1.508e-05/1.205, allocations: 5.422 kB / 1.345 GB, free: 11.34 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.131e-05/1.205, allocations: 11.38 kB / 1.345 GB, free: 11.33 MB / 1.061 GB Notification: Performance of SimCode: time 2.9e-07/1.205, allocations: 3.938 kB / 1.345 GB, free: 11.32 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01743/1.222, allocations: 1.24 MB / 1.347 GB, free: 10.96 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.361/9.584, allocations: 9.953 kB / 1.347 GB, free: 10.96 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower_fmu --startTime=-1 --stopTime=1 --stepSize=0.0008 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.fmu > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 16.387302630988415]