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.00118/0.00118, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001575/0.001575, allocations: 195.3 kB / 16.14 MB, free: 6.707 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.298/1.298, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001961/0.001961, allocations: 299 kB / 290.2 MB, free: 2.191 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8714/0.8714, allocations: 169.2 MB / 0.4977 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001546/0.001546, allocations: 91.56 kB / 0.5946 GB, free: 28.12 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1348/0.1364, allocations: 86.99 MB / 0.6796 GB, free: 1.047 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_low): time 0.002325/0.1387, allocations: 1.451 MB / 0.681 GB, free: 15.59 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001905/0.1407, allocations: 1.917 MB / 0.6828 GB, free: 13.68 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.854e-05/0.1407, allocations: 4 kB / 0.6828 GB, free: 13.67 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008033/0.1415, allocations: 360.8 kB / 0.6832 GB, free: 13.32 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.799e-05/0.1416, allocations: 20.97 kB / 0.6832 GB, free: 13.3 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 2.865e-06/0.1416, allocations: 3.938 kB / 0.6832 GB, free: 13.3 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001975/0.1418, allocations: 135.1 kB / 0.6833 GB, free: 13.16 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.317e-05/0.1418, allocations: 22.5 kB / 0.6834 GB, free: 13.14 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.799e-05/0.1419, allocations: 43.84 kB / 0.6834 GB, free: 13.1 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.675e-05/0.142, allocations: 67.7 kB / 0.6835 GB, free: 13.03 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.388e-05/0.142, allocations: 4 kB / 0.6835 GB, free: 13.03 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003911/0.1424, allocations: 175.9 kB / 0.6836 GB, free: 12.86 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.357e-05/0.1424, allocations: 35.83 kB / 0.6837 GB, free: 12.82 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.115e-05/0.1425, allocations: 63.62 kB / 0.6837 GB, free: 12.76 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003876/0.1429, allocations: 287.1 kB / 0.684 GB, free: 12.48 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1429, allocations: 0 / 0.684 GB, free: 12.48 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.21e-07/0.1429, allocations: 0 / 0.684 GB, free: 12.48 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.059e-06/0.1429, allocations: 4 kB / 0.684 GB, free: 12.47 MB / 494.1 MB 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.0006151/0.1436, allocations: 498.5 kB / 0.6845 GB, free: 11.94 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.1436, allocations: 12.03 kB / 0.6845 GB, free: 11.93 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.462e-05/0.1437, allocations: 106 kB / 0.6846 GB, free: 11.81 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001438/0.1438, allocations: 92.03 kB / 0.6847 GB, free: 11.72 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002021/0.144, allocations: 295.3 kB / 0.685 GB, free: 11.4 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.286e-05/0.1441, allocations: 154.9 kB / 0.6851 GB, free: 11.25 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.476e-05/0.1441, allocations: 158.9 kB / 0.6853 GB, free: 11.09 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.414e-05/0.1442, allocations: 108.9 kB / 0.6854 GB, free: 10.98 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.527e-05/0.1442, allocations: 79.28 kB / 0.6854 GB, free: 10.9 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.623e-05/0.1443, allocations: 150.6 kB / 0.6856 GB, free: 10.75 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.484e-05/0.1443, allocations: 154.5 kB / 0.6857 GB, free: 10.6 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.384e-05/0.1444, allocations: 154.6 kB / 0.6859 GB, free: 10.45 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003044/0.1447, allocations: 0.5055 MB / 0.6864 GB, free: 9.891 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.788e-05/0.1448, allocations: 165.1 kB / 0.6865 GB, free: 9.719 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.8e-05/0.1448, allocations: 84.14 kB / 0.6866 GB, free: 9.633 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.698e-05/0.1448, allocations: 87.16 kB / 0.6867 GB, free: 9.547 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.747e-05/0.1449, allocations: 105.8 kB / 0.6868 GB, free: 9.434 MB / 494.1 MB Notification: Performance of pre-optimization done (n=0): time 7.61e-07/0.1449, allocations: 0 / 0.6868 GB, free: 9.434 MB / 494.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001555/0.145, allocations: 57.48 kB / 0.6869 GB, free: 9.371 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.714e-05/0.1451, allocations: 130.7 kB / 0.687 GB, free: 9.23 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00029/0.1454, allocations: 318.3 kB / 0.6873 GB, free: 8.91 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.197e-05/0.1454, allocations: 25.7 kB / 0.6873 GB, free: 8.879 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.134e-05/0.1455, allocations: 116.5 kB / 0.6874 GB, free: 8.762 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.813e-06/0.1455, allocations: 0 / 0.6874 GB, free: 8.762 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.05e-05/0.1455, allocations: 65.62 kB / 0.6875 GB, free: 8.691 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001089/0.1457, allocations: 334.8 kB / 0.6878 GB, free: 8.355 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.797e-05/0.1457, allocations: 63.95 kB / 0.6879 GB, free: 8.293 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001158/0.1459, allocations: 125.9 kB / 0.688 GB, free: 8.148 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000208/0.1461, allocations: 201.9 kB / 0.6882 GB, free: 7.93 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.1461, allocations: 0 / 0.6882 GB, free: 7.93 MB / 494.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0003673/0.1465, allocations: 245 kB / 0.6884 GB, free: 7.684 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.116e-05/0.1465, allocations: 4 kB / 0.6884 GB, free: 7.68 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.901e-06/0.1465, allocations: 0 / 0.6884 GB, free: 7.68 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.1465, allocations: 8 kB / 0.6884 GB, free: 7.672 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.182e-06/0.1465, allocations: 224 / 0.6884 GB, free: 7.672 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.1465, allocations: 8 kB / 0.6884 GB, free: 7.664 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.1466, allocations: 27.62 kB / 0.6885 GB, free: 7.637 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-06/0.1466, allocations: 4 kB / 0.6885 GB, free: 7.633 MB / 494.1 MB 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.0001645/0.1468, allocations: 228.7 kB / 0.6887 GB, free: 7.402 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.39e-05/0.1469, allocations: 124.6 kB / 0.6888 GB, free: 7.273 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.391e-05/0.1469, allocations: 117.8 kB / 0.6889 GB, free: 7.148 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.447e-05/0.147, allocations: 184.2 kB / 0.6891 GB, free: 6.961 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.454e-05/0.1471, allocations: 180.2 kB / 0.6893 GB, free: 6.777 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-05/0.1471, allocations: 180.2 kB / 0.6894 GB, free: 6.594 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002334/0.1474, allocations: 449.2 kB / 0.6899 GB, free: 6.098 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.039e-05/0.1474, allocations: 108.9 kB / 0.69 GB, free: 5.984 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.833e-05/0.1474, allocations: 108.9 kB / 0.6901 GB, free: 5.871 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.55e-05/0.1475, allocations: 176.3 kB / 0.6902 GB, free: 5.691 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.754e-05/0.1476, allocations: 188.2 kB / 0.6904 GB, free: 5.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.309e-05/0.1476, allocations: 180.3 kB / 0.6906 GB, free: 5.316 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.248e-05/0.1477, allocations: 176.3 kB / 0.6908 GB, free: 5.137 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000116/0.1478, allocations: 323.6 kB / 0.6911 GB, free: 4.797 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.213e-05/0.1479, allocations: 201.8 kB / 0.6913 GB, free: 4.574 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.596e-05/0.148, allocations: 180.3 kB / 0.6914 GB, free: 4.391 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.1481, allocations: 105 kB / 0.6915 GB, free: 4.281 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.719e-05/0.1481, allocations: 180.2 kB / 0.6917 GB, free: 4.098 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.111e-05/0.1482, allocations: 109 kB / 0.6918 GB, free: 3.984 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001776/0.1484, allocations: 209.9 kB / 0.692 GB, free: 3.785 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1484, allocations: 0 / 0.692 GB, free: 3.785 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003184/0.1487, allocations: 67.98 kB / 0.6921 GB, free: 3.719 MB / 494.1 MB 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.0005591/0.1493, allocations: 0.9314 MB / 0.693 GB, free: 2.762 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001486/0.1494, allocations: 100.3 kB / 0.6931 GB, free: 2.664 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1494, allocations: 4.062 kB / 0.6931 GB, free: 2.66 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.253e-06/0.1494, allocations: 0 / 0.6931 GB, free: 2.66 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003721/0.1498, allocations: 0.523 MB / 0.6936 GB, free: 2.129 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002125/0.1519, allocations: 2.446 MB / 0.696 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002693/0.1522, allocations: 0.7356 MB / 0.6967 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.375e-05/0.1522, allocations: 7.984 kB / 0.6967 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.262e-05/0.1523, allocations: 35.42 kB / 0.6967 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of SimCode: time 2.9e-07/0.1523, allocations: 0 / 0.6967 GB, free: 14.76 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01351/0.1658, allocations: 4.642 MB / 0.7013 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002145/0.166, allocations: 245.9 kB / 0.7015 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.667/1.833, allocations: 3.938 kB / 0.7015 GB, free: 10.02 MB / 0.4981 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_Transmission_Functions_Validation_SelectCable_low_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_Transmission_Functions_Validation_SelectCable_low.fmu > BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_low.pipe 2>&1)