Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_low.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.Electrical.Transmission.Functions.Validation.SelectCable_low,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_Transmission_Functions_Validation_SelectCable_low",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_low,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_Transmission_Functions_Validation_SelectCable_low",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.007789/0.007789, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001919/0.001919, allocations: 194.3 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.338/1.338, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002149/0.002149, allocations: 275.1 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 0.9441/0.9441, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001844/0.001844, allocations: 91.86 kB / 0.6809 GB, free: 28 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.1417, allocations: 86.98 MB / 0.7659 GB, free: 8.973 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_low): time 0.002509/0.1442, allocations: 1.396 MB / 0.7672 GB, free: 7.562 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00227/0.1466, allocations: 1.935 MB / 0.7691 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.197e-05/0.1466, allocations: 0 / 0.7691 GB, free: 5.621 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001121/0.1477, allocations: 392.7 kB / 0.7695 GB, free: 5.238 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 5.428e-05/0.1478, allocations: 15.91 kB / 0.7695 GB, free: 5.223 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 4.679e-06/0.1478, allocations: 0 / 0.7695 GB, free: 5.223 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002158/0.148, allocations: 123.2 kB / 0.7696 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 5.469e-05/0.1481, allocations: 25.5 kB / 0.7697 GB, free: 5.074 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 6.478e-05/0.1482, allocations: 47.72 kB / 0.7697 GB, free: 5.027 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001157/0.1483, allocations: 63.7 kB / 0.7698 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.653e-05/0.1483, allocations: 4 kB / 0.7698 GB, free: 4.961 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005421/0.1489, allocations: 187.9 kB / 0.77 GB, free: 4.777 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.582e-05/0.1489, allocations: 27.84 kB / 0.77 GB, free: 4.75 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 7.938e-05/0.149, allocations: 71.61 kB / 0.7701 GB, free: 4.68 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004696/0.1495, allocations: 283 kB / 0.7703 GB, free: 4.402 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1495, allocations: 8 kB / 0.7703 GB, free: 4.395 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.333e-06/0.1495, allocations: 0 / 0.7703 GB, free: 4.395 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.239e-06/0.1495, allocations: 0 / 0.7703 GB, free: 4.395 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0006501/0.1502, allocations: 498.3 kB / 0.7708 GB, free: 3.859 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.1502, allocations: 8.031 kB / 0.7708 GB, free: 3.852 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.605e-05/0.1503, allocations: 110 kB / 0.7709 GB, free: 3.734 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001578/0.1504, allocations: 100.1 kB / 0.771 GB, free: 3.637 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002017/0.1506, allocations: 291.4 kB / 0.7713 GB, free: 3.312 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.316e-05/0.1507, allocations: 154.9 kB / 0.7714 GB, free: 3.16 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.706e-05/0.1507, allocations: 154.9 kB / 0.7716 GB, free: 3.008 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.075e-05/0.1508, allocations: 108.9 kB / 0.7717 GB, free: 2.895 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.314e-05/0.1508, allocations: 75.28 kB / 0.7718 GB, free: 2.82 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.631e-05/0.1509, allocations: 154.6 kB / 0.7719 GB, free: 2.668 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.142e-05/0.1509, allocations: 158.6 kB / 0.7721 GB, free: 2.512 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.318e-05/0.151, allocations: 154.6 kB / 0.7722 GB, free: 2.359 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003083/0.1513, allocations: 0.5094 MB / 0.7727 GB, free: 1.801 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 6.549e-05/0.1514, allocations: 169.1 kB / 0.7729 GB, free: 1.625 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.591e-05/0.1514, allocations: 84.14 kB / 0.7729 GB, free: 1.539 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.098e-05/0.1514, allocations: 79.22 kB / 0.773 GB, free: 1.461 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.381e-05/0.1514, allocations: 105.8 kB / 0.7731 GB, free: 1.348 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=0): time 1.032e-06/0.1515, allocations: 0 / 0.7731 GB, free: 1.348 MB / 0.5606 GB Notification: Performance of matching and sorting (n=0): time 0.0001624/0.1516, allocations: 53.59 kB / 0.7732 GB, free: 1.289 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.608e-05/0.1517, allocations: 130.7 kB / 0.7733 GB, free: 1.148 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002885/0.152, allocations: 326.3 kB / 0.7736 GB, free: 0.8242 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.278e-05/0.152, allocations: 25.7 kB / 0.7736 GB, free: 0.793 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.41e-05/0.1521, allocations: 120.5 kB / 0.7738 GB, free: 0.6719 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.574e-06/0.1521, allocations: 0 / 0.7738 GB, free: 0.6719 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.186e-05/0.1521, allocations: 65.62 kB / 0.7738 GB, free: 0.6016 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.443e-05/0.1522, allocations: 330.8 kB / 0.7741 GB, free: 276 kB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.911e-05/0.1523, allocations: 59.95 kB / 0.7742 GB, free: 216 kB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001113/0.1524, allocations: 125.9 kB / 0.7743 GB, free: 68 kB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2889/0.4413, allocations: 201.2 kB / 0.7745 GB, free: 15.08 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.4414, allocations: 1.062 kB / 0.7745 GB, free: 15.08 MB / 0.5606 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0005124/0.4419, allocations: 235.5 kB / 0.7747 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.725e-05/0.4419, allocations: 9.062 kB / 0.7747 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.442, allocations: 2.438 kB / 0.7747 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.442, allocations: 2.766 kB / 0.7747 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.577e-06/0.442, allocations: 8.656 kB / 0.7747 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.916e-06/0.442, allocations: 5.281 kB / 0.7748 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001363/0.4421, allocations: 25.98 kB / 0.7748 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.4422, allocations: 7.516 kB / 0.7748 GB, free: 15.04 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 (cab[1].material,cab[2].material,cab[3].material,cab[4].material,cab[5].material,cab[6].material,cab[7].material) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * 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 0.0001734/0.4423, allocations: 228.6 kB / 0.775 GB, free: 14.85 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.741e-05/0.4424, allocations: 119.6 kB / 0.7751 GB, free: 14.73 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.4e-05/0.4424, allocations: 117 kB / 0.7752 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.125e-05/0.4425, allocations: 179.9 kB / 0.7754 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.218e-05/0.4425, allocations: 177.9 kB / 0.7756 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.111e-05/0.4425, allocations: 180.4 kB / 0.7757 GB, free: 14.08 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001907/0.4427, allocations: 457.9 kB / 0.7762 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.351e-05/0.4427, allocations: 103 kB / 0.7763 GB, free: 13.53 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.249e-05/0.4428, allocations: 111.8 kB / 0.7764 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.269e-05/0.4428, allocations: 178.7 kB / 0.7766 GB, free: 13.24 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.258e-05/0.4428, allocations: 178.7 kB / 0.7767 GB, free: 13.06 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.937e-05/0.4428, allocations: 181.9 kB / 0.7769 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.945e-05/0.4429, allocations: 179.1 kB / 0.7771 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.797e-05/0.4429, allocations: 335.7 kB / 0.7774 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.213e-05/0.443, allocations: 193.9 kB / 0.7776 GB, free: 12.16 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.575e-05/0.4431, allocations: 185.3 kB / 0.7777 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.619e-05/0.4432, allocations: 105.1 kB / 0.7778 GB, free: 11.88 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.108e-05/0.4432, allocations: 181.3 kB / 0.778 GB, free: 11.69 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.308e-05/0.4432, allocations: 105.2 kB / 0.7781 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002094/0.4434, allocations: 216.2 kB / 0.7783 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4434, allocations: 0.7188 kB / 0.7783 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003689/0.4438, allocations: 68.17 kB / 0.7784 GB, free: 11.5 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 (0): * Single equations (assignments): 0 * 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.0003794/0.4442, allocations: 0.9219 MB / 0.7793 GB, free: 10.69 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001594/0.4444, allocations: 103.6 kB / 0.7794 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.4444, allocations: 0 / 0.7794 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 2.014e-06/0.4444, allocations: 0.875 kB / 0.7794 GB, free: 10.68 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000278/0.4447, allocations: 465.8 kB / 0.7798 GB, free: 10.24 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00199/0.4467, allocations: 2.445 MB / 0.7822 GB, free: 8.746 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001735/0.4468, allocations: 0.7408 MB / 0.7829 GB, free: 8.051 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.423e-05/0.4469, allocations: 1.938 kB / 0.783 GB, free: 8.051 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.664e-05/0.4469, allocations: 39.09 kB / 0.783 GB, free: 8.043 MB / 0.5606 GB Notification: Performance of SimCode: time 3.81e-07/0.4469, allocations: 0 / 0.783 GB, free: 8.043 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03991/0.4868, allocations: 4.865 MB / 0.7877 GB, free: 7.461 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.031/8.518, allocations: 13.81 kB / 0.7878 GB, free: 7.449 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_low.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_low.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_low.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_low.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_low_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_Electrical_Transmission_Functions_Validation_SelectCable_low.fmu > BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_low.pipe 2>&1)