Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.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.Functions.Examples.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegNonZeroPower",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_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.007033/0.007033, allocations: 96.7 kB / 15.73 MB, free: 6.051 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.001982/0.001982, allocations: 196.9 kB / 16.67 MB, free: 5.977 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.451/1.451, allocations: 222.9 MB / 240.4 MB, free: 4.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002458/0.002458, allocations: 275 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.065/1.065, allocations: 178.6 MB / 0.5074 GB, free: 4.488 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003868/0.003868, allocations: 99.97 kB / 0.6943 GB, free: 3.57 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5029/0.5068, allocations: 89.14 MB / 0.7814 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower): time 0.001662/0.5085, allocations: 0.5814 MB / 0.782 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0006415/0.5091, allocations: 338.4 kB / 0.7823 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.567e-05/0.5092, allocations: 0 / 0.7823 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 1.165e-05/0.5092, allocations: 0 / 0.7823 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.199e-06/0.5092, allocations: 0 / 0.7823 GB, free: 13.28 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004317/0.5096, allocations: 101.6 kB / 0.7824 GB, free: 13.25 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 3.899e-05/0.5097, allocations: 9.297 kB / 0.7824 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.613e-05/0.5097, allocations: 6.625 kB / 0.7824 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 1.132e-05/0.5098, allocations: 1.625 kB / 0.7824 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 1.984e-05/0.5098, allocations: 3.938 kB / 0.7824 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.664e-06/0.5098, allocations: 0 / 0.7824 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004391/0.5102, allocations: 278.3 kB / 0.7827 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 9.237e-06/0.5102, allocations: 0 / 0.7827 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 1.348e-05/0.5103, allocations: 0 / 0.7827 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001804/0.5104, allocations: 85.89 kB / 0.7827 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.5105, allocations: 4 kB / 0.7827 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.172e-06/0.5105, allocations: 0 / 0.7827 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.5105, allocations: 1.125 kB / 0.7827 GB, free: 13.14 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003315/0.5108, allocations: 336.7 kB / 0.7831 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.5e-05/0.5109, allocations: 10.73 kB / 0.7831 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.127e-05/0.5109, allocations: 30.75 kB / 0.7831 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.295e-05/0.5109, allocations: 4.469 kB / 0.7831 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001161/0.5111, allocations: 161.3 kB / 0.7833 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.892e-06/0.5111, allocations: 0.9375 kB / 0.7833 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.907e-06/0.5111, allocations: 384 / 0.7833 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.114e-05/0.5112, allocations: 34.17 kB / 0.7833 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.5112, allocations: 8.594 kB / 0.7833 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.954e-06/0.5112, allocations: 4 kB / 0.7833 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.5112, allocations: 0 / 0.7833 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.673e-05/0.5112, allocations: 4.5 kB / 0.7833 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001513/0.5114, allocations: 148 kB / 0.7835 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 3.362e-05/0.5114, allocations: 17.61 kB / 0.7835 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.503e-05/0.5115, allocations: 6.828 kB / 0.7835 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005096/0.512, allocations: 429.4 kB / 0.7839 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.536e-05/0.512, allocations: 35.16 kB / 0.7839 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.512, allocations: 0 / 0.7839 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001434/0.5122, allocations: 40.86 kB / 0.784 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.422e-05/0.5122, allocations: 52.91 kB / 0.784 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.277e-05/0.5123, allocations: 93.98 kB / 0.7841 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.353e-05/0.5123, allocations: 25.7 kB / 0.7841 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.724e-05/0.5123, allocations: 80.14 kB / 0.7842 GB, free: 11.43 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.677e-05/0.5124, allocations: 9.781 kB / 0.7842 GB, free: 11.42 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.586e-05/0.5124, allocations: 11.91 kB / 0.7842 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001264/0.5125, allocations: 311.7 kB / 0.7845 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.275e-05/0.5125, allocations: 9.094 kB / 0.7845 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.211e-06/0.5125, allocations: 2.172 kB / 0.7845 GB, free: 11.09 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.553e-05/0.5126, allocations: 16.48 kB / 0.7845 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.5126, allocations: 0 / 0.7845 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1) (initialization): time 6.237e-05/0.5126, allocations: 32.88 kB / 0.7846 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.161e-05/0.5127, allocations: 5.219 kB / 0.7846 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.5127, allocations: 5.5 kB / 0.7846 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.438e-05/0.5127, allocations: 0.75 kB / 0.7846 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.239e-05/0.5127, allocations: 1.312 kB / 0.7846 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.947e-06/0.5127, allocations: 0 / 0.7846 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.578e-06/0.5128, allocations: 2.078 kB / 0.7846 GB, free: 11.04 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.498e-06/0.5128, allocations: 4.031 kB / 0.7846 GB, free: 11.03 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 (1): * Single equations (assignments): 1 * 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 6.935e-05/0.5128, allocations: 108 kB / 0.7847 GB, free: 10.92 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.221e-05/0.5129, allocations: 5.859 kB / 0.7847 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.116e-05/0.5129, allocations: 44.06 kB / 0.7847 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.513, allocations: 0 / 0.7847 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.513, allocations: 0 / 0.7847 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.513, allocations: 1.922 kB / 0.7847 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001071/0.5131, allocations: 144.6 kB / 0.7849 GB, free: 10.69 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.5131, allocations: 7.969 kB / 0.7849 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.194e-05/0.5131, allocations: 2.016 kB / 0.7849 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.203e-06/0.5131, allocations: 0 / 0.7849 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.5131, allocations: 5.984 kB / 0.7849 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.5131, allocations: 0 / 0.7849 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.5131, allocations: 0 / 0.7849 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.727e-05/0.5132, allocations: 67.12 kB / 0.785 GB, free: 10.6 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.36e-05/0.5133, allocations: 81.75 kB / 0.785 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.076e-05/0.5133, allocations: 5.438 kB / 0.7851 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.044e-06/0.5133, allocations: 0.6562 kB / 0.7851 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.2e-05/0.5133, allocations: 0 / 0.7851 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.414e-06/0.5133, allocations: 2.062 kB / 0.7851 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.009e-05/0.5134, allocations: 75.28 kB / 0.7851 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5134, allocations: 0 / 0.7851 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001818/0.5136, allocations: 10.81 kB / 0.7851 GB, free: 10.43 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 (1): * Single equations (assignments): 1 * 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.0004284/0.514, allocations: 0.6143 MB / 0.7857 GB, free: 9.816 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 6.968e-05/0.5141, allocations: 9.625 kB / 0.7857 GB, free: 9.812 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.5141, allocations: 0 / 0.7857 GB, free: 9.812 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 5.931e-06/0.5141, allocations: 5.062 kB / 0.7857 GB, free: 9.809 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001169/0.5142, allocations: 4.062 kB / 0.7858 GB, free: 9.809 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002534/0.5145, allocations: 105 kB / 0.7859 GB, free: 9.676 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002746/0.5148, allocations: 0.672 MB / 0.7865 GB, free: 8.98 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.628e-05/0.5148, allocations: 5.234 kB / 0.7865 GB, free: 8.977 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.355e-05/0.5148, allocations: 8.75 kB / 0.7865 GB, free: 8.969 MB / 0.5606 GB Notification: Performance of SimCode: time 2.51e-07/0.5148, allocations: 0 / 0.7865 GB, free: 8.969 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02135/0.5362, allocations: 1.205 MB / 0.7877 GB, free: 8.637 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.596/8.132, allocations: 13.66 kB / 0.7877 GB, free: 8.629 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower_res.csv --start-time -1 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_RegNonZeroPower.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.RegNonZeroPower.pipe 2>&1)