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.008104/0.008105, allocations: 96.16 kB / 15.73 MB, free: 6.043 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.001858/0.001858, allocations: 204 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.458/1.458, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00249/0.00249, allocations: 278.9 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.084/1.084, allocations: 178.6 MB / 0.5074 GB, free: 4.48 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002703/0.002703, allocations: 102 kB / 0.6943 GB, free: 3.578 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5297/0.5325, allocations: 89.14 MB / 0.7814 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.PowerLinearized): time 0.002665/0.5352, allocations: 1.443 MB / 0.7828 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0002962/0.5355, allocations: 95.59 kB / 0.7829 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.828e-05/0.5355, allocations: 0 / 0.7829 GB, free: 12.79 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.704e-05/0.5356, allocations: 4.922 kB / 0.7829 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.794e-05/0.5356, allocations: 7.938 kB / 0.7829 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001778/0.5358, allocations: 22.75 kB / 0.7829 GB, free: 12.76 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.367e-05/0.5359, allocations: 23.2 kB / 0.7829 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 8.372e-05/0.536, allocations: 11.02 kB / 0.7829 GB, free: 12.75 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.332e-05/0.536, allocations: 8.625 kB / 0.7829 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.449e-05/0.5361, allocations: 13.84 kB / 0.7829 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.522e-05/0.5361, allocations: 2 kB / 0.7829 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 6.14e-05/0.5362, allocations: 18.45 kB / 0.783 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.479e-05/0.5362, allocations: 1.219 kB / 0.783 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.205e-05/0.5362, allocations: 15.39 kB / 0.783 GB, free: 12.72 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001083/0.5363, allocations: 39.52 kB / 0.783 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.5364, allocations: 0 / 0.783 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.352e-06/0.5364, allocations: 0 / 0.783 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.228e-06/0.5364, allocations: 0 / 0.783 GB, free: 12.7 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.0004595/0.5368, allocations: 346.1 kB / 0.7833 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.374e-05/0.5369, allocations: 11.12 kB / 0.7834 GB, free: 12.34 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.242e-05/0.5369, allocations: 30.75 kB / 0.7834 GB, free: 12.3 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001486/0.5371, allocations: 21.25 kB / 0.7834 GB, free: 12.29 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001389/0.5372, allocations: 166.1 kB / 0.7836 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.592e-05/0.5372, allocations: 4.312 kB / 0.7836 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.124e-05/0.5372, allocations: 384 / 0.7836 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001875/0.5374, allocations: 59.7 kB / 0.7836 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.5375, allocations: 9.281 kB / 0.7836 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.266e-06/0.5375, allocations: 0 / 0.7836 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.5375, allocations: 0 / 0.7836 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002206/0.5377, allocations: 52.92 kB / 0.7837 GB, free: 12.03 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003819/0.5381, allocations: 257.6 kB / 0.7839 GB, free: 11.76 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001723/0.5383, allocations: 55.48 kB / 0.784 GB, free: 11.72 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001162/0.5384, allocations: 33.64 kB / 0.784 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.525e-05/0.5384, allocations: 0 / 0.784 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.472e-05/0.5385, allocations: 39.56 kB / 0.784 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 2.565e-06/0.5385, allocations: 3.984 kB / 0.7841 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0004179/0.5389, allocations: 100.3 kB / 0.7841 GB, free: 11.61 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.024e-05/0.5389, allocations: 61.33 kB / 0.7842 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.849e-05/0.539, allocations: 103.5 kB / 0.7843 GB, free: 11.44 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.839e-05/0.539, allocations: 27.61 kB / 0.7843 GB, free: 11.41 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.662e-05/0.5391, allocations: 85.5 kB / 0.7844 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.669e-05/0.5391, allocations: 5.641 kB / 0.7844 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.642e-05/0.5392, allocations: 17.33 kB / 0.7844 GB, free: 11.3 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001265/0.5393, allocations: 313.3 kB / 0.7847 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.5394, allocations: 27.83 kB / 0.7848 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001041/0.5396, allocations: 24.03 kB / 0.7848 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001983/0.5398, allocations: 46.09 kB / 0.7848 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.5398, allocations: 3.938 kB / 0.7848 GB, free: 10.96 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0002497/0.54, allocations: 82.86 kB / 0.7849 GB, free: 10.92 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.54, allocations: 9.406 kB / 0.7849 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.5401, allocations: 0 / 0.7849 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.275e-05/0.5401, allocations: 1.719 kB / 0.7849 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.5402, allocations: 10.83 kB / 0.7849 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.216e-06/0.5402, allocations: 0.7031 kB / 0.7849 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.089e-05/0.5403, allocations: 12.69 kB / 0.7849 GB, free: 10.91 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.922e-06/0.5403, allocations: 32 / 0.7849 GB, free: 10.91 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.685e-05/0.5404, allocations: 121.2 kB / 0.7851 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.479e-05/0.5404, allocations: 5.016 kB / 0.7851 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.555e-05/0.5404, allocations: 5.922 kB / 0.7851 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.5404, allocations: 0 / 0.7851 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.5404, allocations: 1.062 kB / 0.7851 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.284e-06/0.5404, allocations: 0.5156 kB / 0.7851 GB, free: 10.78 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001813/0.5406, allocations: 168.2 kB / 0.7852 GB, free: 10.58 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.5406, allocations: 0.5625 kB / 0.7852 GB, free: 10.58 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.915e-05/0.5407, allocations: 15.08 kB / 0.7852 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.5407, allocations: 1.375 kB / 0.7852 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.5407, allocations: 0.75 kB / 0.7852 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.5407, allocations: 256 / 0.7852 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.5407, allocations: 1.344 kB / 0.7853 GB, free: 10.57 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000297/0.541, allocations: 185.5 kB / 0.7854 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.237e-05/0.5411, allocations: 78.33 kB / 0.7855 GB, free: 10.33 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.566e-05/0.5411, allocations: 5.656 kB / 0.7855 GB, free: 10.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.121e-05/0.5412, allocations: 7.875 kB / 0.7855 GB, free: 10.32 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.419e-05/0.5413, allocations: 1.797 kB / 0.7855 GB, free: 10.32 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-06/0.5413, allocations: 1.984 kB / 0.7855 GB, free: 10.32 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.637e-05/0.5413, allocations: 86.12 kB / 0.7856 GB, free: 10.25 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5413, allocations: 3.938 kB / 0.7856 GB, free: 10.24 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002117/0.5415, allocations: 8.938 kB / 0.7856 GB, free: 10.24 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.0005869/0.5421, allocations: 0.7098 MB / 0.7863 GB, free: 9.566 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002697/0.5424, allocations: 58.09 kB / 0.7864 GB, free: 9.551 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.5424, allocations: 0 / 0.7864 GB, free: 9.551 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0001124/0.5425, allocations: 26.31 kB / 0.7864 GB, free: 9.547 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002462/0.5428, allocations: 5.078 kB / 0.7864 GB, free: 9.547 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004548/0.5433, allocations: 146.6 kB / 0.7865 GB, free: 9.398 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002951/0.5436, allocations: 0.6812 MB / 0.7872 GB, free: 8.699 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.11e-05/0.5436, allocations: 1.25 kB / 0.7872 GB, free: 8.699 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.596e-05/0.5437, allocations: 14.02 kB / 0.7872 GB, free: 8.688 MB / 0.5606 GB Notification: Performance of SimCode: time 2.5e-07/0.5437, allocations: 0 / 0.7872 GB, free: 8.688 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02332/0.567, allocations: 1.476 MB / 0.7887 GB, free: 8.305 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.708/8.275, allocations: 5.203 kB / 0.7887 GB, free: 8.301 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)