Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.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.0008377/0.0008377, 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.0008807/0.0008807, allocations: 169.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.9197/0.9197, allocations: 177.1 MB / 202.8 MB, free: 5.727 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.799/1.799, allocations: 377.8 MB / 0.6221 GB, free: 8.613 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.Examples.RegNonZeroPower,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 0.981 GB, free: 2.555 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.62e-05/1.791e-05, allocations: 6.219 kB / 0.981 GB, free: 2.547 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.001933/0.00195, allocations: 1.47 MB / 0.9824 GB, free: 1.07 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0005179/0.002468, allocations: 358.6 kB / 0.9827 GB, free: 0.7188 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.029e-05/0.002499, allocations: 0 / 0.9827 GB, free: 0.7188 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 2.66e-05/0.002525, allocations: 7.938 kB / 0.9827 GB, free: 0.7109 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 3.972e-05/0.002565, allocations: 3.938 kB / 0.9827 GB, free: 0.707 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003564/0.002921, allocations: 115.6 kB / 0.9829 GB, free: 0.5938 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 6.611e-05/0.002987, allocations: 23.92 kB / 0.9829 GB, free: 0.5703 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 8.786e-05/0.003075, allocations: 7.984 kB / 0.9829 GB, free: 0.5625 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 5.513e-05/0.00313, allocations: 15.94 kB / 0.9829 GB, free: 0.5469 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 3.286e-05/0.003163, allocations: 7.984 kB / 0.9829 GB, free: 0.5391 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.333e-05/0.003177, allocations: 0 / 0.9829 GB, free: 0.5391 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002534/0.00343, allocations: 267.6 kB / 0.9832 GB, free: 284 kB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 1.329e-05/0.003443, allocations: 0 / 0.9832 GB, free: 284 kB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 1.746e-05/0.003461, allocations: 11.98 kB / 0.9832 GB, free: 272 kB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001794/0.00364, allocations: 139.5 kB / 0.9833 GB, free: 132 kB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.003642, allocations: 0 / 0.9833 GB, free: 132 kB / 0.9323 GB Notification: Performance of FrontEnd: time 1.213e-06/0.003644, allocations: 0 / 0.9833 GB, free: 132 kB / 0.9323 GB Notification: Performance of Transformations before backend: time 4.448e-06/0.003648, allocations: 4 kB / 0.9833 GB, free: 128 kB / 0.9323 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.000348/0.003996, allocations: 282.1 kB / 0.9836 GB, free: 15.82 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.004035, allocations: 8.031 kB / 0.9836 GB, free: 15.81 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.167e-05/0.004066, allocations: 34.73 kB / 0.9836 GB, free: 15.77 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.125e-05/0.004108, allocations: 4.938 kB / 0.9836 GB, free: 15.76 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.652e-05/0.004184, allocations: 117.7 kB / 0.9837 GB, free: 15.62 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.021e-05/0.004194, allocations: 8.375 kB / 0.9837 GB, free: 15.61 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.214e-06/0.004202, allocations: 384 / 0.9837 GB, free: 15.61 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001297/0.004331, allocations: 50.23 kB / 0.9838 GB, free: 15.56 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-06/0.004338, allocations: 192 / 0.9838 GB, free: 15.56 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.045e-06/0.004346, allocations: 384 / 0.9838 GB, free: 15.56 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.004351, allocations: 4.125 kB / 0.9838 GB, free: 15.55 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.863e-05/0.00444, allocations: 35.91 kB / 0.9838 GB, free: 15.52 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002594/0.004699, allocations: 220 kB / 0.984 GB, free: 15.26 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 8.548e-05/0.004785, allocations: 42.55 kB / 0.9841 GB, free: 15.21 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.525e-05/0.00483, allocations: 24.84 kB / 0.9841 GB, free: 15.18 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003204/0.00515, allocations: 87.86 kB / 0.9842 GB, free: 15.1 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.169e-05/0.005172, allocations: 38.48 kB / 0.9842 GB, free: 15.05 MB / 0.948 GB Notification: Performance of pre-optimization done (n=2): time 1.443e-06/0.005173, allocations: 0 / 0.9842 GB, free: 15.05 MB / 0.948 GB Notification: Performance of matching and sorting (n=2): time 0.0002343/0.005408, allocations: 81.59 kB / 0.9843 GB, free: 14.96 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.535e-05/0.005433, allocations: 55.41 kB / 0.9844 GB, free: 14.9 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.309e-05/0.005486, allocations: 101.8 kB / 0.9845 GB, free: 14.79 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 8.415e-06/0.005494, allocations: 29.7 kB / 0.9845 GB, free: 14.75 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 3.3e-05/0.005527, allocations: 84.27 kB / 0.9846 GB, free: 14.67 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.687e-05/0.005544, allocations: 11.94 kB / 0.9846 GB, free: 14.66 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.431e-05/0.005569, allocations: 13.72 kB / 0.9846 GB, free: 14.64 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.26e-05/0.005641, allocations: 310.8 kB / 0.9849 GB, free: 14.32 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.484e-05/0.005686, allocations: 19.98 kB / 0.9849 GB, free: 14.3 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.669e-05/0.005723, allocations: 15.97 kB / 0.9849 GB, free: 14.29 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.011e-05/0.005803, allocations: 40.89 kB / 0.985 GB, free: 14.25 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.005805, allocations: 7.938 kB / 0.985 GB, free: 14.24 MB / 0.948 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001177/0.005922, allocations: 73.55 kB / 0.985 GB, free: 14.16 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/0.005936, allocations: 6.969 kB / 0.985 GB, free: 14.16 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.00594, allocations: 0 / 0.985 GB, free: 14.16 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.005952, allocations: 4 kB / 0.985 GB, free: 14.15 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.012e-05/0.006012, allocations: 4 kB / 0.9851 GB, free: 14.15 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.731e-06/0.006018, allocations: 3.984 kB / 0.9851 GB, free: 14.14 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.33e-05/0.006041, allocations: 8.031 kB / 0.9851 GB, free: 14.14 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.879e-06/0.006046, allocations: 0 / 0.9851 GB, free: 14.14 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 (2): * Single equations (assignments): 2 * 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.266e-05/0.006099, allocations: 113.8 kB / 0.9852 GB, free: 14.02 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.054e-05/0.006119, allocations: 3.938 kB / 0.9852 GB, free: 14.01 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001376/0.006257, allocations: 81.2 kB / 0.9853 GB, free: 13.93 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.285e-06/0.006259, allocations: 0 / 0.9853 GB, free: 13.93 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.006264, allocations: 0 / 0.9853 GB, free: 13.93 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.006267, allocations: 4 kB / 0.9853 GB, free: 13.93 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001018/0.006369, allocations: 128.8 kB / 0.9854 GB, free: 13.76 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.00637, allocations: 0 / 0.9854 GB, free: 13.76 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.92e-05/0.0064, allocations: 16.22 kB / 0.9854 GB, free: 13.74 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.006402, allocations: 3.938 kB / 0.9854 GB, free: 13.74 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.006409, allocations: 4 kB / 0.9854 GB, free: 13.73 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.00641, allocations: 0 / 0.9854 GB, free: 13.73 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.006411, allocations: 0 / 0.9854 GB, free: 13.73 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001374/0.006549, allocations: 167.4 kB / 0.9856 GB, free: 13.55 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.981e-06/0.006555, allocations: 3.938 kB / 0.9856 GB, free: 13.55 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.498e-06/0.006564, allocations: 4.031 kB / 0.9856 GB, free: 13.55 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.83e-05/0.006603, allocations: 15.92 kB / 0.9856 GB, free: 13.53 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.968e-05/0.006632, allocations: 0 / 0.9856 GB, free: 13.53 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.128e-06/0.006636, allocations: 7.938 kB / 0.9856 GB, free: 13.52 MB / 0.948 GB Notification: Performance of sorting global known variables: time 2.508e-05/0.006661, allocations: 79.28 kB / 0.9857 GB, free: 13.45 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.81e-07/0.006662, allocations: 0 / 0.9857 GB, free: 13.45 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0001665/0.006828, allocations: 23.92 kB / 0.9857 GB, free: 13.42 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 (2): * Single equations (assignments): 2 * 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.0003784/0.007206, allocations: 0.7046 MB / 0.9864 GB, free: 12.69 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001272/0.007334, allocations: 43.89 kB / 0.9864 GB, free: 12.64 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.007335, allocations: 0 / 0.9864 GB, free: 12.64 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 3.837e-05/0.007373, allocations: 15.98 kB / 0.9864 GB, free: 12.63 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002103/0.007584, allocations: 8 kB / 0.9864 GB, free: 12.62 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003224/0.007906, allocations: 138.7 kB / 0.9866 GB, free: 12.45 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.124e-05/0.007947, allocations: 67.34 kB / 0.9866 GB, free: 12.36 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 1.878e-05/0.007966, allocations: 3.984 kB / 0.9866 GB, free: 12.36 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.106e-05/0.007997, allocations: 16.48 kB / 0.9867 GB, free: 12.34 MB / 0.948 GB Notification: Performance of SimCode: time 4.01e-07/0.007998, allocations: 0 / 0.9867 GB, free: 12.34 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01735/0.02535, allocations: 2.269 MB / 0.9889 GB, free: 10.2 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.974/6.999, allocations: 12.67 kB / 0.9889 GB, free: 10.2 MB / 0.948 GB " [Timeout remaining time 293] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_12_Buildings_Utilities_Math_Examples_RegNonZeroPower.fmu > Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Utilities.Math.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: 11.250458127819002]