Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_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.004878/0.004878, allocations: 99.64 kB / 15.73 MB, free: 6.047 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.001237/0.001237, allocations: 194.5 kB / 16.67 MB, free: 5.965 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 15.12 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002535/0.002535, allocations: 288.4 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9953/0.9953, allocations: 169.3 MB / 0.4983 GB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002642/0.002642, allocations: 103.8 kB / 0.681 GB, free: 7.461 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4449/0.4476, allocations: 86.98 MB / 0.7659 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower): time 0.00248/0.4501, allocations: 1.433 MB / 0.7673 GB, free: 2.434 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0006989/0.4508, allocations: 387.5 kB / 0.7677 GB, free: 2.051 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.372e-05/0.4509, allocations: 7.938 kB / 0.7677 GB, free: 2.043 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.618e-05/0.4509, allocations: 0 / 0.7677 GB, free: 2.043 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.325e-05/0.451, allocations: 3.938 kB / 0.7677 GB, free: 2.039 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004041/0.4514, allocations: 114.9 kB / 0.7678 GB, free: 1.93 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.506e-05/0.4514, allocations: 23.92 kB / 0.7678 GB, free: 1.906 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 7.674e-05/0.4515, allocations: 11.8 kB / 0.7678 GB, free: 1.898 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 4.469e-05/0.4516, allocations: 15.97 kB / 0.7679 GB, free: 1.883 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 3.739e-05/0.4516, allocations: 7.938 kB / 0.7679 GB, free: 1.875 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.372e-05/0.4516, allocations: 4 kB / 0.7679 GB, free: 1.871 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003972/0.452, allocations: 275.6 kB / 0.7681 GB, free: 1.602 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.418e-05/0.4521, allocations: 7.938 kB / 0.7681 GB, free: 1.594 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.595e-05/0.4521, allocations: 19.92 kB / 0.7682 GB, free: 1.574 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001927/0.4523, allocations: 107.2 kB / 0.7683 GB, free: 1.473 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.4523, allocations: 0 / 0.7683 GB, free: 1.473 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.152e-06/0.4523, allocations: 0 / 0.7683 GB, free: 1.473 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 8.105e-06/0.4523, allocations: 4 kB / 0.7683 GB, free: 1.469 MB / 0.5294 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.0004811/0.4528, allocations: 368.8 kB / 0.7686 GB, free: 1.059 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.4529, allocations: 11.97 kB / 0.7686 GB, free: 1.047 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.375e-05/0.4529, allocations: 34.75 kB / 0.7687 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.442e-05/0.4529, allocations: 4.891 kB / 0.7687 GB, free: 1 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001239/0.4531, allocations: 168.4 kB / 0.7688 GB, free: 0.7969 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.738e-06/0.4531, allocations: 384 / 0.7688 GB, free: 0.7969 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.185e-05/0.4531, allocations: 4.359 kB / 0.7688 GB, free: 0.793 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001698/0.4533, allocations: 50.25 kB / 0.7689 GB, free: 0.7383 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.4533, allocations: 3.938 kB / 0.7689 GB, free: 0.7344 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.154e-05/0.4533, allocations: 7.984 kB / 0.7689 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.4533, allocations: 3.984 kB / 0.7689 GB, free: 0.7227 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001589/0.4535, allocations: 31.97 kB / 0.7689 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003198/0.4538, allocations: 248.9 kB / 0.7692 GB, free: 408 kB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001341/0.454, allocations: 46.5 kB / 0.7692 GB, free: 352 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.603e-05/0.4541, allocations: 20.91 kB / 0.7692 GB, free: 328 kB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007064/0.4548, allocations: 461.5 kB / 0.7697 GB, free: 15.77 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.4548, allocations: 30.56 kB / 0.7697 GB, free: 15.73 MB / 0.545 GB Notification: Performance of pre-optimization done (n=2): time 1.212e-06/0.4548, allocations: 0 / 0.7697 GB, free: 15.73 MB / 0.545 GB Notification: Performance of matching and sorting (n=2): time 0.0003599/0.4552, allocations: 89.47 kB / 0.7698 GB, free: 15.64 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.694e-05/0.4552, allocations: 59.53 kB / 0.7698 GB, free: 15.57 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.369e-05/0.4553, allocations: 101.8 kB / 0.7699 GB, free: 15.46 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.4553, allocations: 25.7 kB / 0.77 GB, free: 15.43 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.032e-05/0.4554, allocations: 88.14 kB / 0.77 GB, free: 15.34 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.761e-05/0.4554, allocations: 3.953 kB / 0.77 GB, free: 15.34 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.435e-05/0.4555, allocations: 17.72 kB / 0.7701 GB, free: 15.32 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001352/0.4556, allocations: 314.8 kB / 0.7704 GB, free: 15 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.957e-05/0.4557, allocations: 19.92 kB / 0.7704 GB, free: 14.98 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.091e-05/0.4558, allocations: 19.98 kB / 0.7704 GB, free: 14.96 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001463/0.4559, allocations: 40.81 kB / 0.7704 GB, free: 14.92 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.4559, allocations: 3.938 kB / 0.7704 GB, free: 14.91 MB / 0.545 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002045/0.4561, allocations: 69.61 kB / 0.7705 GB, free: 14.84 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.4562, allocations: 8.094 kB / 0.7705 GB, free: 14.83 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.4562, allocations: 0 / 0.7705 GB, free: 14.83 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.4562, allocations: 0 / 0.7705 GB, free: 14.83 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.064e-05/0.4563, allocations: 11.98 kB / 0.7705 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.4563, allocations: 0 / 0.7705 GB, free: 14.82 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.851e-05/0.4563, allocations: 7.984 kB / 0.7705 GB, free: 14.81 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.22e-06/0.4564, allocations: 0 / 0.7705 GB, free: 14.81 MB / 0.545 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.869e-05/0.4564, allocations: 113.7 kB / 0.7706 GB, free: 14.69 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.634e-05/0.4565, allocations: 11.95 kB / 0.7707 GB, free: 14.68 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002253/0.4567, allocations: 77.12 kB / 0.7707 GB, free: 14.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.4567, allocations: 0 / 0.7707 GB, free: 14.6 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.4567, allocations: 0 / 0.7707 GB, free: 14.6 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.598e-06/0.4568, allocations: 3.984 kB / 0.7707 GB, free: 14.59 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001715/0.4569, allocations: 157.6 kB / 0.7709 GB, free: 14.39 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.035e-06/0.4569, allocations: 4.25 kB / 0.7709 GB, free: 14.39 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.304e-05/0.457, allocations: 7.984 kB / 0.7709 GB, free: 14.38 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.457, allocations: 8.031 kB / 0.7709 GB, free: 14.37 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.147e-06/0.457, allocations: 4 kB / 0.7709 GB, free: 14.37 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.457, allocations: 0 / 0.7709 GB, free: 14.37 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.457, allocations: 4 kB / 0.7709 GB, free: 14.36 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002523/0.4573, allocations: 161.2 kB / 0.7711 GB, free: 14.19 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.791e-05/0.4573, allocations: 81.05 kB / 0.7711 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.298e-05/0.4574, allocations: 4.031 kB / 0.7711 GB, free: 14.09 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.353e-05/0.4574, allocations: 15.92 kB / 0.7712 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.363e-05/0.4575, allocations: 0 / 0.7712 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-06/0.4575, allocations: 4 kB / 0.7712 GB, free: 14.07 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.473e-05/0.4575, allocations: 83.27 kB / 0.7712 GB, free: 13.99 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4576, allocations: 0 / 0.7712 GB, free: 13.99 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002285/0.4578, allocations: 16 kB / 0.7713 GB, free: 13.97 MB / 0.545 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.0006369/0.4584, allocations: 0.7162 MB / 0.772 GB, free: 13.23 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002138/0.4587, allocations: 43.83 kB / 0.772 GB, free: 13.19 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.4587, allocations: 0 / 0.772 GB, free: 13.19 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 8.293e-05/0.4588, allocations: 24.08 kB / 0.772 GB, free: 13.16 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002948/0.4591, allocations: 4 kB / 0.772 GB, free: 13.16 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004296/0.4595, allocations: 139.2 kB / 0.7722 GB, free: 12.98 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003241/0.4598, allocations: 0.6768 MB / 0.7728 GB, free: 12.28 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.557e-05/0.4599, allocations: 4 kB / 0.7728 GB, free: 12.28 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.6e-05/0.4599, allocations: 15.38 kB / 0.7728 GB, free: 12.26 MB / 0.545 GB Notification: Performance of SimCode: time 2.4e-07/0.4599, allocations: 64 / 0.7728 GB, free: 12.26 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02193/0.4818, allocations: 1.607 MB / 0.7744 GB, free: 10.75 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.804/8.286, allocations: 14.94 kB / 0.7744 GB, free: 10.74 MB / 0.545 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_Math_Examples_RegNonZeroPower.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.RegNonZeroPower.pipe 2>&1)