Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0009041/0.0009041, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 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.0009552/0.0009552, allocations: 165.9 kB / 22.46 MB, free: 2.105 MB / 18.57 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 0.9345/0.9345, allocations: 177.1 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.725/1.725, allocations: 377.8 MB / 0.6221 GB, free: 8.672 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_12_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 0.981 GB, free: 2.555 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.382e-05/1.532e-05, allocations: 8.891 kB / 0.981 GB, free: 2.547 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.001056/0.001071, allocations: 0.5955 MB / 0.9816 GB, free: 1.953 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0005095/0.001581, allocations: 290.9 kB / 0.9819 GB, free: 1.668 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.697e-05/0.001598, allocations: 0 / 0.9819 GB, free: 1.668 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 1.608e-05/0.001614, allocations: 0 / 0.9819 GB, free: 1.668 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 7.905e-06/0.001622, allocations: 0 / 0.9819 GB, free: 1.668 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004099/0.002032, allocations: 111.6 kB / 0.982 GB, free: 1.559 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 4.337e-05/0.002075, allocations: 0 / 0.982 GB, free: 1.559 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 3.98e-05/0.002115, allocations: 4 kB / 0.982 GB, free: 1.555 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 2.41e-05/0.002139, allocations: 4 kB / 0.982 GB, free: 1.551 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 2.106e-05/0.00216, allocations: 0 / 0.982 GB, free: 1.551 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.544e-05/0.002175, allocations: 0 / 0.982 GB, free: 1.551 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002703/0.002446, allocations: 263.6 kB / 0.9822 GB, free: 1.293 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 1.161e-05/0.002457, allocations: 0 / 0.9822 GB, free: 1.293 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 1.379e-05/0.002471, allocations: 4 kB / 0.9822 GB, free: 1.289 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001515/0.002623, allocations: 123.6 kB / 0.9824 GB, free: 1.168 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 1.873e-06/0.002624, allocations: 0 / 0.9824 GB, free: 1.168 MB / 0.9323 GB Notification: Performance of FrontEnd: time 1.203e-06/0.002626, allocations: 0 / 0.9824 GB, free: 1.168 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 3.687e-06/0.002629, allocations: 3.938 kB / 0.9824 GB, free: 1.164 MB / 0.9323 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.0003151/0.002944, allocations: 258.2 kB / 0.9826 GB, free: 0.8789 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.789e-05/0.002982, allocations: 12.03 kB / 0.9826 GB, free: 0.8672 MB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.601e-05/0.003008, allocations: 30.75 kB / 0.9826 GB, free: 0.8281 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.696e-05/0.003045, allocations: 0.9375 kB / 0.9826 GB, free: 0.8281 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.161e-05/0.003097, allocations: 101.8 kB / 0.9827 GB, free: 0.7031 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.337e-06/0.003106, allocations: 384 / 0.9827 GB, free: 0.7031 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.023e-06/0.003113, allocations: 4.375 kB / 0.9827 GB, free: 0.6992 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.576e-05/0.003189, allocations: 38.25 kB / 0.9828 GB, free: 0.6562 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.003196, allocations: 192 / 0.9828 GB, free: 0.6562 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.403e-06/0.003203, allocations: 384 / 0.9828 GB, free: 0.6562 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.003209, allocations: 8.109 kB / 0.9828 GB, free: 0.6484 MB / 0.9323 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.065e-05/0.00323, allocations: 7.938 kB / 0.9828 GB, free: 0.6406 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.435e-05/0.003324, allocations: 112.8 kB / 0.9829 GB, free: 500 kB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 3.442e-05/0.003359, allocations: 22.55 kB / 0.9829 GB, free: 468 kB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.389e-05/0.003373, allocations: 8.859 kB / 0.9829 GB, free: 456 kB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002728/0.003646, allocations: 52 kB / 0.983 GB, free: 404 kB / 0.9323 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.831e-05/0.003664, allocations: 30.56 kB / 0.983 GB, free: 364 kB / 0.9323 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.003665, allocations: 0 / 0.983 GB, free: 364 kB / 0.9323 GB Notification: Performance of matching and sorting (n=1): time 0.0001148/0.00378, allocations: 33.64 kB / 0.983 GB, free: 324 kB / 0.9323 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.807e-05/0.003808, allocations: 59.34 kB / 0.9831 GB, free: 252 kB / 0.9323 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.973e-05/0.003847, allocations: 89.86 kB / 0.9832 GB, free: 152 kB / 0.9323 GB Notification: Performance of collectPreVariables (initialization): time 8.526e-06/0.003856, allocations: 25.7 kB / 0.9832 GB, free: 120 kB / 0.9323 GB Notification: Performance of collectInitialEqns (initialization): time 1.71e-05/0.003873, allocations: 80.14 kB / 0.9833 GB, free: 36 kB / 0.9323 GB Notification: Performance of collectInitialBindings (initialization): time 2.173e-05/0.003895, allocations: 8.062 kB / 0.9833 GB, free: 28 kB / 0.9323 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.335e-05/0.003918, allocations: 21.7 kB / 0.9833 GB, free: 0 / 0.9323 GB Notification: Performance of setup shared object (initialization): time 7.92e-05/0.003997, allocations: 310.8 kB / 0.9836 GB, free: 15.69 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.805e-06/0.004005, allocations: 0 / 0.9836 GB, free: 15.69 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.057e-06/0.004009, allocations: 0 / 0.9836 GB, free: 15.69 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.188e-05/0.004031, allocations: 8.859 kB / 0.9836 GB, free: 15.68 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.004033, allocations: 0 / 0.9836 GB, free: 15.68 MB / 0.948 GB Notification: Performance of matching and sorting (n=1) (initialization): time 4.215e-05/0.004075, allocations: 37.64 kB / 0.9837 GB, free: 15.63 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.004087, allocations: 4 kB / 0.9837 GB, free: 15.63 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.004091, allocations: 96 / 0.9837 GB, free: 15.63 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.689e-06/0.004101, allocations: 4 kB / 0.9837 GB, free: 15.62 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.228e-05/0.004143, allocations: 7.984 kB / 0.9837 GB, free: 15.62 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.004149, allocations: 3.938 kB / 0.9837 GB, free: 15.61 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.323e-06/0.004156, allocations: 4 kB / 0.9837 GB, free: 15.61 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.659e-06/0.004161, allocations: 0 / 0.9837 GB, free: 15.61 MB / 0.948 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 4.457e-05/0.004205, allocations: 105.8 kB / 0.9838 GB, free: 15.5 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.157e-06/0.004214, allocations: 4 kB / 0.9838 GB, free: 15.49 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.608e-05/0.00427, allocations: 36.69 kB / 0.9838 GB, free: 15.45 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.004272, allocations: 4.031 kB / 0.9838 GB, free: 15.45 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.004277, allocations: 3.938 kB / 0.9838 GB, free: 15.45 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.004279, allocations: 0 / 0.9838 GB, free: 15.45 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.22e-05/0.004331, allocations: 120.8 kB / 0.9839 GB, free: 15.29 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.004333, allocations: 4 kB / 0.984 GB, free: 15.28 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.3e-06/0.004338, allocations: 0 / 0.984 GB, free: 15.28 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.283e-06/0.004339, allocations: 3.938 kB / 0.984 GB, free: 15.28 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.849e-06/0.004344, allocations: 0 / 0.984 GB, free: 15.28 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.61e-07/0.004344, allocations: 4 kB / 0.984 GB, free: 15.27 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.004346, allocations: 3.938 kB / 0.984 GB, free: 15.27 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.493e-05/0.004391, allocations: 57.12 kB / 0.984 GB, free: 15.2 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 3.216e-06/0.004394, allocations: 4.031 kB / 0.984 GB, free: 15.19 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.414e-06/0.004402, allocations: 3.938 kB / 0.984 GB, free: 15.19 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.947e-06/0.004406, allocations: 0 / 0.984 GB, free: 15.19 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.068e-05/0.004416, allocations: 3.938 kB / 0.984 GB, free: 15.18 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-06/0.004417, allocations: 0 / 0.984 GB, free: 15.18 MB / 0.948 GB Notification: Performance of sorting global known variables: time 1.882e-05/0.004436, allocations: 83.28 kB / 0.9841 GB, free: 15.1 MB / 0.948 GB Notification: Performance of sort global known variables: time 4e-08/0.004436, allocations: 0 / 0.9841 GB, free: 15.1 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001301/0.004566, allocations: 19.86 kB / 0.9841 GB, free: 15.08 MB / 0.948 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.0002517/0.004818, allocations: 0.6046 MB / 0.9847 GB, free: 14.45 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 5.029e-05/0.004868, allocations: 8 kB / 0.9847 GB, free: 14.44 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.323e-06/0.00487, allocations: 0 / 0.9847 GB, free: 14.44 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 4.128e-06/0.004874, allocations: 4 kB / 0.9847 GB, free: 14.44 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.564e-05/0.00497, allocations: 6.906 kB / 0.9847 GB, free: 14.43 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002118/0.005181, allocations: 110.6 kB / 0.9848 GB, free: 14.29 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.936e-05/0.005211, allocations: 55.22 kB / 0.9849 GB, free: 14.21 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 1.478e-05/0.005225, allocations: 7.984 kB / 0.9849 GB, free: 14.2 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.46e-05/0.00524, allocations: 8.625 kB / 0.9849 GB, free: 14.2 MB / 0.948 GB Notification: Performance of SimCode: time 3.51e-07/0.00524, allocations: 4 kB / 0.9849 GB, free: 14.19 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01351/0.01875, allocations: 1.822 MB / 0.9867 GB, free: 12.49 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.706/6.725, allocations: 9.297 kB / 0.9867 GB, free: 12.49 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.csv --start-time -1 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_12_Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.fmu > Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Functions.Examples.RegNonZeroPower_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Functions_Examples_RegNonZeroPower.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 10.841246926225722]