Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.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.PowerLinearized,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_PowerLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.PowerLinearized,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_PowerLinearized",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.006175/0.006175, allocations: 97.62 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.001202/0.001202, allocations: 200.8 kB / 16.68 MB, free: 5.969 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.32/1.32, allocations: 222.9 MB / 240.4 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002218/0.002218, allocations: 290.5 kB / 290.8 MB, free: 1.941 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9293/0.9293, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 99.91 kB / 0.681 GB, free: 15.95 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1967/0.1986, allocations: 86.97 MB / 0.7659 GB, free: 8.906 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.PowerLinearized): time 0.003077/0.2017, allocations: 1.439 MB / 0.7673 GB, free: 7.461 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003419/0.2021, allocations: 84.59 kB / 0.7674 GB, free: 7.375 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.327e-05/0.2022, allocations: 0 / 0.7674 GB, free: 7.375 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 3.155e-05/0.2022, allocations: 11.92 kB / 0.7674 GB, free: 7.363 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.598e-05/0.2023, allocations: 3.938 kB / 0.7674 GB, free: 7.359 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002488/0.2026, allocations: 19.97 kB / 0.7674 GB, free: 7.34 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.97e-05/0.2027, allocations: 23.92 kB / 0.7675 GB, free: 7.316 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000127/0.2028, allocations: 15.98 kB / 0.7675 GB, free: 7.301 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 6.611e-05/0.2029, allocations: 11.92 kB / 0.7675 GB, free: 7.289 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.075e-05/0.2029, allocations: 11.94 kB / 0.7675 GB, free: 7.277 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.834e-05/0.203, allocations: 4 kB / 0.7675 GB, free: 7.273 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.647e-05/0.2031, allocations: 15.98 kB / 0.7675 GB, free: 7.258 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 2.415e-05/0.2031, allocations: 11.92 kB / 0.7675 GB, free: 7.246 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.624e-05/0.2031, allocations: 11.94 kB / 0.7675 GB, free: 7.234 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001506/0.2033, allocations: 32.11 kB / 0.7676 GB, free: 7.203 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.2033, allocations: 0 / 0.7676 GB, free: 7.203 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.552e-06/0.2033, allocations: 0 / 0.7676 GB, free: 7.203 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.604e-06/0.2033, allocations: 0 / 0.7676 GB, free: 7.203 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.0005629/0.2039, allocations: 351.4 kB / 0.7679 GB, free: 6.809 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.2039, allocations: 11.97 kB / 0.7679 GB, free: 6.797 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.864e-05/0.204, allocations: 34.75 kB / 0.7679 GB, free: 6.754 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002036/0.2042, allocations: 16.88 kB / 0.768 GB, free: 6.738 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001594/0.2044, allocations: 168.4 kB / 0.7681 GB, free: 6.535 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.617e-05/0.2044, allocations: 384 / 0.7681 GB, free: 6.535 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.046e-05/0.2044, allocations: 384 / 0.7681 GB, free: 6.535 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002237/0.2047, allocations: 62.22 kB / 0.7682 GB, free: 6.469 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.837e-06/0.2047, allocations: 3.938 kB / 0.7682 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.237e-06/0.2047, allocations: 0 / 0.7682 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.2047, allocations: 0 / 0.7682 GB, free: 6.465 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002119/0.2049, allocations: 47.95 kB / 0.7682 GB, free: 6.418 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000412/0.2053, allocations: 260.9 kB / 0.7685 GB, free: 6.113 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001753/0.2055, allocations: 62.48 kB / 0.7685 GB, free: 6.043 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001152/0.2056, allocations: 28.89 kB / 0.7686 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.2057, allocations: 0 / 0.7686 GB, free: 6.012 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/0.2057, allocations: 30.56 kB / 0.7686 GB, free: 5.973 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/0.2057, allocations: 4 kB / 0.7686 GB, free: 5.969 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0004251/0.2061, allocations: 109.5 kB / 0.7687 GB, free: 5.855 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.709e-05/0.2062, allocations: 51.41 kB / 0.7687 GB, free: 5.793 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.409e-05/0.2063, allocations: 105.8 kB / 0.7689 GB, free: 5.68 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.4e-05/0.2063, allocations: 25.7 kB / 0.7689 GB, free: 5.648 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 4.741e-05/0.2063, allocations: 88.27 kB / 0.769 GB, free: 5.559 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.089e-05/0.2064, allocations: 11.89 kB / 0.769 GB, free: 5.547 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.344e-05/0.2064, allocations: 9.719 kB / 0.769 GB, free: 5.531 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001206/0.2065, allocations: 318.8 kB / 0.7693 GB, free: 5.211 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.2067, allocations: 19.98 kB / 0.7693 GB, free: 5.191 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.8e-05/0.2068, allocations: 23.97 kB / 0.7693 GB, free: 5.168 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001954/0.207, allocations: 60.81 kB / 0.7694 GB, free: 5.105 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.778e-06/0.207, allocations: 3.938 kB / 0.7694 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002945/0.2073, allocations: 85.58 kB / 0.7695 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.2073, allocations: 6.5 kB / 0.7695 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.68e-06/0.2073, allocations: 0 / 0.7695 GB, free: 5.008 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.602e-05/0.2073, allocations: 7.969 kB / 0.7695 GB, free: 5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.2075, allocations: 11.98 kB / 0.7695 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.2075, allocations: 0 / 0.7695 GB, free: 4.988 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.462e-05/0.2075, allocations: 7.984 kB / 0.7695 GB, free: 4.98 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.2076, allocations: 0 / 0.7695 GB, free: 4.98 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 7.829e-05/0.2076, allocations: 114.4 kB / 0.7696 GB, free: 4.859 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.66e-05/0.2077, allocations: 3.953 kB / 0.7696 GB, free: 4.855 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.19e-05/0.2077, allocations: 11.53 kB / 0.7696 GB, free: 4.844 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.2077, allocations: 4 kB / 0.7696 GB, free: 4.84 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.2077, allocations: 0 / 0.7696 GB, free: 4.84 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.805e-06/0.2077, allocations: 0 / 0.7696 GB, free: 4.84 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001861/0.2079, allocations: 169.6 kB / 0.7698 GB, free: 4.625 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.2079, allocations: 0 / 0.7698 GB, free: 4.625 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.044e-05/0.208, allocations: 12.23 kB / 0.7698 GB, free: 4.613 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.208, allocations: 4 kB / 0.7698 GB, free: 4.609 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.567e-06/0.208, allocations: 4 kB / 0.7698 GB, free: 4.605 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.134e-05/0.2081, allocations: 3.938 kB / 0.7698 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.2081, allocations: 3.984 kB / 0.7698 GB, free: 4.598 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002941/0.2084, allocations: 175.5 kB / 0.77 GB, free: 4.41 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.455e-05/0.2084, allocations: 77.11 kB / 0.7701 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.489e-05/0.2084, allocations: 0 / 0.7701 GB, free: 4.316 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.427e-05/0.2085, allocations: 11.98 kB / 0.7701 GB, free: 4.305 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.713e-05/0.2086, allocations: 8 kB / 0.7701 GB, free: 4.297 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.498e-06/0.2086, allocations: 4 kB / 0.7701 GB, free: 4.293 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.692e-05/0.2087, allocations: 83.28 kB / 0.7702 GB, free: 4.211 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2087, allocations: 0 / 0.7702 GB, free: 4.211 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002203/0.2089, allocations: 8 kB / 0.7702 GB, free: 4.203 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.0005885/0.2095, allocations: 0.7162 MB / 0.7709 GB, free: 3.461 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002721/0.2098, allocations: 47.95 kB / 0.7709 GB, free: 3.414 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.2098, allocations: 0 / 0.7709 GB, free: 3.414 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001145/0.2099, allocations: 28.06 kB / 0.7709 GB, free: 3.387 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003035/0.2102, allocations: 8 kB / 0.7709 GB, free: 3.379 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000458/0.2107, allocations: 155 kB / 0.7711 GB, free: 3.188 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002546/0.2109, allocations: 0.6768 MB / 0.7718 GB, free: 2.484 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.368e-05/0.211, allocations: 4 kB / 0.7718 GB, free: 2.48 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.365e-05/0.211, allocations: 15.44 kB / 0.7718 GB, free: 2.465 MB / 0.5606 GB Notification: Performance of SimCode: time 2.71e-07/0.211, allocations: 0 / 0.7718 GB, free: 2.465 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0173/0.2283, allocations: 1.459 MB / 0.7732 GB, free: 1.105 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.428/7.656, allocations: 11.86 kB / 0.7732 GB, free: 1.094 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized_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_PowerLinearized.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.PowerLinearized.pipe 2>&1)