Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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.Examples.RegNonZeroPower,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_RegNonZeroPower",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.001176/0.001176, allocations: 108 kB / 15.6 MB, free: 132 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.001173/0.001173, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.317/1.317, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.719/2.719, allocations: 469.4 MB / 0.742 GB, free: 7.707 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 63 kB / 0.9083 GB, free: 34.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.289/0.2902, allocations: 159.1 MB / 1.064 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.002707/0.293, allocations: 1.442 MB / 1.065 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.000674/0.2937, allocations: 396.4 kB / 1.065 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.711e-05/0.2937, allocations: 0 / 1.065 GB, free: 12.65 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 3.101e-05/0.2938, allocations: 3.938 kB / 1.065 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.161e-05/0.2939, allocations: 0 / 1.065 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004709/0.2943, allocations: 115.6 kB / 1.066 GB, free: 12.53 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.684e-05/0.2944, allocations: 23.94 kB / 1.066 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 9.299e-05/0.2945, allocations: 15.97 kB / 1.066 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.516e-05/0.2946, allocations: 11.94 kB / 1.066 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.15e-05/0.2946, allocations: 15.92 kB / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.358e-05/0.2946, allocations: 0 / 1.066 GB, free: 12.46 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003675/0.295, allocations: 275.7 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.57e-05/0.295, allocations: 7.984 kB / 1.066 GB, free: 12.19 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.562e-05/0.2951, allocations: 7.938 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002198/0.2953, allocations: 107.8 kB / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.2953, allocations: 0 / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.562e-06/0.2953, allocations: 0 / 1.066 GB, free: 12.07 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.2953, allocations: 4 kB / 1.066 GB, free: 12.07 MB / 0.8262 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.0004487/0.2958, allocations: 363.7 kB / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.2958, allocations: 12.03 kB / 1.066 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.531e-05/0.2959, allocations: 30.75 kB / 1.066 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.371e-05/0.2959, allocations: 4.938 kB / 1.066 GB, free: 11.61 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001114/0.296, allocations: 172.3 kB / 1.067 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.054e-05/0.2961, allocations: 384 / 1.067 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.004e-05/0.2961, allocations: 4.359 kB / 1.067 GB, free: 11.4 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001764/0.2963, allocations: 58.17 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.196e-06/0.2963, allocations: 3.938 kB / 1.067 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.206e-06/0.2963, allocations: 0 / 1.067 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.2963, allocations: 4 kB / 1.067 GB, free: 11.33 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000166/0.2965, allocations: 27.97 kB / 1.067 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003121/0.2968, allocations: 253 kB / 1.067 GB, free: 11 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001279/0.2969, allocations: 46.44 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.444e-05/0.297, allocations: 24.89 kB / 1.067 GB, free: 10.92 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006577/0.2977, allocations: 461.4 kB / 1.067 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.027e-05/0.2977, allocations: 34.56 kB / 1.067 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.2977, allocations: 0 / 1.067 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0003654/0.2981, allocations: 81.64 kB / 1.068 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.785e-05/0.2981, allocations: 59.47 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.664e-05/0.2982, allocations: 105.8 kB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.179e-05/0.2982, allocations: 25.7 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.896e-05/0.2983, allocations: 84.08 kB / 1.068 GB, free: 9.949 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.723e-05/0.2983, allocations: 7.906 kB / 1.068 GB, free: 9.941 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.221e-05/0.2983, allocations: 17.7 kB / 1.068 GB, free: 9.918 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.925e-05/0.2984, allocations: 310.8 kB / 1.068 GB, free: 9.605 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.088e-05/0.2985, allocations: 23.98 kB / 1.068 GB, free: 9.582 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.303e-05/0.2986, allocations: 15.92 kB / 1.068 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001473/0.2988, allocations: 44.81 kB / 1.068 GB, free: 9.52 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/0.2988, allocations: 3.938 kB / 1.068 GB, free: 9.516 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002091/0.299, allocations: 65.73 kB / 1.068 GB, free: 9.445 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.299, allocations: 7.984 kB / 1.068 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.299, allocations: 0 / 1.068 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.299, allocations: 4 kB / 1.068 GB, free: 9.434 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.031e-05/0.2991, allocations: 4 kB / 1.068 GB, free: 9.43 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.2991, allocations: 0 / 1.068 GB, free: 9.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.023e-05/0.2992, allocations: 11.89 kB / 1.068 GB, free: 9.418 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.33e-06/0.2992, allocations: 256 / 1.068 GB, free: 9.418 MB / 0.8262 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 7.915e-05/0.2993, allocations: 123.5 kB / 1.068 GB, free: 9.289 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.908e-05/0.2993, allocations: 4 kB / 1.068 GB, free: 9.285 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002349/0.2996, allocations: 77.17 kB / 1.068 GB, free: 9.203 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.041e-06/0.2996, allocations: 4 kB / 1.068 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.2996, allocations: 0 / 1.068 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.2996, allocations: 0 / 1.068 GB, free: 9.199 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001522/0.2998, allocations: 161.6 kB / 1.069 GB, free: 8.992 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2998, allocations: 0 / 1.069 GB, free: 8.992 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.34e-05/0.2999, allocations: 12.02 kB / 1.069 GB, free: 8.98 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.2999, allocations: 3.938 kB / 1.069 GB, free: 8.977 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.534e-06/0.2999, allocations: 4 kB / 1.069 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.2999, allocations: 0 / 1.069 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.2999, allocations: 0 / 1.069 GB, free: 8.973 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002594/0.3002, allocations: 167.4 kB / 1.069 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.648e-05/0.3002, allocations: 85.05 kB / 1.069 GB, free: 8.691 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.593e-05/0.3002, allocations: 7.984 kB / 1.069 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.853e-05/0.3003, allocations: 0 / 1.069 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.894e-05/0.3003, allocations: 4 kB / 1.069 GB, free: 8.68 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-06/0.3003, allocations: 0 / 1.069 GB, free: 8.68 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.088e-05/0.3004, allocations: 87.27 kB / 1.069 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3004, allocations: 0 / 1.069 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002343/0.3006, allocations: 12 kB / 1.069 GB, free: 8.582 MB / 0.8262 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.0005401/0.3012, allocations: 0.7245 MB / 1.07 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002001/0.3014, allocations: 31.97 kB / 1.07 GB, free: 7.801 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3014, allocations: 8.094 kB / 1.07 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 8.034e-05/0.3015, allocations: 15.98 kB / 1.07 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002659/0.3018, allocations: 9.703 kB / 1.07 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004083/0.3022, allocations: 147.1 kB / 1.07 GB, free: 7.586 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002146/0.3024, allocations: 0.6768 MB / 1.071 GB, free: 6.883 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.775e-05/0.3024, allocations: 8.062 kB / 1.071 GB, free: 6.875 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.14e-05/0.3025, allocations: 7.438 kB / 1.071 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of SimCode: time 2e-07/0.3025, allocations: 0 / 1.071 GB, free: 6.871 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01539/0.3179, allocations: 1.591 MB / 1.072 GB, free: 5.355 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.242/7.56, allocations: 14.11 kB / 1.072 GB, free: 5.344 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Utilities_Math_Examples_RegNonZeroPower.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_RegNonZeroPower.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.RegNonZeroPower.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches