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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-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.004887/0.004887, allocations: 97.47 kB / 15.73 MB, free: 6.008 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.001072/0.001072, allocations: 195.1 kB / 16.68 MB, free: 5.934 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.368/1.368, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.801/2.801, allocations: 469.4 MB / 0.7422 GB, free: 7.574 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 67.89 kB / 1.064 GB, free: 13.9 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3249/0.3262, allocations: 159.1 MB / 1.22 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.RegNonZeroPower): time 0.0032/0.3295, allocations: 1.441 MB / 1.221 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0008447/0.3303, allocations: 386.7 kB / 1.222 GB, free: 12.83 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.062e-05/0.3304, allocations: 3.938 kB / 1.222 GB, free: 12.83 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 3.196e-05/0.3305, allocations: 0 / 1.222 GB, free: 12.83 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 5.102e-05/0.3305, allocations: 3.938 kB / 1.222 GB, free: 12.82 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005457/0.3311, allocations: 107.7 kB / 1.222 GB, free: 12.72 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 8.24e-05/0.3312, allocations: 27.92 kB / 1.222 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.3313, allocations: 8 kB / 1.222 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 5.942e-05/0.3314, allocations: 15.92 kB / 1.222 GB, free: 12.67 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.953e-05/0.3314, allocations: 15.91 kB / 1.222 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.448e-05/0.3314, allocations: 0 / 1.222 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004334/0.3319, allocations: 275.7 kB / 1.222 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 2.313e-05/0.3319, allocations: 11.98 kB / 1.222 GB, free: 12.37 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.763e-05/0.3319, allocations: 7.938 kB / 1.222 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002446/0.3322, allocations: 107.6 kB / 1.222 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3322, allocations: 0 / 1.222 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of FrontEnd: time 2.194e-06/0.3322, allocations: 0 / 1.222 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 8.767e-06/0.3322, allocations: 8 kB / 1.222 GB, free: 12.25 MB / 0.9825 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.0005013/0.3327, allocations: 359.2 kB / 1.222 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.3328, allocations: 12.03 kB / 1.222 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.834e-05/0.3328, allocations: 34.69 kB / 1.222 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.6e-05/0.3329, allocations: 0.9375 kB / 1.222 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000122/0.333, allocations: 180.2 kB / 1.223 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.103e-05/0.333, allocations: 384 / 1.223 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.545e-05/0.3331, allocations: 8.375 kB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001819/0.3332, allocations: 54.23 kB / 1.223 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.3333, allocations: 7.875 kB / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.608e-06/0.3333, allocations: 4 kB / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.3333, allocations: 0 / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001649/0.3335, allocations: 31.97 kB / 1.223 GB, free: 11.47 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003211/0.3338, allocations: 248.9 kB / 1.223 GB, free: 11.18 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001408/0.3339, allocations: 42.5 kB / 1.223 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.128e-05/0.334, allocations: 28.89 kB / 1.223 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006965/0.3347, allocations: 453.5 kB / 1.223 GB, free: 10.56 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.029e-05/0.3348, allocations: 38.56 kB / 1.224 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 1.323e-06/0.3348, allocations: 0 / 1.224 GB, free: 10.51 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0003909/0.3352, allocations: 81.58 kB / 1.224 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.251e-05/0.3352, allocations: 55.53 kB / 1.224 GB, free: 10.36 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.02e-05/0.3353, allocations: 105.8 kB / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.546e-05/0.3353, allocations: 29.7 kB / 1.224 GB, free: 10.21 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.514e-05/0.3354, allocations: 80.14 kB / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.021e-05/0.3354, allocations: 7.953 kB / 1.224 GB, free: 10.12 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.515e-05/0.3355, allocations: 21.64 kB / 1.224 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001025/0.3356, allocations: 310.8 kB / 1.224 GB, free: 9.781 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.511e-05/0.3357, allocations: 23.98 kB / 1.224 GB, free: 9.758 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.192e-05/0.3358, allocations: 11.98 kB / 1.224 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001489/0.3359, allocations: 40.81 kB / 1.224 GB, free: 9.703 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.3359, allocations: 3.938 kB / 1.224 GB, free: 9.699 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002158/0.3361, allocations: 77.55 kB / 1.224 GB, free: 9.617 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/0.3362, allocations: 8.094 kB / 1.224 GB, free: 9.609 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.3362, allocations: 4 kB / 1.224 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.49e-05/0.3362, allocations: 0 / 1.224 GB, free: 9.605 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.236e-05/0.3363, allocations: 4 kB / 1.224 GB, free: 9.602 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.9e-06/0.3363, allocations: 0 / 1.224 GB, free: 9.602 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.136e-05/0.3364, allocations: 7.984 kB / 1.224 GB, free: 9.594 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.601e-06/0.3364, allocations: 0 / 1.224 GB, free: 9.594 MB / 0.9825 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 8.483e-05/0.3365, allocations: 115.2 kB / 1.224 GB, free: 9.473 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.108e-05/0.3365, allocations: 8 kB / 1.224 GB, free: 9.465 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002399/0.3368, allocations: 81.09 kB / 1.225 GB, free: 9.375 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.977e-06/0.3368, allocations: 0 / 1.225 GB, free: 9.375 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.3368, allocations: 3.938 kB / 1.225 GB, free: 9.371 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.3368, allocations: 4 kB / 1.225 GB, free: 9.367 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001583/0.337, allocations: 161.6 kB / 1.225 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.273e-06/0.337, allocations: 0 / 1.225 GB, free: 9.16 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.66e-05/0.337, allocations: 7.984 kB / 1.225 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.337, allocations: 8.031 kB / 1.225 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.663e-06/0.3371, allocations: 256 / 1.225 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.3371, allocations: 0 / 1.225 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.3371, allocations: 4 kB / 1.225 GB, free: 9.141 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002612/0.3373, allocations: 159.5 kB / 1.225 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.578e-05/0.3374, allocations: 85.06 kB / 1.225 GB, free: 8.867 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/0.3374, allocations: 12.02 kB / 1.225 GB, free: 8.855 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.561e-05/0.3375, allocations: 4 kB / 1.225 GB, free: 8.852 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.672e-05/0.3375, allocations: 3.938 kB / 1.225 GB, free: 8.848 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.793e-06/0.3375, allocations: 3.984 kB / 1.225 GB, free: 8.844 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.316e-05/0.3376, allocations: 83.28 kB / 1.225 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.31e-07/0.3376, allocations: 0 / 1.225 GB, free: 8.762 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002397/0.3378, allocations: 15.94 kB / 1.225 GB, free: 8.746 MB / 0.9825 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.0006074/0.3384, allocations: 0.7085 MB / 1.226 GB, free: 8.012 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002162/0.3387, allocations: 39.91 kB / 1.226 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.3387, allocations: 0 / 1.226 GB, free: 7.973 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 8.711e-05/0.3388, allocations: 24.08 kB / 1.226 GB, free: 7.949 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003022/0.3391, allocations: 15.84 kB / 1.226 GB, free: 7.934 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000418/0.3395, allocations: 139 kB / 1.226 GB, free: 7.758 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002438/0.3398, allocations: 0.6807 MB / 1.227 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 2.512e-05/0.3398, allocations: 0 / 1.227 GB, free: 7.051 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.327e-05/0.3398, allocations: 11.44 kB / 1.227 GB, free: 7.039 MB / 0.9825 GB Notification: Performance of SimCode: time 2.71e-07/0.3399, allocations: 4.062 kB / 1.227 GB, free: 7.035 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01818/0.358, allocations: 1.613 MB / 1.228 GB, free: 5.508 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.603/7.961, allocations: 5.609 kB / 1.228 GB, free: 5.504 MB / 0.9825 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