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.004986/0.004986, allocations: 99.84 kB / 15.73 MB, free: 6.5 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.001282/0.001282, allocations: 199.4 kB / 16.68 MB, free: 6.375 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.455/1.455, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.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: 285.9 kB / 290.8 MB, free: 1.902 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.077/1.077, allocations: 178.6 MB / 0.5074 GB, free: 4.465 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002693/0.002693, allocations: 95.84 kB / 0.6943 GB, free: 3.605 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4745/0.4772, allocations: 89.14 MB / 0.7813 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.RegNonZeroPower): time 0.003429/0.4807, allocations: 1.451 MB / 0.7828 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0007983/0.4815, allocations: 386.5 kB / 0.7831 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.552e-05/0.4816, allocations: 0 / 0.7831 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.828e-05/0.4816, allocations: 4.734 kB / 0.7831 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.838e-05/0.4817, allocations: 7.938 kB / 0.7831 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004504/0.4821, allocations: 109.9 kB / 0.7832 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.203e-05/0.4822, allocations: 23.88 kB / 0.7833 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 9.698e-05/0.4823, allocations: 5.047 kB / 0.7833 GB, free: 12.52 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.743e-05/0.4824, allocations: 13.66 kB / 0.7833 GB, free: 12.51 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.508e-05/0.4824, allocations: 10.44 kB / 0.7833 GB, free: 12.51 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.395e-05/0.4824, allocations: 1.688 kB / 0.7833 GB, free: 12.51 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004742/0.4829, allocations: 284.3 kB / 0.7836 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.918e-05/0.483, allocations: 8.719 kB / 0.7836 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.732e-05/0.483, allocations: 11.75 kB / 0.7836 GB, free: 12.42 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0002472/0.4832, allocations: 107.6 kB / 0.7837 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.77e-06/0.4833, allocations: 1.312 kB / 0.7837 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.793e-06/0.4833, allocations: 0 / 0.7837 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.551e-06/0.4833, allocations: 0 / 0.7837 GB, free: 12.39 MB / 0.5606 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.0005656/0.4838, allocations: 361.7 kB / 0.784 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.502e-05/0.4839, allocations: 10 kB / 0.784 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.837e-05/0.4839, allocations: 39.31 kB / 0.7841 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.628e-05/0.484, allocations: 11.03 kB / 0.7841 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000178/0.4842, allocations: 171.3 kB / 0.7843 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.35e-05/0.4842, allocations: 2.359 kB / 0.7843 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.938e-06/0.4843, allocations: 1.562 kB / 0.7843 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002028/0.4845, allocations: 49.27 kB / 0.7843 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.4845, allocations: 3.938 kB / 0.7843 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.414e-06/0.4845, allocations: 3.938 kB / 0.7843 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.4845, allocations: 1.219 kB / 0.7843 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001795/0.4847, allocations: 37.75 kB / 0.7844 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003655/0.4851, allocations: 252.9 kB / 0.7846 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001461/0.4852, allocations: 44.86 kB / 0.7846 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001016/0.4853, allocations: 24.02 kB / 0.7847 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007402/0.4861, allocations: 458.8 kB / 0.7851 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/0.4861, allocations: 40.61 kB / 0.7851 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.4861, allocations: 0 / 0.7851 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0003852/0.4865, allocations: 88.89 kB / 0.7852 GB, free: 10.81 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.964e-05/0.4866, allocations: 53.81 kB / 0.7853 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.224e-05/0.4867, allocations: 103.7 kB / 0.7854 GB, free: 10.65 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.668e-05/0.4867, allocations: 25.7 kB / 0.7854 GB, free: 10.62 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.72e-05/0.4867, allocations: 89.97 kB / 0.7855 GB, free: 10.53 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.711e-05/0.4868, allocations: 9.641 kB / 0.7855 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.448e-05/0.4868, allocations: 12.55 kB / 0.7855 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001273/0.4869, allocations: 317.6 kB / 0.7858 GB, free: 10.19 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.318e-05/0.487, allocations: 13.98 kB / 0.7858 GB, free: 10.19 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.913e-05/0.4871, allocations: 19.77 kB / 0.7858 GB, free: 10.18 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001584/0.4873, allocations: 41.16 kB / 0.7859 GB, free: 10.17 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.4873, allocations: 3.938 kB / 0.7859 GB, free: 10.16 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002119/0.4875, allocations: 69.05 kB / 0.7859 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.4875, allocations: 5.625 kB / 0.786 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.987e-06/0.4875, allocations: 0 / 0.786 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.4876, allocations: 1.438 kB / 0.786 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.179e-05/0.4876, allocations: 8.375 kB / 0.786 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.4877, allocations: 5.344 kB / 0.786 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.569e-05/0.4877, allocations: 6.812 kB / 0.786 GB, free: 10.12 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.93e-06/0.4877, allocations: 0 / 0.786 GB, free: 10.12 MB / 0.5606 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.191e-05/0.4878, allocations: 117.2 kB / 0.7861 GB, free: 10 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.587e-05/0.4878, allocations: 5.203 kB / 0.7861 GB, free: 9.996 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002524/0.4881, allocations: 73.02 kB / 0.7862 GB, free: 9.953 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.4881, allocations: 6.172 kB / 0.7862 GB, free: 9.949 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.4881, allocations: 0 / 0.7862 GB, free: 9.949 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.305e-06/0.4881, allocations: 3.938 kB / 0.7862 GB, free: 9.945 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001754/0.4883, allocations: 162.2 kB / 0.7863 GB, free: 9.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.4883, allocations: 0.5625 kB / 0.7863 GB, free: 9.75 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.631e-05/0.4884, allocations: 7.859 kB / 0.7863 GB, free: 9.75 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.4884, allocations: 1.906 kB / 0.7863 GB, free: 9.75 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.123e-06/0.4884, allocations: 0.5156 kB / 0.7863 GB, free: 9.75 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.4884, allocations: 0 / 0.7863 GB, free: 9.75 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.4884, allocations: 0.6094 kB / 0.7863 GB, free: 9.75 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002575/0.4887, allocations: 172.2 kB / 0.7865 GB, free: 9.602 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.527e-05/0.4887, allocations: 79.5 kB / 0.7866 GB, free: 9.508 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.196e-05/0.4888, allocations: 256 / 0.7866 GB, free: 9.508 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.635e-05/0.4888, allocations: 5.953 kB / 0.7866 GB, free: 9.508 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.743e-05/0.4889, allocations: 6.828 kB / 0.7866 GB, free: 9.504 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.017e-06/0.4889, allocations: 5.875 kB / 0.7866 GB, free: 9.5 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.727e-05/0.4889, allocations: 86.66 kB / 0.7867 GB, free: 9.422 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.974e-06/0.4889, allocations: 0 / 0.7867 GB, free: 9.422 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002315/0.4892, allocations: 19.19 kB / 0.7867 GB, free: 9.414 MB / 0.5606 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.0006295/0.4898, allocations: 0.7258 MB / 0.7874 GB, free: 8.727 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002226/0.4901, allocations: 39.7 kB / 0.7874 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.4901, allocations: 1.281 kB / 0.7874 GB, free: 8.719 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 8.851e-05/0.4902, allocations: 21.09 kB / 0.7875 GB, free: 8.715 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002879/0.4905, allocations: 6.109 kB / 0.7875 GB, free: 8.711 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000436/0.4909, allocations: 134.4 kB / 0.7876 GB, free: 8.566 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002964/0.4912, allocations: 0.6767 MB / 0.7883 GB, free: 7.871 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.354e-05/0.4912, allocations: 1.688 kB / 0.7883 GB, free: 7.871 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.131e-05/0.4913, allocations: 9.344 kB / 0.7883 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of SimCode: time 2.3e-07/0.4913, allocations: 0 / 0.7883 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02192/0.5132, allocations: 1.628 MB / 0.7899 GB, free: 7.469 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.727/8.24, allocations: 1.062 kB / 0.7899 GB, free: 7.469 MB / 0.5606 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)