Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med.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_med,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_Transmission_Functions_Validation_SelectCable_med",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_Transmission_Functions_Validation_SelectCable_med",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.004747/0.004748, allocations: 96.7 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.00133/0.00133, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.416/1.416, 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.002475/0.002475, allocations: 279.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 1.046/1.046, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002735/0.002735, allocations: 95.84 kB / 0.681 GB, free: 12 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1621/0.1649, allocations: 86.97 MB / 0.7659 GB, free: 8.957 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med): time 0.002456/0.1673, allocations: 1.42 MB / 0.7673 GB, free: 7.527 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.003329/0.1707, allocations: 2.659 MB / 0.7699 GB, free: 4.859 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.406e-05/0.1707, allocations: 4 kB / 0.7699 GB, free: 4.855 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.001368/0.1721, allocations: 0.5869 MB / 0.7704 GB, free: 4.266 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.82e-05/0.1722, allocations: 23.91 kB / 0.7705 GB, free: 4.242 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 3.808e-06/0.1722, allocations: 0 / 0.7705 GB, free: 4.242 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0002443/0.1724, allocations: 158.9 kB / 0.7706 GB, free: 4.086 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 6.509e-05/0.1725, allocations: 36.41 kB / 0.7707 GB, free: 4.051 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 7.352e-05/0.1726, allocations: 59.67 kB / 0.7707 GB, free: 3.992 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001347/0.1727, allocations: 79.58 kB / 0.7708 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.178e-05/0.1727, allocations: 0 / 0.7708 GB, free: 3.914 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0009956/0.1737, allocations: 471.3 kB / 0.7712 GB, free: 3.453 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.206e-05/0.1738, allocations: 35.78 kB / 0.7713 GB, free: 3.418 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001014/0.1739, allocations: 95.42 kB / 0.7714 GB, free: 3.324 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0006186/0.1745, allocations: 442 kB / 0.7718 GB, free: 2.891 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.1746, allocations: 0 / 0.7718 GB, free: 2.891 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.203e-06/0.1746, allocations: 0 / 0.7718 GB, free: 2.891 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.215e-06/0.1746, allocations: 0 / 0.7718 GB, free: 2.891 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.0007919/0.1754, allocations: 0.5603 MB / 0.7723 GB, free: 2.277 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.1754, allocations: 12.03 kB / 0.7723 GB, free: 2.266 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.262e-05/0.1755, allocations: 106 kB / 0.7724 GB, free: 2.152 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001648/0.1757, allocations: 108 kB / 0.7725 GB, free: 2.047 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002602/0.1759, allocations: 310.3 kB / 0.7728 GB, free: 1.707 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.6e-05/0.176, allocations: 150.9 kB / 0.773 GB, free: 1.559 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.224e-05/0.1761, allocations: 166.9 kB / 0.7731 GB, free: 1.395 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.274e-05/0.1762, allocations: 105.5 kB / 0.7732 GB, free: 1.285 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.512e-05/0.1762, allocations: 79.22 kB / 0.7733 GB, free: 1.207 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.509e-05/0.1763, allocations: 150.6 kB / 0.7735 GB, free: 1.059 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.796e-05/0.1763, allocations: 150.6 kB / 0.7736 GB, free: 0.9102 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.376e-05/0.1764, allocations: 150.6 kB / 0.7738 GB, free: 0.7617 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004404/0.1769, allocations: 0.5445 MB / 0.7743 GB, free: 172 kB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.3145/0.4914, allocations: 169.1 kB / 0.7744 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.353e-05/0.4914, allocations: 80.14 kB / 0.7745 GB, free: 15.38 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 1.849e-05/0.4915, allocations: 75.28 kB / 0.7746 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.2e-05/0.4915, allocations: 108.2 kB / 0.7747 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=0): time 1.823e-06/0.4915, allocations: 0 / 0.7747 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of matching and sorting (n=0): time 0.0002165/0.4917, allocations: 58.05 kB / 0.7748 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.816e-05/0.4918, allocations: 128 kB / 0.7749 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004926/0.4923, allocations: 435.5 kB / 0.7753 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 8.746e-06/0.4923, allocations: 26.45 kB / 0.7753 GB, free: 14.86 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.324e-05/0.4923, allocations: 135.2 kB / 0.7754 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.156e-06/0.4924, allocations: 1 kB / 0.7754 GB, free: 14.77 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001023/0.4925, allocations: 92.47 kB / 0.7755 GB, free: 14.75 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 5.892e-05/0.4925, allocations: 338.6 kB / 0.7759 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.4927, allocations: 98.25 kB / 0.776 GB, free: 14.44 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001583/0.4928, allocations: 172.7 kB / 0.7761 GB, free: 14.38 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000293/0.4931, allocations: 301.8 kB / 0.7764 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.4931, allocations: 1 kB / 0.7764 GB, free: 14.33 MB / 0.5606 GB Notification: Performance of matching and sorting (n=70) (initialization): time 0.0004958/0.4936, allocations: 324.9 kB / 0.7767 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.677e-05/0.4937, allocations: 9.312 kB / 0.7767 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.4937, allocations: 2.594 kB / 0.7767 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.4937, allocations: 3.797 kB / 0.7767 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.885e-06/0.4937, allocations: 3.484 kB / 0.7767 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.4937, allocations: 5.844 kB / 0.7767 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001811/0.4939, allocations: 45.81 kB / 0.7768 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.045e-05/0.4939, allocations: 4.688 kB / 0.7768 GB, free: 14.26 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.0001933/0.4941, allocations: 248.6 kB / 0.777 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.962e-05/0.4942, allocations: 125.4 kB / 0.7771 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.743e-05/0.4942, allocations: 123.4 kB / 0.7773 GB, free: 13.83 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.127e-05/0.4942, allocations: 178.6 kB / 0.7774 GB, free: 13.65 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.516e-05/0.4943, allocations: 184.1 kB / 0.7776 GB, free: 13.47 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.256e-05/0.4943, allocations: 179.2 kB / 0.7778 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002164/0.4945, allocations: 481.7 kB / 0.7782 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.27e-05/0.4945, allocations: 107 kB / 0.7783 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.322e-05/0.4946, allocations: 105.9 kB / 0.7784 GB, free: 12.63 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-05/0.4946, allocations: 185.2 kB / 0.7786 GB, free: 12.45 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.071e-05/0.4946, allocations: 178 kB / 0.7788 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-05/0.4946, allocations: 181.8 kB / 0.779 GB, free: 12.08 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.949e-05/0.4947, allocations: 179 kB / 0.7791 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.7e-05/0.4947, allocations: 332.6 kB / 0.7794 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.565e-05/0.4948, allocations: 207.1 kB / 0.7796 GB, free: 11.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.084e-05/0.4949, allocations: 191.5 kB / 0.7798 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001299/0.495, allocations: 103.3 kB / 0.7799 GB, free: 11.06 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.479e-05/0.495, allocations: 181.4 kB / 0.7801 GB, free: 10.88 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.4e-05/0.495, allocations: 107.3 kB / 0.7802 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002402/0.4953, allocations: 277 kB / 0.7805 GB, free: 10.69 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4953, allocations: 0 / 0.7805 GB, free: 10.69 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0005023/0.4958, allocations: 87.62 kB / 0.7806 GB, free: 10.68 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.0004528/0.4963, allocations: 0.9516 MB / 0.7815 GB, free: 9.855 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.000233/0.4965, allocations: 164.9 kB / 0.7816 GB, free: 9.781 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4965, allocations: 1.344 kB / 0.7816 GB, free: 9.781 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.282e-06/0.4965, allocations: 0 / 0.7816 GB, free: 9.781 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003642/0.4969, allocations: 470.5 kB / 0.7821 GB, free: 9.328 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002533/0.4994, allocations: 2.946 MB / 0.785 GB, free: 7.41 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001927/0.4996, allocations: 0.7793 MB / 0.7857 GB, free: 6.703 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.529e-05/0.4997, allocations: 3.156 kB / 0.7857 GB, free: 6.703 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.025e-05/0.4997, allocations: 55.11 kB / 0.7858 GB, free: 6.656 MB / 0.5606 GB Notification: Performance of SimCode: time 2.5e-07/0.4997, allocations: 1.031 kB / 0.7858 GB, free: 6.656 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02773/0.5275, allocations: 6.465 MB / 0.7921 GB, free: 5.965 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.999/8.527, allocations: 14.66 kB / 0.7921 GB, free: 5.957 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_Transmission_Functions_Validation_SelectCable_med_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_Transmission_Functions_Validation_SelectCable_med.fmu > BuildingSystems_BuildingSystems.Electrical.Transmission.Functions.Validation.SelectCable_med.pipe 2>&1)